Command line helpers for training, sampling and snapshotting a character level recurrent network.
CharRNN
00 Remarks
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| initialize | 1 | Creates a network configured from the given options: a single layer network when Options.useSingleLayerNet is set, otherwise a multi layer network with the requested layer count. |
| train | 1 | Trains the network on the data set referenced by the options, sampling and snapshotting at the configured intervals. |
| saveASnapshot | 1 | Saves a network snapshot under the given name. |
| loadASnapshot | 1 | Loads a network snapshot with the given name. |
| sample | 1 | Samples the network for n characters and prints the result to the console. |
03 Members
Creates a network configured from the given options: a single layer network when Options.useSingleLayerNet is set, otherwise a multi layer network with the requested layer count.
| Name | Type | Description |
|---|---|---|
options | Options | The application options that describe the network. |
The new, not yet initialized network.
Trains the network on the data set referenced by the options, sampling and snapshotting at the configured intervals.
| Name | Type | Description |
|---|---|---|
options | Options | The training options. |
net | CharLevelRNN | The network to train. |
snapshotName | String | Base name used for the snapshot files. |
String, CharLevelRNN)Saves a network snapshot under the given name.
| Name | Type | Description |
|---|---|---|
name | String | Base name of the snapshot file. |
net | CharLevelRNN | The network to snapshot. |
String)Loads a network snapshot with the given name.
| Name | Type | Description |
|---|---|---|
name | String | Base name of the snapshot file. |
The restored network.
Samples the network for n characters and prints the result to the console.
| Name | Type | Description |
|---|---|---|
n | Int32 | Number of characters to sample; it must be at least 1. |
seed | String | The seed text; it must not be |
temperature | Double | Sampling temperature in |
net | CharLevelRNN | The network to sample from; it must be initialized. |