No project description provided
Project description
nekograd
PyTorch-Lightning wrapped in some shit code
pip install nekograd
Example
import torch
import torch.nn as nn
import pytorch_lightning as pl
from nekograd.model import CoreModel
from sklearn.metrics import accuracy_score
architecture: nn.Module = ...
criterion: Callable = ...
metrics: Dict[str, Callable] = {"accuracy": accuracy_score}
model = CoreModel(architecture, criterion, metrics)
device = "gpu" if torch.cuda.is_available() else "cpu"
trainer = pl.Trainer(max_epochs=20, accelerator=device)
trainer.fit(model, datamodule=...)
trainer.test(model, datamodule=...)
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
nekograd-0.0.1.tar.gz
(9.2 kB
view details)
Built Distribution
nekograd-0.0.1-py3-none-any.whl
(11.6 kB
view details)
File details
Details for the file nekograd-0.0.1.tar.gz
.
File metadata
- Download URL: nekograd-0.0.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e2b35e149a3a4226f9432c98a3cf3959fed6698362b1152ab9d3552700b26fb |
|
MD5 | a25d33d782b59cd0daa36450a211df1e |
|
BLAKE2b-256 | 195033fe8f7e51dcb74cdda2df14679e60debf1bc07177c959a4c3ca31a59f08 |
File details
Details for the file nekograd-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: nekograd-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | beaa9b79dad194af504dad83fa59f19c462f0280ca2d589971b454f63f0303ed |
|
MD5 | b4f0d77c5b096fd931da37e6c9a966a1 |
|
BLAKE2b-256 | 491815156c641da262cea8562bb2766578382b2bb9c97c7ee5281b57e82aeb65 |