Predicts using the Xgboost model.
Predictor
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | Instantiates with the Xgboost model |
| predict | 3 | Generates predictions for given feature vector. |
| predictSingle | 3 | Generates a prediction for given feature vector. |
| predictLeaf | 2 | Predicts leaf index of each tree. |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| numClass | 1 | Returns number of class. |
| sparkModelParam | 1 |
04 Members
Stream, PredictorConfiguration)Instantiates with the Xgboost model
| Name | Type | Description |
|---|---|---|
in | Stream | input stream |
configuration | PredictorConfiguration | configuration |
Generates predictions for given feature vector.
| Name | Type | Description |
|---|---|---|
feat | FVec | feature vector |
prediction values
Boolean)Generates predictions for given feature vector.
| Name | Type | Description |
|---|---|---|
feat | FVec | feature vector |
output_margin | Boolean | whether to only predict margin value instead of transformed prediction |
prediction values
Generates predictions for given feature vector.
| Name | Type | Description |
|---|---|---|
feat | FVec | feature vector |
output_margin | Boolean | whether to only predict margin value instead of transformed prediction |
ntree_limit | Int32 | limit the number of trees used in prediction |
prediction values
Generates a prediction for given feature vector.
This method only works when the model outputs single value.
| Name | Type | Description |
|---|---|---|
feat | FVec | feature vector |
prediction value
Boolean)Generates a prediction for given feature vector.
This method only works when the model outputs single value.
| Name | Type | Description |
|---|---|---|
feat | FVec | feature vector |
output_margin | Boolean | whether to only predict margin value instead of transformed prediction |
prediction value
Generates a prediction for given feature vector.
This method only works when the model outputs single value.
| Name | Type | Description |
|---|---|---|
feat | FVec | feature vector |
output_margin | Boolean | whether to only predict margin value instead of transformed prediction |
ntree_limit | Int32 | limit the number of trees used in prediction |
prediction value
Predicts leaf index of each tree.
| Name | Type | Description |
|---|---|---|
feat | FVec | feature vector |
leaf indexes
Int32)Predicts leaf index of each tree.
| Name | Type | Description |
|---|---|---|
feat | FVec | feature vector |
ntree_limit | Int32 | limit |
leaf indexes
Returns number of class.
number of class