|
Public Member Functions |
| | otNeuralFramework () |
| | Create an empty framework object. Call init() before use.
|
| void | init (otTinn *tinn, otFILE *fs=0) |
| | Initialize the framework around an existing network.
|
| void | close () |
| | Free the loaded dataset and reset the framework state.
|
| bool | dataset (const char *path) |
| | Load a dataset for neural-network learning.
|
| void | shuffle () |
| | Randomly shuffle dataset rows using Fisher-Yates by default.
|
| float | training (float rate) |
| | Perform one training epoch using the network passed to init().
|
| float | training (otTinn &tinn, float rate) |
| | Perform one training epoch using an explicitly supplied network.
|
| float | error () const |
| | Return the most recent accumulated epoch error.
|
| int | rows () const |
| | Return the number of loaded dataset rows.
|
| int | inputs () const |
| | Return the number of input values per row.
|
| int | outputs () const |
| | Return the number of target/output values per row.
|
| const float * | input (int row=0) const |
| | Return one input row from the loaded dataset.
|
| const float * | target (int row=0) const |
| | Return one target row from the loaded dataset.
|
| bool | valid () const |
| | Return true when a non-empty dataset is currently loaded.
|