-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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 a multilayer netwrok as JSON #6536
Comments
Since you are going to be loading it manually anyway, you might directly write your parameters with (If you are in a locale that uses a comma ( |
In theory, we could save the net to a text-based format. Put another way: I'm not going to allocate resources to implement tools to export to a non-standard text-based format that can only be parsed and used manually. It's just not useful for 99.9% of users and hence not worth our time. Now, for saving the network components for inference in a text-based format: there's basically 2 things you need. You can then read and parse those in your program. Alternatively, perhaps you should look at a way to call Java program (or some sort of model server via REST etc) from your MQL5 program. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
As described in Issue #1023 , using ModelSerializer.writeModel(), dl4j currently supports saving the network config as a JSON file and saving the parameters in binary format. For a larger network, saving everything in a text format like JSON is not space-efficient and will be slow.
However, there are many cases where it would be desirable to create and train the network using dl4j, and then use the trained network's parameters (weights, layer information, etc) in another environment.
For example, I am working on an Expert Advisor on MetaTrader5, which supports a "simplified C++ like language" (MQL5), and which does not support reading binary files from disk to re-create the network.
It would help greatly if the network information (layers, activation functions, and esp. weights) were saved in a text format, so we can manually transfer this information to an external platform (like MQL5)
The text was updated successfully, but these errors were encountered: