Docs /Templates/ sinapsis-data-analysis

SKLearnInference

sinapsis-data-analysisSKLearninferencesklearnpredictionjoblib

Python template · sinapsis_data_analysis.templates.inference.sklearn_inference

Overview

Template for inference using sklearn models.

This template loads a saved sklearn model using joblib and uses it to make predictions on new data.

Capabilities

Capabilities: not set

Installation

Install the published package using pip or uv.

Terminalbash
pip install sinapsis-data-analysis==1.0.0
uv pip install sinapsis-data-analysis==1.0.0
uv add sinapsis-data-analysis==1.0.0

Configuration

Effective fields from the inspector schema, including nested Pydantic model fields.

metadata
sinapsis_core.template_base.base_models.TemplateMetadata | None
Optional
Default: null
root_dir
str
Optional
Default: "/sinapsis-hub/private/platform/sinapsis-hub/playground"
model_pathRequired

Path to the saved model file.

str
Required
Default: null
target_keyRequired
str
Required
Default: null
generic_field_keyRequired

Key of the generic field where data is stored.

str
Required
Default: null

Configuration example

Generated from documented defaults. Replace any placeholders and complete required nested settings before running.

yaml
templates:
  - template_name: "SKLearnInference"
    class_name: "SKLearnInference"
    attributes:
      root_dir: "/sinapsis-hub/private/platform/sinapsis-hub/playground"
      model_path: "<required>"
      target_key: "<required>"
      generic_field_key: "<required>"

Inheritance

Immediate parent: sinapsis_data_analysis.templates.inference.ml_base_inference.MLBaseInference

Environment variables

Environment definitions belong to their canonical Python modules.

No directly related environment variables listed.