Skip to content

Commit

Permalink
Updated readme and bumped version.
Browse files Browse the repository at this point in the history
  • Loading branch information
penguinmenac3 committed Dec 20, 2021
1 parent 88192d0 commit c6519b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Here is the simplest mnist example, it is so short it can be part of the main re
import torch
from torch.optim import SGD

from leanai.core.config import DictLike
from leanai.core.experiment import Experiment, set_seeds
from leanai.data.datasets import FashionMNISTDataset
from leanai.training.losses import SparseCrossEntropyLossFromLogits
Expand All @@ -57,14 +58,14 @@ experiment = Experiment(
output_path="outputs",
)
experiment.run_training(
load_dataset=dict(
load_dataset=DictLike(
type=FashionMNISTDataset,
data_path="outputs",
),
build_loss=dict(
build_loss=DictLike(
type=SparseCrossEntropyLossFromLogits,
),
build_optimizer=dict(
build_optimizer=DictLike(
type=SGD,
lr=1e-3,
),
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from codecs import open
from os import path

__version__ = '2.0.0'
__version__ = '2.1.0'

here = path.abspath(path.dirname(__file__))
OFFICIAL_URL = "https://github.com/penguinmenac3/leanai"
Expand Down

0 comments on commit c6519b1

Please sign in to comment.