Skip to content

PyTorch DataLoader demo. Trains a neural network to fit spiral data.

License

Notifications You must be signed in to change notification settings

Formulator/Spiral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spiral

PyTorch DataLoader demo. Trains a neural network to fit spiral data.

This notebook is a demonstration of workflow for big-data handling in PyTorch.

The PyTorch DataLoader class is a mechanism to serve batches of data to a machine learning agent. It can be arranged to work with data already in memory but also to serve data from disk on-the-fly.

When a sizeable data set will not fit into RAM the DataLoader class offers a solution by drawing manageable batches from disk. This is accomplished in parallel by multiple workers thereby keeping a demanding GPU supplied with mini-batches of data.

What follows is a small-data exercise using big-data techniques.

Open in Google Colab

View on GitHub

Sample output

About

PyTorch DataLoader demo. Trains a neural network to fit spiral data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published