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.2.tar.gz
(11.2 kB
view details)
File details
Details for the file neptune-fastai-0.9.2.tar.gz
.
File metadata
- Download URL: neptune-fastai-0.9.2.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5b0fa0d0e2f5d65e89e5052d446a09d1a8eb8a9dfe16ea9093dded1aba78f78 |
|
MD5 | c5eddda79db6d038f136fcdff0f444fd |
|
BLAKE2b-256 | 639315107d7c5e403472521f02a74d8495f03acde190d8aeeeabcb2d016aaf25 |