-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving in produce_or_load does not work for producing anonymous functions #88
Comments
Hi @racinmat , I am sorry but I don't understand your problem... :( Please provide the error message. The title of your message says that DrWatson does not do any saving. All |
With Something like this:
Alternatively you could map your functions to a
|
@Datseris yes, I want to save an anonymous function. @sebastianpech oh, thanks, I didn't know I can use the jld extension. Unfortunately the code snipped you provided did not work for me either, causing
but when I used |
The need to use Information about suffixes is found in while Where else do you think this should be mentioned? Please keep in mind that it is not DrWatson's duty to inform you about every package hooked to FileIO. The responsibility to know what savetypes e.g. the package JLD needs is yours, since it is impossible for us to be informed for all hundreds of packages that FileIO can use... You are welcome to make a Pull Request to the documentation and clarify this in a place you see fit. |
I want to use
produce_or_load
in my code, and I am using some anonymous functions for preprocessing data before feeding them to model which I want to persist to file too, as an output from my function along with the trained model.But then the saving fails, because it is not able to save it.
I noticed serialization is not used here, it would be nice if I could specified e.g.
jls
suffix and then serialization would be used, so it would work for this usecase.The text was updated successfully, but these errors were encountered: