Skip to main content

Deeplearning framework for PyTorch

Project description

https://travis-ci.com/neurallayer/fos.svg?branch=master

Introduction

FOS is a Python framework that makes it easy to develop neural network models in PyTorch. Some of its main features include:

  • Less boilerplate code required, see also the example below.

  • Lightweight and no magic under the hood that might get in the way.

  • You can extend Fos using common OO patterns.

  • Get the insights you need into the performance of the model.

Installation

You can install FOS using pip:

pip install fos

Or alternatively from the source:

python setup.py install

Fos requires Python 3.6 or higher.

Usage

Training a model, requires just a few lines of code. First create the model, optimizer and loss function that you want to use, using normal PyTorch code:

model = resnet18()
optim = Adam(model.parameters())
loss = F.binary_cross_entropy_with_logits

Then create the FOS workout that will take care of the training and output:

workout = Workout(net, loss, optim)

And we are ready to start the training:

workout.fit(train_data, valid_data, epochs=5)

Examples

You can find several example Jupyter notebooks here

You can also run them on Google Colab directly:

  • Basic https://colab.research.google.com/github/neurallayer/fos/blob/master/examples/basic_fos.ipynb

  • MINST https://colab.research.google.com/github/neurallayer/fos/blob/master/examples/mnist_fos.ipynb

  • Inputs https://colab.research.google.com/github/neurallayer/fos/blob/master/examples/inputs_fos.ipynb

  • Tensorboard https://colab.research.google.com/github/neurallayer/fos/blob/master/examples/tensorboard_fos.ipynb

Contribution

If you want to help out, we appreciate all contributions. Please see the contribution guidelines for more information.

As always, PRs are welcome :)=

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

fos-1.0.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

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

fos-1.0.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file fos-1.0.0.tar.gz.

File metadata

  • Download URL: fos-1.0.0.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5

File hashes

Hashes for fos-1.0.0.tar.gz
Algorithm Hash digest
SHA256 953c0b0c09ffc0b487b66b175712f780c9032410a37ae525e05b2e6484cf9686
MD5 67d5313140521fb52baebaac776dcbd1
BLAKE2b-256 34985b006724608a140b78635424fffd3c0e009f9e9a4986acbc6f4f782ae9c9

See more details on using hashes here.

File details

Details for the file fos-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fos-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.3 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.1.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5

File hashes

Hashes for fos-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1f63ae983dbb4bd433a415fd3a8688316fbcea2aefa6b92d6cf613fc49ff220
MD5 04fb129f5987a8a849a6e50a5a449484
BLAKE2b-256 5b85ae1732fe8f8e44cf732713e0a1df5e76ca1a80089ac02c34026f500c2b58

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