-
I want to save the learner by the name of model used when making comparions between different models. So i am wondering if there is a way to get the name of the model used, instead of using some pre-set string which needs to be changed manually? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think there is no internal method for this both in tsai or fastai. But we are using Python, and every time we have to make an instance from a model class. Therefore, the name of the model we used can be obtained by |
Beta Was this translation helpful? Give feedback.
I think there is no internal method for this both in tsai or fastai. But we are using Python, and every time we have to make an instance from a model class. Therefore, the name of the model we used can be obtained by
type(learn.model).__name__
orlearn.model.__class__.__name__
no matter you are usingLearner
or 'ts_learner' orTSLearner
. Thanks to sykora@stackoverflow.