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.2.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.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simpleTorch-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 138b0f432e6d5d97862a5b641472d94749f55f373976e3a338c5f5b8b27e78b0
MD5 a1703ec5083014d8d135f7d9f378a0c0
BLAKE2b-256 2fe852dc79a5ba463dbea021433507a6baf3d3608e20785b03dd9b851de26183

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simpleTorch-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 74591e3f610931fdd5417c00be67587772621074bca6ed5fabdfe58f81b10855
MD5 ffe73b325aa3214d3019fe577a7163ee
BLAKE2b-256 5676532dd6d2eefaafec285854a7d7a42b807484cf98ae9c7a92e7f8756805b3

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