├── LICENSE ├── ch01 └── ch01-01-titanic.py ├── ch02 ├── ch02-01-metrics.py ├── ch02-02-custom-usage.py ├── ch02-03-optimize.py ├── ch02-04-optimize-cv.py └── ch02-05-custom-function.py ├── ch03 ├── ch03-01-numerical.py ├── ch03-02-categorical.py ├── ch03-03-multi_tables.py ├── ch03-04-time_series.py ├── ch03-05-reduction.py └── ch03-06-reduction-mnist.py ├── ch04-model-interface ├── code │ ├── model.py │ ├── model_nn.py │ ├── model_xgb.py │ ├── run.py │ ├── runner.py │ └── util.py ├── input │ └── .gitkeep ├── model │ └── .gitkeep ├── readme.md └── submission │ └── .gitkeep ├── ch04 ├── ch04-01-introduction.py ├── ch04-02-run_xgb.py ├── ch04-03-run_lgb.py ├── ch04-04-run_nn.py └── ch04-05-run_linear.py ├── ch05 ├── ch05-01-validation.py └── ch05-02-timeseries.py ├── ch06 ├── ch06-01-hopt.py ├── ch06-02-hopt_xgb.py ├── ch06-03-hopt_nn.py ├── ch06-04-filter.py ├── ch06-05-embedded.py └── ch06-06-wrapper.py ├── ch07 ├── ch07-01-stacking.py ├── ch07-02-blending.py ├── ch07-03-adversarial.py └── models.py ├── input ├── ch01-titanic │ └── .gitkeep ├── ch03 │ ├── multi_table_log.csv │ ├── multi_table_product.csv │ ├── multi_table_train.csv │ ├── time_series_events.csv │ ├── time_series_train.csv │ └── time_series_wide.csv ├── readme.md └── sample-data │ ├── input_create.py │ ├── input_preprocess.py │ ├── test.csv │ ├── test_preprocessed.csv │ ├── test_preprocessed_onehot.csv │ ├── train.csv │ ├── train_preprocessed.csv │ └── train_preprocessed_onehot.csv ├── misc ├── cover.jpg └── cover_small.jpg └── readme.md /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/LICENSE -------------------------------------------------------------------------------- /ch01/ch01-01-titanic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch01/ch01-01-titanic.py -------------------------------------------------------------------------------- /ch02/ch02-01-metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch02/ch02-01-metrics.py -------------------------------------------------------------------------------- /ch02/ch02-02-custom-usage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch02/ch02-02-custom-usage.py -------------------------------------------------------------------------------- /ch02/ch02-03-optimize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch02/ch02-03-optimize.py -------------------------------------------------------------------------------- /ch02/ch02-04-optimize-cv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch02/ch02-04-optimize-cv.py -------------------------------------------------------------------------------- /ch02/ch02-05-custom-function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch02/ch02-05-custom-function.py -------------------------------------------------------------------------------- /ch03/ch03-01-numerical.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch03/ch03-01-numerical.py -------------------------------------------------------------------------------- /ch03/ch03-02-categorical.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch03/ch03-02-categorical.py -------------------------------------------------------------------------------- /ch03/ch03-03-multi_tables.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch03/ch03-03-multi_tables.py -------------------------------------------------------------------------------- /ch03/ch03-04-time_series.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch03/ch03-04-time_series.py -------------------------------------------------------------------------------- /ch03/ch03-05-reduction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch03/ch03-05-reduction.py -------------------------------------------------------------------------------- /ch03/ch03-06-reduction-mnist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch03/ch03-06-reduction-mnist.py -------------------------------------------------------------------------------- /ch04-model-interface/code/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch04-model-interface/code/model.py -------------------------------------------------------------------------------- /ch04-model-interface/code/model_nn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch04-model-interface/code/model_nn.py -------------------------------------------------------------------------------- /ch04-model-interface/code/model_xgb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch04-model-interface/code/model_xgb.py -------------------------------------------------------------------------------- /ch04-model-interface/code/run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch04-model-interface/code/run.py -------------------------------------------------------------------------------- /ch04-model-interface/code/runner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch04-model-interface/code/runner.py -------------------------------------------------------------------------------- /ch04-model-interface/code/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch04-model-interface/code/util.py -------------------------------------------------------------------------------- /ch04-model-interface/input/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ch04-model-interface/model/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ch04-model-interface/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch04-model-interface/readme.md -------------------------------------------------------------------------------- /ch04-model-interface/submission/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ch04/ch04-01-introduction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch04/ch04-01-introduction.py -------------------------------------------------------------------------------- /ch04/ch04-02-run_xgb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch04/ch04-02-run_xgb.py -------------------------------------------------------------------------------- /ch04/ch04-03-run_lgb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch04/ch04-03-run_lgb.py -------------------------------------------------------------------------------- /ch04/ch04-04-run_nn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch04/ch04-04-run_nn.py -------------------------------------------------------------------------------- /ch04/ch04-05-run_linear.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch04/ch04-05-run_linear.py -------------------------------------------------------------------------------- /ch05/ch05-01-validation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch05/ch05-01-validation.py -------------------------------------------------------------------------------- /ch05/ch05-02-timeseries.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch05/ch05-02-timeseries.py -------------------------------------------------------------------------------- /ch06/ch06-01-hopt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch06/ch06-01-hopt.py -------------------------------------------------------------------------------- /ch06/ch06-02-hopt_xgb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch06/ch06-02-hopt_xgb.py -------------------------------------------------------------------------------- /ch06/ch06-03-hopt_nn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch06/ch06-03-hopt_nn.py -------------------------------------------------------------------------------- /ch06/ch06-04-filter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch06/ch06-04-filter.py -------------------------------------------------------------------------------- /ch06/ch06-05-embedded.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch06/ch06-05-embedded.py -------------------------------------------------------------------------------- /ch06/ch06-06-wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch06/ch06-06-wrapper.py -------------------------------------------------------------------------------- /ch07/ch07-01-stacking.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch07/ch07-01-stacking.py -------------------------------------------------------------------------------- /ch07/ch07-02-blending.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch07/ch07-02-blending.py -------------------------------------------------------------------------------- /ch07/ch07-03-adversarial.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch07/ch07-03-adversarial.py -------------------------------------------------------------------------------- /ch07/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/ch07/models.py -------------------------------------------------------------------------------- /input/ch01-titanic/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /input/ch03/multi_table_log.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/ch03/multi_table_log.csv -------------------------------------------------------------------------------- /input/ch03/multi_table_product.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/ch03/multi_table_product.csv -------------------------------------------------------------------------------- /input/ch03/multi_table_train.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/ch03/multi_table_train.csv -------------------------------------------------------------------------------- /input/ch03/time_series_events.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/ch03/time_series_events.csv -------------------------------------------------------------------------------- /input/ch03/time_series_train.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/ch03/time_series_train.csv -------------------------------------------------------------------------------- /input/ch03/time_series_wide.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/ch03/time_series_wide.csv -------------------------------------------------------------------------------- /input/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/readme.md -------------------------------------------------------------------------------- /input/sample-data/input_create.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/sample-data/input_create.py -------------------------------------------------------------------------------- /input/sample-data/input_preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/sample-data/input_preprocess.py -------------------------------------------------------------------------------- /input/sample-data/test.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/sample-data/test.csv -------------------------------------------------------------------------------- /input/sample-data/test_preprocessed.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/sample-data/test_preprocessed.csv -------------------------------------------------------------------------------- /input/sample-data/test_preprocessed_onehot.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/sample-data/test_preprocessed_onehot.csv -------------------------------------------------------------------------------- /input/sample-data/train.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/sample-data/train.csv -------------------------------------------------------------------------------- /input/sample-data/train_preprocessed.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/sample-data/train_preprocessed.csv -------------------------------------------------------------------------------- /input/sample-data/train_preprocessed_onehot.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/input/sample-data/train_preprocessed_onehot.csv -------------------------------------------------------------------------------- /misc/cover.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/misc/cover.jpg -------------------------------------------------------------------------------- /misc/cover_small.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/misc/cover_small.jpg -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghmagazine/kagglebook/HEAD/readme.md --------------------------------------------------------------------------------