├── .gitignore ├── LICENSE ├── README.md ├── chapter10 ├── kmeans_elbow.py ├── kmeans_from_scratch.py ├── kmeans_newsgroups.py ├── kmeans_sklearn.py ├── lda_newsgroups.py └── nmf_newsgroups.py ├── chapter11 ├── dimensionality_reduction.py ├── feature_selection.py ├── generic_feature_engineering.py ├── imputation.py ├── save_reuse_model_tf.py ├── save_reuse_monitor_model.py └── word_embedding.py ├── chapter12 ├── classify_clothing_image.py └── classify_image_augmentation.py ├── chapter13 ├── sentiment_rnn.py ├── text_gen_rnn.py └── warpeace_input.txt ├── chapter14 ├── installation.py ├── mc_policy_evaluation.py ├── on_policy_mc_control.py ├── policy_iteration.py ├── simulate_frozenlake.py ├── taxi_q_learning.py └── value_iteration.py ├── chapter2 ├── ml-10m.zip ├── movie_recommendation.py └── naive_bayes.py ├── chapter3 ├── CTG.xls ├── ctg.py ├── face_recognition_svm.py ├── plot_rbf_kernels.py └── svm_example.py ├── chapter4 ├── avazu_ctr.py ├── avazu_ctr_xgboost.py └── decision_tree_implementation.py ├── chapter5 ├── encoding.py ├── logistic_function.py ├── logistic_regression_from_scratch.py ├── logistic_regression_tf.py ├── random_forest_feature_selection.py └── scikit_logistic_regression.py ├── chapter6 ├── ctr.py ├── ctr_hashing.py ├── ctr_interaction.py └── example.py ├── chapter7 ├── decision_tree_regression.py ├── get_dji_data.py ├── linear_regression.py ├── regression_evaluation.py ├── stock_prediction.py └── svr.py ├── chapter8 ├── neural_network.py └── stock_prediction.py └── chapter9 ├── exploring_nlp.py ├── getting_exploring_newsgroups.py ├── tSNE.py └── thinking_about_features.py /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .ropeproject -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/README.md -------------------------------------------------------------------------------- /chapter10/kmeans_elbow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter10/kmeans_elbow.py -------------------------------------------------------------------------------- /chapter10/kmeans_from_scratch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter10/kmeans_from_scratch.py -------------------------------------------------------------------------------- /chapter10/kmeans_newsgroups.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter10/kmeans_newsgroups.py -------------------------------------------------------------------------------- /chapter10/kmeans_sklearn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter10/kmeans_sklearn.py -------------------------------------------------------------------------------- /chapter10/lda_newsgroups.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter10/lda_newsgroups.py -------------------------------------------------------------------------------- /chapter10/nmf_newsgroups.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter10/nmf_newsgroups.py -------------------------------------------------------------------------------- /chapter11/dimensionality_reduction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter11/dimensionality_reduction.py -------------------------------------------------------------------------------- /chapter11/feature_selection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter11/feature_selection.py -------------------------------------------------------------------------------- /chapter11/generic_feature_engineering.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter11/generic_feature_engineering.py -------------------------------------------------------------------------------- /chapter11/imputation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter11/imputation.py -------------------------------------------------------------------------------- /chapter11/save_reuse_model_tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter11/save_reuse_model_tf.py -------------------------------------------------------------------------------- /chapter11/save_reuse_monitor_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter11/save_reuse_monitor_model.py -------------------------------------------------------------------------------- /chapter11/word_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter11/word_embedding.py -------------------------------------------------------------------------------- /chapter12/classify_clothing_image.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter12/classify_clothing_image.py -------------------------------------------------------------------------------- /chapter12/classify_image_augmentation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter12/classify_image_augmentation.py -------------------------------------------------------------------------------- /chapter13/sentiment_rnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter13/sentiment_rnn.py -------------------------------------------------------------------------------- /chapter13/text_gen_rnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter13/text_gen_rnn.py -------------------------------------------------------------------------------- /chapter13/warpeace_input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter13/warpeace_input.txt -------------------------------------------------------------------------------- /chapter14/installation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter14/installation.py -------------------------------------------------------------------------------- /chapter14/mc_policy_evaluation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter14/mc_policy_evaluation.py -------------------------------------------------------------------------------- /chapter14/on_policy_mc_control.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter14/on_policy_mc_control.py -------------------------------------------------------------------------------- /chapter14/policy_iteration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter14/policy_iteration.py -------------------------------------------------------------------------------- /chapter14/simulate_frozenlake.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter14/simulate_frozenlake.py -------------------------------------------------------------------------------- /chapter14/taxi_q_learning.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter14/taxi_q_learning.py -------------------------------------------------------------------------------- /chapter14/value_iteration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter14/value_iteration.py -------------------------------------------------------------------------------- /chapter2/ml-10m.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter2/ml-10m.zip -------------------------------------------------------------------------------- /chapter2/movie_recommendation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter2/movie_recommendation.py -------------------------------------------------------------------------------- /chapter2/naive_bayes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter2/naive_bayes.py -------------------------------------------------------------------------------- /chapter3/CTG.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter3/CTG.xls -------------------------------------------------------------------------------- /chapter3/ctg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter3/ctg.py -------------------------------------------------------------------------------- /chapter3/face_recognition_svm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter3/face_recognition_svm.py -------------------------------------------------------------------------------- /chapter3/plot_rbf_kernels.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter3/plot_rbf_kernels.py -------------------------------------------------------------------------------- /chapter3/svm_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter3/svm_example.py -------------------------------------------------------------------------------- /chapter4/avazu_ctr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter4/avazu_ctr.py -------------------------------------------------------------------------------- /chapter4/avazu_ctr_xgboost.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter4/avazu_ctr_xgboost.py -------------------------------------------------------------------------------- /chapter4/decision_tree_implementation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter4/decision_tree_implementation.py -------------------------------------------------------------------------------- /chapter5/encoding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter5/encoding.py -------------------------------------------------------------------------------- /chapter5/logistic_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter5/logistic_function.py -------------------------------------------------------------------------------- /chapter5/logistic_regression_from_scratch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter5/logistic_regression_from_scratch.py -------------------------------------------------------------------------------- /chapter5/logistic_regression_tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter5/logistic_regression_tf.py -------------------------------------------------------------------------------- /chapter5/random_forest_feature_selection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter5/random_forest_feature_selection.py -------------------------------------------------------------------------------- /chapter5/scikit_logistic_regression.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter5/scikit_logistic_regression.py -------------------------------------------------------------------------------- /chapter6/ctr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter6/ctr.py -------------------------------------------------------------------------------- /chapter6/ctr_hashing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter6/ctr_hashing.py -------------------------------------------------------------------------------- /chapter6/ctr_interaction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter6/ctr_interaction.py -------------------------------------------------------------------------------- /chapter6/example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter6/example.py -------------------------------------------------------------------------------- /chapter7/decision_tree_regression.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter7/decision_tree_regression.py -------------------------------------------------------------------------------- /chapter7/get_dji_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter7/get_dji_data.py -------------------------------------------------------------------------------- /chapter7/linear_regression.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter7/linear_regression.py -------------------------------------------------------------------------------- /chapter7/regression_evaluation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter7/regression_evaluation.py -------------------------------------------------------------------------------- /chapter7/stock_prediction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter7/stock_prediction.py -------------------------------------------------------------------------------- /chapter7/svr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter7/svr.py -------------------------------------------------------------------------------- /chapter8/neural_network.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter8/neural_network.py -------------------------------------------------------------------------------- /chapter8/stock_prediction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter8/stock_prediction.py -------------------------------------------------------------------------------- /chapter9/exploring_nlp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter9/exploring_nlp.py -------------------------------------------------------------------------------- /chapter9/getting_exploring_newsgroups.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter9/getting_exploring_newsgroups.py -------------------------------------------------------------------------------- /chapter9/tSNE.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter9/tSNE.py -------------------------------------------------------------------------------- /chapter9/thinking_about_features.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Python-Machine-Learning-By-Example-Third-Edition/HEAD/chapter9/thinking_about_features.py --------------------------------------------------------------------------------