Skip to content
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

Provide method to save/read neural network to/from file #23

Open
wgrundlingh opened this issue Mar 5, 2019 · 2 comments
Open

Provide method to save/read neural network to/from file #23

wgrundlingh opened this issue Mar 5, 2019 · 2 comments

Comments

@wgrundlingh
Copy link

Perhaps you've trained a neural network and you don't want to re-train it within some chunk of code (to save time). It would be great if there was a method to save the neural network to file and then just read it for use later.

This would be especially helpful when using neuralnet inside an Rmarkdown document or presentation, since the document has to be knit together in its entirety every time, retraining the network with every compilation. Reading from file would improve the speed of compilation.

@wgrundlingh wgrundlingh changed the title Provide option to save/read neural network to/from file Provide method to save/read neural network to/from file Mar 5, 2019
@mnwright
Copy link
Member

mnwright commented Mar 6, 2019

Why not simply use R's saveRDS() and readRDS()?

@wgrundlingh
Copy link
Author

Of course... forgot about that. How about adding a function as a wrapper for saveRDS() and readRDS()? Even if that's all it is, just a wrapper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants