Module aivis_engine_v2_cn_sdk_python.inference
Classes
-
Class for creating and handling constraint navigator inference. This is your entry point for all inference operations.
Private constructor. To create new instances use any of:
Static methods
-
@
FlavourRequirement([Flavour.FULL])Create constraint navigator inference for given hub handle and config.
To create predictions with this inference instance use:
Parameters
hub:aivis_engine_v2_cn_sdk_python.hub.Hub- Instance of constraint navigator hub
config_json:strDtoConstraintNavigatorConfigas JSON string
Returns
ConstraintNavigatorInference- Instance of constraint navigator inference
-
@
FlavourRequirement([Flavour.FULL, Flavour.INFERENCE])Create constraint navigator inference for the given constraint model and config.
To create predictions with this inference instance use any of:
ConstraintNavigatorInference.infer_float_with_next_normal()ConstraintNavigatorInference.infer_float()
Parameters
model_json:strDtoHubModelas JSON stringconfig_json:strDtoInferenceConfigas JSON string
Returns
ConstraintNavigatorInference- Instance of constraint navigator inference
-
@
FlavourRequirement([Flavour.FULL])Create constraint navigator inference for the given constraint model and config.
To create predictions with this inference instance use any of:
ConstraintNavigatorInference.infer_float_with_next_normal()ConstraintNavigatorInference.infer_float()
Parameters
learning:aivis_engine_v2_cn_sdk_python.learning.ConstraintNavigatorIncrementalLearning- Instance of constraint navigator incremental learning
config_json:strDtoInferenceConfigas JSON string
Returns
ConstraintNAvigatorInference- Instance of constraint navigator inference
Methods
-
@
FlavourRequirement([Flavour.FULL, Flavour.INFERENCE])Destroy this constraint navigator inference. It's always safe to destroy an inference. Internally the destruction only takes place after all references to this object have been released.
-
@
FlavourRequirement([Flavour.FULL, Flavour.INFERENCE])Get this inference's
DtoInferenceDataSpecificationReturns
strDtoInferenceDataSpecificationas JSON string
-
@
FlavourRequirement([Flavour.FULL, Flavour.INFERENCE])For given data and timestamps, calculate the inference on the float valued models within the hub model. The result will be a list of
DtoFloatConstraintValuesinstances corresponding to given timestamps. Make sure to fill theConstraintNavigatorDatawith all data needed for calculation. Check the constraint hub model's inference data specification for needed signals and time ranges.Parameters
data:ConstraintNavigatorData- Instance of constraint navigator data
timestamps:List[int]- List of timestamps
Returns
List[DtoFloatConstraintValues]- List of enhanced float data points
-
@
FlavourRequirement([Flavour.FULL, Flavour.INFERENCE])For given data, timestamps and next normal config, calculate the inference and the closest point that satisfies the given conditions on the float valued models within the hub model. The result will be a list of
DtoFloatConstraintValuesWithNextNormalinstances corresponding to given timestamps. Make sure to fill theConstraintNavigatorDatawith all data needed for calculation. Check the constraint model's inference data specification for needed signals and time ranges.Parameters
data:ConstraintNavigatorData- Instance of constraint navigator data
timestamps:List[int]- List of timestamps
config_json:strDtoFloatNextNormalConfigas JSON string
Returns
List[DtoFloatConstraintValuesWithNextNormal]- List of enhanced float data points
-