altair_train_classifier
Train and evaluate a classification model using k-fold cross validation with learners like decision tree, random forest, or SVM, returning accuracy, precision, and recall metrics.
Instructions
Train and evaluate a classification model with k-fold cross validation (Decision Tree, Random Forest, Naive Bayes, k-NN, SVM, Logistic Regression, Neural Net, or Gradient Boosted Trees). Returns the performance vector (accuracy/precision/recall/etc). Covers actions 46-55, 66-74 (supervised learning + validation).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folds | No | ||
| csvFile | No | Absolute path to a local CSV file to read directly (bypasses the repository). Use this OR repositoryEntry. | |
| learner | No | decision_tree | |
| labelAttribute | Yes | Name of the target/label column. | |
| repositoryEntry | No | Altair AI Studio repository path, e.g. "//Local Repository/data/customers" or "//Samples/data/Iris". Use this OR csvFile. |