Neptune.ai fast.ai integration library
Project description
Neptune - fast.ai integration
See the official docs.
from fastai.basics import URLs, untar_data, accuracy
from fastai.tabular.all import tabular_learner, TabularDataLoaders, Categorify, FillMissing, Normalize
from fastai.callback.all import SaveModelCallback
from neptune import new as neptune
from neptune_fastai.impl import NeptuneCallback
neptune_run = neptune.init()
path = untar_data(URLs.ADULT_SAMPLE)
dls = TabularDataLoaders.from_csv(path / 'adult.csv',
path=path,
y_names="salary",
cat_names=[
'workclass',
'education',
'marital-status',
'occupation',
'relationship',
'race'
],
cont_names=['age', 'fnlwgt', 'education-num'],
procs=[Categorify, FillMissing, Normalize])
learn = tabular_learner(dls,
metrics=accuracy)
learn.fit_one_cycle(10,
cbs=[
NeptuneCallback(run=neptune_run,
base_namespace='experiment',
save_best_model=True,
save_model_freq=4),
SaveModelCallback(monitor='accuracy', every_epoch=True)
])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
neptune-fastai-0.9.6.tar.gz
(25.0 kB
view details)
File details
Details for the file neptune-fastai-0.9.6.tar.gz
.
File metadata
- Download URL: neptune-fastai-0.9.6.tar.gz
- Upload date:
- Size: 25.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83f996aeb3e9520dacdd19170dff315ffac24c311713b10e96d1904aec954194 |
|
MD5 | 3187cc49d3f53604c5d60158b03a8e69 |
|
BLAKE2b-256 | fb73b25f1d8b5a381e131e32e5a2a516c474f33a82d731b369b73ee03cd33431 |