Sklearn Datasets icon

Sklearn Datasets

Load sample datasets from scikit-learn

Sklearn Datasets

AI-generated

Summary

Loads a scikit‑learn dataset and returns it as n8n items.

Inputs

None.

Output shape

single item when Output Format is Arrays; multiple items (one per sample) when Output Format is Rows

When Output Format is Rows each item contains the feature fields plus an optional target field; when Output Format is Arrays the item holds the full features array, target array, feature names, target name, sizes and dataset description.

Examples

Example 1: Use a built‑in dataset for quick testing

Dataset: Iris, Output Format: Rows, Include Target: true

Example 2: Generate synthetic regression data for model training

Dataset: Make Regression, Number of Samples: 1000, Number of Features: 5, Output Format: Arrays

Discussion