fit_predict
Train a baseline model on training data, generate test predictions in the sample submission format, and validate the output CSV before upload.
Instructions
Fit the baseline model on all training rows and write a submission file in the sample submission's format: one probability or value per row, a label, space-separated top-k labels (MAP@k) or one probability column per class. Run check_submission on the result before uploading.
Args: train_path: training table. test_path: test table. target: target column. id_col: ID column, copied to the submission. out_path: where to write the submission CSV. sample_submission_path: the competition's sample submission (sets the output format). task: 'auto', 'binary', 'multiclass' or 'regression'. metric: the competition metric (rmsle trains on log1p(target); map@k writes k labels). group_col: key column to leave out of the features, as in cv_baseline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | auto | |
| id_col | Yes | ||
| metric | No | ||
| target | Yes | ||
| out_path | Yes | ||
| group_col | No | ||
| test_path | Yes | ||
| train_path | Yes | ||
| sample_submission_path | No |