Predictions controller
Methods
(method) GetFeaturesTensor(features) → {DataView}
Get features as Tensor
Parameters:
Name | Type | Description |
---|---|---|
features |
NDList | features |
Returns:
- features Tensor
- Type
- DataView
(method HttpGet) GetModelsForDataSource() → {ActionResult}
Get routes for the current user
Returns:
- List of routes
- Type
- ActionResult
(method) GetOnnxSessionAsync(modelFile) → {Task.<OnnxScoringEstimator>}
Get Onnx model session asynchronously
Parameters:
Name | Type | Description |
---|---|---|
modelFile |
string | model filepath |
Returns:
- session with loaded model
- Type
- Task.<OnnxScoringEstimator>
(method HttpPost) GetPredictedValues(modelId) → {ActionResult}
Get predicted values
Parameters:
Name | Type | Description |
---|---|---|
modelId |
int | Model id |
Returns:
- Predicted values
- Type
- ActionResult
(method) PredictAsync(session, featuresDataView) → {Task.<Array.<float>>}
Get predictions for a session with loaded model and features Tensor asynchronously
Parameters:
Name | Type | Description |
---|---|---|
session |
ITransformer | session with loaded model |
featuresDataView |
DataView | features Tensor |
Returns:
- predictions
- Type
- Task.<Array.<float>>
Type Definitions
PredictingData
Predicting data
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
features |
Array.<Array.<float>> | features 2D array, each feature is an array of floats |