Package neural-nets
This package contains 3 source unit(s) defining 3 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.
SLNeuralNetwork #sleela 3.0 (lib/neural-nets/SLNeuralNetwork.sleela)
SLNeuralNetwork class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATUS_OK | static final int STATUS_OK = 0 | No description in source. |
STATUS_INVALID_ARGUMENT | static final int STATUS_INVALID_ARGUMENT = 1 | No description in source. |
STATUS_OUT_OF_MEMORY | static final int STATUS_OUT_OF_MEMORY = 2 | No description in source. |
STATUS_INVALID_STATE | static final int STATUS_INVALID_STATE = 3 | No description in source. |
STATUS_SIZE_MISMATCH | static final int STATUS_SIZE_MISMATCH = 4 | No description in source. |
STATUS_NUMERIC | static final int STATUS_NUMERIC = 5 | No description in source. |
STATUS_NATIVE_ADAPTER_REQUIRED | static final int STATUS_NATIVE_ADAPTER_REQUIRED = 6 | No description in source. |
configured | boolean configured = false | No description in source. |
inputCount | int inputCount = 0 | No description in source. |
outputCount | int outputCount = 0 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | int configure(SLNeuralNetworkConfig config) | No description in source. |
isConfigured | boolean isConfigured() | No description in source. |
isNativeReady | boolean isNativeReady() | No description in source. |
getInputCount | int getInputCount() | No description in source. |
getOutputCount | int getOutputCount() | No description in source. |
predict | int predict(double[] input, double[] output) | No description in source. |
trainSample | int trainSample(double[] input, double[] target, double learningRate) | No description in source. |
close | void close() | No description in source. |
SLNeuralNetworkConfig #sleela 3.0 (lib/neural-nets/SLNeuralNetworkConfig.sleela)
SLNeuralNetworkConfig class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
ACTIVATION_LINEAR | static final int ACTIVATION_LINEAR = 0 | No description in source. |
ACTIVATION_RELU | static final int ACTIVATION_RELU = 1 | No description in source. |
ACTIVATION_TANH | static final int ACTIVATION_TANH = 2 | No description in source. |
ACTIVATION_SIGMOID | static final int ACTIVATION_SIGMOID = 3 | No description in source. |
ABI_VERSION | static final int ABI_VERSION = 1 | No description in source. |
layerSizes | int[] layerSizes | No description in source. |
hiddenActivation | int hiddenActivation = ACTIVATION_RELU | No description in source. |
outputActivation | int outputActivation = ACTIVATION_LINEAR | No description in source. |
seed | int seed = 0 | No description in source. |
layerCount | int layerCount = 0 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
setLayerSizes | void setLayerSizes(int[] sizes) | No description in source. |
getLayerSizes | int[] getLayerSizes() | No description in source. |
getLayerCount | int getLayerCount() | No description in source. |
setHiddenActivation | void setHiddenActivation(int value) | No description in source. |
getHiddenActivation | int getHiddenActivation() | No description in source. |
setOutputActivation | void setOutputActivation(int value) | No description in source. |
getOutputActivation | int getOutputActivation() | No description in source. |
setSeed | void setSeed(int value) | No description in source. |
getSeed | int getSeed() | No description in source. |
valid | boolean valid() | No description in source. |
SLPackage #sleela 3.0 (lib/neural-nets/SLPackage.sleela)
SLPackage class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
packageName | String packageName = "neural-nets" | No description in source. |
nativeHeader | String nativeHeader = "neural_nets.h" | No description in source. |
nativeAbiVersion | int nativeAbiVersion = 1 | No description in source. |
requiresNativeAdapter | boolean requiresNativeAdapter = true | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
name | String name() | No description in source. |
available | boolean available() | No description in source. |
isNativeAdapterRequired | boolean isNativeAdapterRequired() | No description in source. |