Skip to main content
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 :)=

Metadata

Release files for fos 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fos 1.0.0
File Size Uploaded
fos-1.0.0.tar.gz 17.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fos 1.0.0
File Interpreter ABI Platform
fos-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.9 kB

Release files / fos-1.0.0.tar.gz

Download URL fos-1.0.0.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
953c0b0c09ffc0b487b66b175712f780c9032410a37ae525e05b2e6484cf9686
BLAKE2b-256 checksum
How to use checksums
34985b006724608a140b78635424fffd3c0e009f9e9a4986acbc6f4f782ae9c9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / fos-1.0.0-py3-none-any.whl

Download URL fos-1.0.0-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1f63ae983dbb4bd433a415fd3a8688316fbcea2aefa6b92d6cf613fc49ff220
BLAKE2b-256 checksum
How to use checksums
5b85ae1732fe8f8e44cf732713e0a1df5e76ca1a80089ac02c34026f500c2b58
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.5.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page