#!/bin/bash

name=data
if [ ! -e ${name}-train.csv ]; then
    ../030-regression-fit/split_data.py split --data-file ${name}.csv
fi

./cross_validation_pipeline.py cross-validate --train-file ${name}-train.csv
# ./cross_validation_pipeline.py cross-validate --train-file ${name}-train.csv --use-scaler 1
# ./cross_validation_pipeline.py cross-validate --train-file ${name}-train.csv --use-polynomial-features 1
# ./cross_validation_pipeline.py cross-validate --train-file ${name}-train.csv --use-polynomial-features 2
# ./cross_validation_pipeline.py cross-validate --train-file ${name}-train.csv --use-polynomial-features 3
# ./cross_validation_pipeline.py cross-validate --train-file ${name}-train.csv --use-polynomial-features 1 --use-scaler 1
# ./cross_validation_pipeline.py cross-validate --train-file ${name}-train.csv --use-polynomial-features 2 --use-scaler 1
# ./cross_validation_pipeline.py cross-validate --train-file ${name}-train.csv --use-polynomial-features 3 --use-scaler 1

# ./pipeline.py SGD --train-file ${name}-train.csv --use-polynomial-features 2 --use-scaler 1
# ./pipeline.py show-function --train-file ${name}-train.csv
# ./pipeline.py score --train-file ${name}-train.csv
# ./pipeline.py loss --train-file ${name}-train.csv
# ./pipeline.py show-model --train-file ${name}-train.csv
# ./pipeline.py loss --train-file ${name}-train.csv --show-test 1
# ./pipeline.py score --train-file ${name}-train.csv --show-test 1

