Actions2
Fit Transform
AI-generatedSummary
Fit and generate polynomial features on selected columns
Inputs
- featureColumns (required) — Comma-separated list of feature column names
- degree — Degree of polynomial features
- includeBias — Whether to include a bias column (all ones)
- interactionOnly — Whether to produce only interaction features (no powers)
- pythonPath — Path to Python executable with scikit-learn installed
Output shape
a list of output records containing the polynomial-transformed data and metadata
each item includes 'transformed' (list of new feature values), 'feature_names' (list of new feature names), and metadata such as degree, include_bias, interaction_only, and original input columns
Examples
Example 1: Add quadratic features to columns feature1,feature2
featureColumns: feature1,feature2; degree: 2; includeBias: true; interactionOnly: false
Example 2: Generate only interaction features of degree 3 on column attr1
featureColumns: attr1; degree: 3; includeBias: true; interactionOnly: true