XGBoostInference
Python template · sinapsis_data_analysis.templates.inference.xgboost_inference
Overview
Dynamic templates to perform inference using XGBoost models. These templates wrap the functionality of the xgb module and use the predict method on execute using a dataset obtained through the container.
Capabilities
Capabilities: not setInstallation
Install the published package using pip or uv.
pip install sinapsis-data-analysis==1.0.0uv pip install sinapsis-data-analysis==1.0.0uv add sinapsis-data-analysis==1.0.0Configuration
Effective fields from the inspector schema, including nested Pydantic model fields.
Optional
Default: null
Optional
Default: "/sinapsis-hub/private/platform/sinapsis-hub/playground"
Path to the saved model file.
Required
Default: null
Required
Default: null
Key of the generic field where data is stored.
Required
Default: null
Configuration example
Generated from documented defaults. Replace any placeholders and complete required nested settings before running.
templates:
- template_name: "XGBoostInference"
class_name: "XGBoostInference"
attributes:
root_dir: "/sinapsis-hub/private/platform/sinapsis-hub/playground"
model_path: "<required>"
target_key: "<required>"
generic_field_key: "<required>"
View original docstring example
The source example references XGBRFClassifierInference, not XGBoostInference.
agent:
name: my_test_agent
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: XGBRFClassifierInference
class_name: XGBRFClassifierInference
template_input: InputTemplate
attributes:
model_path: 'artifacts/xgb_rf_classifier.model'
generic_field_key: 'generic_dataset'Inheritance
sinapsis_data_analysis.templates.inference.sklearn_inference.SKLearnInferenceEnvironment variables
Environment definitions belong to their canonical Python modules.
No directly related environment variables listed.