public interface Model
Modifier and Type | Method and Description |
---|---|
void |
fit(org.nd4j.linalg.api.ndarray.INDArray data)
Fit the model to the given data
|
void |
fit(org.nd4j.linalg.api.ndarray.INDArray data,
Object[] params)
Fit the model to the given data
|
void |
iterate(org.nd4j.linalg.api.ndarray.INDArray input,
Object[] params)
Run one iteration
|
int |
numParams()
The number of parameters for the model
|
org.nd4j.linalg.api.ndarray.INDArray |
params()
Parameters of the model (if any)
|
double |
score() |
void |
setParams(org.nd4j.linalg.api.ndarray.INDArray params)
Set the parameters for this model.
|
org.nd4j.linalg.api.ndarray.INDArray |
transform(org.nd4j.linalg.api.ndarray.INDArray data)
Transform the data based on the model's output.
|
double score()
org.nd4j.linalg.api.ndarray.INDArray transform(org.nd4j.linalg.api.ndarray.INDArray data)
data
- the data to transformorg.nd4j.linalg.api.ndarray.INDArray params()
int numParams()
void setParams(org.nd4j.linalg.api.ndarray.INDArray params)
params
- the parameters for the modelvoid fit(org.nd4j.linalg.api.ndarray.INDArray data, Object[] params)
data
- the data to fit the model toparams
- the params (mixed values)void fit(org.nd4j.linalg.api.ndarray.INDArray data)
data
- the data to fit the model tovoid iterate(org.nd4j.linalg.api.ndarray.INDArray input, Object[] params)
input
- the input to iterate onparams
- the extra params for the neural network(k, corruption level, max epochs,...)Copyright © 2014. All rights reserved.