CSVDatasetSplitter
Python template · sinapsis_data_readers.templates.datasets_readers.dataset_splitter
Overview
Template to split a tabular data set into test and train samples. The template retrieves the dataset from the dataframe packet of the container and stores the features and targets as new dataframes, with source indicating whether train or test samples
Capabilities
Capabilities: not setInstallation
Install the published package using pip or uv.
pip install sinapsis-data-readers==1.0.0uv pip install sinapsis-data-readers==1.0.0uv add sinapsis-data-readers==1.0.0Configuration
Effective fields from the inspector schema, including nested Pydantic model fields.
Field used to set the template instance name and agent name. Defaults to None.
Optional
Default: null
Optional
Default: "target"
Optional
Default: 0.2
Optional
Default: null
Optional
Default: 42
Configuration example
Generated from documented defaults. Replace any placeholders and complete required nested settings before running.
templates:
- template_name: "CSVDatasetSplitter"
class_name: "CSVDatasetSplitter"
attributes:
target_key: "target"
train_size: 0.2
feature_key: null
random_state: 42
Inheritance
sinapsis_core.template_base.template.TemplateEnvironment variables
Environment definitions belong to their canonical Python modules.
No directly related environment variables listed.