Replies: 1 comment 4 replies
-
Hi @jefferyanderson, from tsai.all import *
X, y, splits = get_UCR_data('MoteStrain', split_data=False)
tfms = [None, TSClassification()]
batch_tfms = TSStandardize(by_sample=True)
dls = get_ts_dls(X, y, splits=splits, tfms=tfms, batch_tfms=batch_tfms)
learn = ts_learner(dls, InceptionTimePlus, metrics=[accuracy, RocAucBinary(), APScoreBinary()], cbs=[ShowGraph()])
learn.fit_one_cycle(10, 1e-2) It works both with the latest pip release (tsai 0.3.0) and also the GitHub release. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can you please clarify how we can use alternate metrics for binary classification problems?
learn = Learner(dls, model, metrics=accuracy, cbs=ShowGraph())
Virtually everything I've tried besides "accuracy" throws an assertion error like:
AssertionError: ==: 128 64
I understand that this is likely due to the "when inp and targ are the same size" requirement but I don't understand why inp and targ wouldn't be the same or how I can make them match.
Beta Was this translation helpful? Give feedback.
All reactions