class
DualCrossEntropyLossFlat
DualCrossEntropyLossFlat(*args, axis=-1, flatten=True, floatify=False, is_2d=True, activation=None, decodes=None, **kwargs) :: CrossEntropyLossFlat
args
axis
-1
flatten
True
floatify
False
is_2d
activation
None
decodes
kwargs
CrossEntropyLossFlat
Average of a tuple of cross-entropy losses. Not sure it's a good idea.
pitch_accuracy
pitch_accuracy(inp, targ)
inp
targ
rhythm_accuracy
rhythm_accuracy(inp, targ)
avg_accuracy
avg_accuracy(inp, targ)
ResetTrainer
ResetTrainer() :: Callback
Callback
Reset the model when switching between training and validation.
get_learner
get_learner(db:DataBunch, model:Module)
db
DataBunch
model
Module
Constructs a learner from a databunch, using DualCrossEntroyLossFlat as a loss function.
train
train(learn:Learner, epochs=10, max_lr=0.001)
learn
Learner
epochs
10
max_lr
0.001
Train the model for a number of epochs.