pycasx.tools.NNet.utils.write_nnet
Write a NNet.
The file was adapted from <https://github.com/sisl/NNet>. The original file was licensed under MIT License. The original license is included below.
The MIT License (MIT)
Copyright (c) 2018 Stanford Intelligent Systems Laboratory
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Module Contents
Functions
|
Write network data to the .nnet file format. |
- pycasx.tools.NNet.utils.write_nnet.write_nnet(weights, biases, input_mins, input_maxes, means, ranges, file_name)
Write network data to the .nnet file format.
- Parameters:
weights (list) – Weight matrices in the network order
biases (list) – Bias vectors in the network order
inputMins (list) – Minimum values for each input
inputMaxes (list) – Maximum values for each input
means (list) – Mean values for each input and a mean value for all outputs. Used to normalize inputs/outputs
ranges (list) – Range values for each input and a range value for all outputs. Used to normalize inputs/outputs
fileName (str) – File where the network will be written