neural network configuration and tensorflow model hyperparameters
extra instance properties
Rest
...args: any[]Optional
getOptional
layersOptional
lossRest
...args: any[]Optional
xOptional
yPredicts new dependent variables
returns tensorflow prediction
new test independent variables
Loads a saved tensoflow / keras model, this is an alias for
tensorflow model
https://www.tensorflow.org/js/guide/save_load#loading_a_tfmodel
tensorflow load model options
Returns prediction values from tensorflow model
predicted model values
Optional
input_matrix: Matrix | Vector | PredictionOptions | InputTextArraynew test independent variables
Optional
options: PredictionOptionssaves a tensorflow model, this is an alias for
tensorflow model
https://www.tensorflow.org/js/guide/save_load#save_a_tfmodel
tensorflow save model options
Asynchronously trains tensorflow model, must be implemented by tensorscript class
returns trained tensorflow model
independent variables
Optional
y_matrix: Matrixdependent variables
Optional
layers: TensorScriptLayersOptional
x_test: MatrixOptional
y_test: MatrixStatic
getReturns the shape of an input matrix
const input = [
[ 0, 1, ],
[ 1, 0, ],
];
TensorScriptModelInterface.getInputShape(input) // => [2,2]
returns the shape of a matrix (e.g. [2,2])
input matrix
Static
reshapeReshapes an array
const array = [ 0, 1, 1, 0, ];
const shape = [2,2];
TensorScriptModelInterface.reshape(array,shape) // =>
[
[ 0, 1, ],
[ 1, 0, ],
];
returns a matrix with the defined shape
input array
shape array
Deep Learning with Tensorflow
Implements