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.2.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.2.tar.gz.
File metadata
- Download URL: flamenn-0.1.2.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 |
dae6dad7548a18bf6b91c2e6d6ad9ea84d26b5c65ae07300827c0900a7463bdb
|
|
| MD5 |
6fd179a2133469f367b3ca0cbf97cccb
|
|
| BLAKE2b-256 |
4523003d097241f23015f343d95203936162e1ae3c5a336de7c52b2e086cd6a8
|
File details
Details for the file flamenn-0.1.2-py3-none-any.whl.
File metadata
- Download URL: flamenn-0.1.2-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 |
5f56b7a8678e773992bdbe6f3106bc44f745719275d161700a3bee98abfda4c3
|
|
| MD5 |
f0af53eae7ca95b606637a36b33d3c1b
|
|
| BLAKE2b-256 |
62bb9206349c7ccfd4695a82e1dddc358dd4babcf51eea88ec470f48297f0519
|