MultipleLinearRegression
Extends:
@tensorscript/core~TensorScriptModelInterface → MultipleLinearRegression
Implements:
- TensorScriptModelInterface
Mulitple Linear Regression with Tensorflow
Constructor Summary
Public Constructor | ||
public |
constructor(options: Object, customTF: Object) |
Member Summary
Public Members | ||
public |
|
Method Summary
Public Methods | ||
public |
calculate(matrix: *): Promise Predicts new dependent variables |
|
public |
async train(x_matrix: *, y_matrix: *): Object Asynchronously trains tensorflow model |
Public Constructors
public constructor(options: Object, customTF: Object) source
Params:
Name | Type | Attribute | Description |
options | Object | tensorflow model hyperparameters |
|
customTF | Object | custom tensorflow module: tensorflow / tensorflow-node / tensorflow-node-gpu |
Public Members
public model source
Public Methods
public calculate(matrix: *): Promise source
Predicts new dependent variables
Params:
Name | Type | Attribute | Description |
matrix | * | new test independent variables |
Return:
Promise | returns tensorflow prediction |
public async train(x_matrix: *, y_matrix: *): Object source
Asynchronously trains tensorflow model
Params:
Name | Type | Attribute | Description |
x_matrix | * | independent variables |
|
y_matrix | * | dependent variables |
Return:
Object | returns trained tensorflow model |