Closed natbukowski closed 4 months ago
Thank you for mentioning this, as you can see in the documentation of AEFCNClusterer, and any deep learner in aeon, you have to use the save_best_model
flag parameter to True, and you can choose the name using best_file_name
. Best means the model that has the lowest training loss during training
Same thing goes if you wish the last model, use the save_last_model
flag and the last_file_name
string parameter
Deep Learners cannot be pickled, thats why you get this error, and thats why we have these parameters i described above.
Thanks for the mention @MatthewMiddlehurst , we should think of adding a warning or something about this somewhere so that users dont try to save it like that.
Let us know if this answers to your issue @natbukowski !
as I understand it you just cant pickle tensorflow models?
as I understand it you just cant pickle tensorflow models?
yes
Thank you for mentioning this, as you can see in the documentation of AEFCNClusterer, and any deep learner in aeon, you have to use the
save_best_model
flag parameter to True, and you can choose the name usingbest_file_name
. Best means the model that has the lowest training loss during trainingSame thing goes if you wish the last model, use the
save_last_model
flag and thelast_file_name
string parameterDeep Learners cannot be pickled, thats why you get this error, and thats why we have these parameters i described above.
Thanks for the mention @MatthewMiddlehurst , we should think of adding a warning or something about this somewhere so that users dont try to save it like that.
Let us know if this answers to your issue @natbukowski !
Yes this answered my question, thank you!
I think we can close this now, feel free to reopen or raise a new issue
Describe the bug
Attempted to save a trained AEFCNClusterer model but received an error saying that the model couldn't be pickled.
Steps/Code to reproduce the bug
Expected results
According to the AEFCNCluster the save functions description states the there are two possible return options:
RETURNS: if path is None - in-memory serialized self if path is file location - ZipFile with reference to the file.
Link to AEFCNCluster.save() documentation: https://www.aeon-toolkit.org/en/stable/api_reference/auto_generated/aeon.clustering.deep_learning.AEFCNClusterer.html#aeon.clustering.deep_learning.AEFCNClusterer.save
Actual results
Versions