Flamenn is a high-level PyTorch wrapper for rapid model protyping. It uses a builder pattern for creating network arquitectures using PyTorch's components.
Project description
Flamenn 🔥👷
Flamenn is a high-level PyTorch wrapper for rapid model protyping. It uses a builder pattern for creating network arquitectures using PyTorch's components.
Example usage
import torch
from flamenn.networks import MultiLayerPerceptron
from flamenn.layers import PerceptronLayer
testNN = (
MultiLayerPerceptron(input_size=5)
.addLayer(PerceptronLayer(5, activation=torch.nn.ReLU(), dropout=False))
.addLayer(PerceptronLayer(3, torch.nn.ReLU(), False))
.addCriterion(torch.nn.NLLLoss())
.addOptim("adam", learning_rate=10e-3)
)
testNN.forward(torch.rand((1,5)))
# Result:
# >>> tensor([[0.4108, 0.2620, 0.0000]], grad_fn=<ReluBackward0>)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flamenn-0.1.3.tar.gz
(5.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flamenn-0.1.3.tar.gz.
File metadata
- Download URL: flamenn-0.1.3.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.1.65-1-lts
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76da60cb52c6e2e54a3111ec83fbd932e6ea5e4d15ce4db4b3136c444d75807a
|
|
| MD5 |
64039303e0323701b05b98eaa2cef4cb
|
|
| BLAKE2b-256 |
cf4bbda921d5cafd6a0ed3127c16a83628bfcb610d5560b57e3dcb2c798316e1
|
File details
Details for the file flamenn-0.1.3-py3-none-any.whl.
File metadata
- Download URL: flamenn-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.1.65-1-lts
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97dc74e893cac9c17896ed834d618844d70920e6592d66cd8e8177953685bb27
|
|
| MD5 |
66c2c9e88f75686aa43f6c0ba4bbc9cf
|
|
| BLAKE2b-256 |
27badb28a36c4e8bbc459bf9d820fa399f5f6d0946aac46775307e59c0186744
|