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.0.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.0.tar.gz.
File metadata
- Download URL: flamenn-0.1.0.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 |
e3cb3f49425517f09536d8c25ee6ad628eedc34f3116f085b7c2633b9adc6714
|
|
| MD5 |
027b7697f47d1561de671685e195681d
|
|
| BLAKE2b-256 |
eb7dc2ba57c39cbd93509c95e79cffd080f222ac4d634ca65133b9e71a3ea701
|
File details
Details for the file flamenn-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flamenn-0.1.0-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 |
dfafa354cfb3758addb27526063d7e0e4e5899361bc7d4e40bf93d4d5e279fa6
|
|
| MD5 |
257e0455de7356b5f16164c5f822301e
|
|
| BLAKE2b-256 |
f91f169ec3392bd26eec05dc86ce5891f8ca9a7683b47d565151129aad7d40b8
|