Constructor
new GeneralizedLinearModel(weights, intercept)
Parameters:
| Name | Type | Description |
|---|---|---|
weights |
module:eclairjs/mllib/linalg.Vector | |
intercept |
float |
Methods
predict(testData) → {float}
Predict values for a single data point using the model trained.
Parameters:
| Name | Type | Description |
|---|---|---|
testData |
module:eclairjs/mllib/linalg.Vector |
Returns:
- Type
- float