Skip to main content

This package is built on pytorch to avoid some standard steps

Project description

simpleTorch

This repo aims to train neural networks with pytorch simple. The data are normalized insede the class. The validation is performed automatically. The output model gets the unscaled data and returns the output unscaled (The scaling is performed inside). This way the user do not interact the scaling,; however the user can select to not use the default scaling and scale the data before the training

Installation

Use the package manager pip to install foobar.

pip install simpleTorch

Usage

A more detailed example in example_of_usage.ipynb

# X array with inputs in np
# F labels in np
# model is the neural net written in pytorch
import simpleTorch.train_ann
train_ann(model, X, F,plot=True)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

simpleTorch-0.0.3.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simpleTorch-0.0.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file simpleTorch-0.0.3.tar.gz.

File metadata

  • Download URL: simpleTorch-0.0.3.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6

File hashes

Hashes for simpleTorch-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1b957453e70f9a15b0f484dbb11a6d64d606a08ca62d202381ed4e7d9cd2f583
MD5 149db339186a4da7f1711662b3eccd40
BLAKE2b-256 5e0a790857a83aa7b6f3d28a34f9e981b7dc88f74bba9094b42f80c0a43b6c69

See more details on using hashes here.

File details

Details for the file simpleTorch-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: simpleTorch-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6

File hashes

Hashes for simpleTorch-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 647bf963acdee67b58e52b8504ef812722d44c42ce68f1577a8849481ed0c6e8
MD5 a406bb82922211c6e797fe94ac9c1e92
BLAKE2b-256 d51ee42fcaedb7670a4619ad92c908531a49aaf2459c601bfa52de8ecb463f7a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page