├── .DS_Store ├── Chapter01 ├── Chapter1_Logging.ipynb ├── Chapter1_Section_Debugging_in_software_development.ipynb ├── Chapter1_Section_Debugging_techniques.ipynb └── Chapter1_Section_Error_messages_in_Python.ipynb ├── Chapter02 ├── Chapter2_Designing_evaluation_and_testing_strategy.ipynb ├── Chapter2_Model_training_and_evaluation.ipynb ├── Chapter2_Section_Data_transformation.ipynb ├── Chapter2_Section_Feature_extraction.ipynb ├── Chapter2_Section_Feature_imputation_for_filling_missing_values.ipynb └── Chapter2_Section_Outlier_removal.ipynb ├── Chapter04 ├── Bias_and_variance_diagnosis.ipynb ├── Classification_performance_measure_barplot.ipynb ├── Confusion_matrix.ipynb ├── Cross-validation.ipynb ├── Distribution_performance_measures_boxplots.ipynb ├── Error_analysis.ipynb ├── Model_stacking.ipynb └── Time_series_diagrams.ipynb ├── Chapter05 ├── Extra_code_SMOTE_example.ipynb ├── Hyperparameter_optimization.ipynb ├── Regularization.ipynb ├── SMOTE_and_derivatives.ipynb └── iForest.ipynb ├── Chapter06 ├── Counterfactual_DiCE.ipynb ├── LIME_UCI_income_data.ipynb └── SHAP_UCI_income_data.ipynb ├── Chapter07 ├── aif360_Reject Option based Classification.ipynb ├── aif360_disparate_impact_ratio.ipynb ├── disparate_impact_sample_size_effect.ipynb └── fairness_SHAP_Income data_algorithmic bias.ipynb ├── Chapter08 ├── .DS_Store ├── MLflow_breast dataset.ipynb ├── Pytest_Fixture.ipynb ├── Pytest_Fixture_morefeatures.ipynb └── Pytest_UnitTesting.ipynb ├── Chapter09 ├── Integration_testing_pytest.ipynb └── Model_assertion.ipynb ├── Chapter10 └── Chapter10_Figure1.ipynb ├── Chapter11 ├── Avoiding_data_drift.ipynb ├── drift_alibi_detect.ipynb └── drift_evidently.ipynb ├── Chapter12 └── FCNN_PyTorch.ipynb ├── Chapter13 ├── CNN_GTSRB.ipynb ├── DistilBertForSequenceClassification_imdb.ipynb ├── GCN_Node Classification.ipynb ├── Transformer_GPT2.ipynb └── Transformer_Tonenization.ipynb ├── Chapter14 ├── RLHF_PyTorch.ipynb ├── Self-supervised_inpainting.ipynb └── VAE_PyTorch.ipynb ├── Chapter15 ├── Causal_Inference_bnlearn.ipynb └── Causal_Inference_dowhy.ipynb ├── Chapter16 ├── Differential_privacy.ipynb ├── Encryption_AES.ipynb └── Homomorphic_encryption_TenSEAL.ipynb ├── LICENSE └── README.md /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/.DS_Store -------------------------------------------------------------------------------- /Chapter01/Chapter1_Logging.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter01/Chapter1_Logging.ipynb -------------------------------------------------------------------------------- /Chapter01/Chapter1_Section_Debugging_in_software_development.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter01/Chapter1_Section_Debugging_in_software_development.ipynb -------------------------------------------------------------------------------- /Chapter01/Chapter1_Section_Debugging_techniques.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter01/Chapter1_Section_Debugging_techniques.ipynb -------------------------------------------------------------------------------- /Chapter01/Chapter1_Section_Error_messages_in_Python.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter01/Chapter1_Section_Error_messages_in_Python.ipynb -------------------------------------------------------------------------------- /Chapter02/Chapter2_Designing_evaluation_and_testing_strategy.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter02/Chapter2_Designing_evaluation_and_testing_strategy.ipynb -------------------------------------------------------------------------------- /Chapter02/Chapter2_Model_training_and_evaluation.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter02/Chapter2_Model_training_and_evaluation.ipynb -------------------------------------------------------------------------------- /Chapter02/Chapter2_Section_Data_transformation.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter02/Chapter2_Section_Data_transformation.ipynb -------------------------------------------------------------------------------- /Chapter02/Chapter2_Section_Feature_extraction.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter02/Chapter2_Section_Feature_extraction.ipynb -------------------------------------------------------------------------------- /Chapter02/Chapter2_Section_Feature_imputation_for_filling_missing_values.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter02/Chapter2_Section_Feature_imputation_for_filling_missing_values.ipynb -------------------------------------------------------------------------------- /Chapter02/Chapter2_Section_Outlier_removal.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter02/Chapter2_Section_Outlier_removal.ipynb -------------------------------------------------------------------------------- /Chapter04/Bias_and_variance_diagnosis.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter04/Bias_and_variance_diagnosis.ipynb -------------------------------------------------------------------------------- /Chapter04/Classification_performance_measure_barplot.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter04/Classification_performance_measure_barplot.ipynb -------------------------------------------------------------------------------- /Chapter04/Confusion_matrix.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter04/Confusion_matrix.ipynb -------------------------------------------------------------------------------- /Chapter04/Cross-validation.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter04/Cross-validation.ipynb -------------------------------------------------------------------------------- /Chapter04/Distribution_performance_measures_boxplots.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter04/Distribution_performance_measures_boxplots.ipynb -------------------------------------------------------------------------------- /Chapter04/Error_analysis.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter04/Error_analysis.ipynb -------------------------------------------------------------------------------- /Chapter04/Model_stacking.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter04/Model_stacking.ipynb -------------------------------------------------------------------------------- /Chapter04/Time_series_diagrams.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter04/Time_series_diagrams.ipynb -------------------------------------------------------------------------------- /Chapter05/Extra_code_SMOTE_example.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter05/Extra_code_SMOTE_example.ipynb -------------------------------------------------------------------------------- /Chapter05/Hyperparameter_optimization.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter05/Hyperparameter_optimization.ipynb -------------------------------------------------------------------------------- /Chapter05/Regularization.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter05/Regularization.ipynb -------------------------------------------------------------------------------- /Chapter05/SMOTE_and_derivatives.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter05/SMOTE_and_derivatives.ipynb -------------------------------------------------------------------------------- /Chapter05/iForest.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter05/iForest.ipynb -------------------------------------------------------------------------------- /Chapter06/Counterfactual_DiCE.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter06/Counterfactual_DiCE.ipynb -------------------------------------------------------------------------------- /Chapter06/LIME_UCI_income_data.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter06/LIME_UCI_income_data.ipynb -------------------------------------------------------------------------------- /Chapter06/SHAP_UCI_income_data.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter06/SHAP_UCI_income_data.ipynb -------------------------------------------------------------------------------- /Chapter07/aif360_Reject Option based Classification.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter07/aif360_Reject Option based Classification.ipynb -------------------------------------------------------------------------------- /Chapter07/aif360_disparate_impact_ratio.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter07/aif360_disparate_impact_ratio.ipynb -------------------------------------------------------------------------------- /Chapter07/disparate_impact_sample_size_effect.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter07/disparate_impact_sample_size_effect.ipynb -------------------------------------------------------------------------------- /Chapter07/fairness_SHAP_Income data_algorithmic bias.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter07/fairness_SHAP_Income data_algorithmic bias.ipynb -------------------------------------------------------------------------------- /Chapter08/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter08/.DS_Store -------------------------------------------------------------------------------- /Chapter08/MLflow_breast dataset.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter08/MLflow_breast dataset.ipynb -------------------------------------------------------------------------------- /Chapter08/Pytest_Fixture.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter08/Pytest_Fixture.ipynb -------------------------------------------------------------------------------- /Chapter08/Pytest_Fixture_morefeatures.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter08/Pytest_Fixture_morefeatures.ipynb -------------------------------------------------------------------------------- /Chapter08/Pytest_UnitTesting.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter08/Pytest_UnitTesting.ipynb -------------------------------------------------------------------------------- /Chapter09/Integration_testing_pytest.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter09/Integration_testing_pytest.ipynb -------------------------------------------------------------------------------- /Chapter09/Model_assertion.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter09/Model_assertion.ipynb -------------------------------------------------------------------------------- /Chapter10/Chapter10_Figure1.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter10/Chapter10_Figure1.ipynb -------------------------------------------------------------------------------- /Chapter11/Avoiding_data_drift.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter11/Avoiding_data_drift.ipynb -------------------------------------------------------------------------------- /Chapter11/drift_alibi_detect.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter11/drift_alibi_detect.ipynb -------------------------------------------------------------------------------- /Chapter11/drift_evidently.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter11/drift_evidently.ipynb -------------------------------------------------------------------------------- /Chapter12/FCNN_PyTorch.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter12/FCNN_PyTorch.ipynb -------------------------------------------------------------------------------- /Chapter13/CNN_GTSRB.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter13/CNN_GTSRB.ipynb -------------------------------------------------------------------------------- /Chapter13/DistilBertForSequenceClassification_imdb.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter13/DistilBertForSequenceClassification_imdb.ipynb -------------------------------------------------------------------------------- /Chapter13/GCN_Node Classification.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter13/GCN_Node Classification.ipynb -------------------------------------------------------------------------------- /Chapter13/Transformer_GPT2.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter13/Transformer_GPT2.ipynb -------------------------------------------------------------------------------- /Chapter13/Transformer_Tonenization.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter13/Transformer_Tonenization.ipynb -------------------------------------------------------------------------------- /Chapter14/RLHF_PyTorch.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter14/RLHF_PyTorch.ipynb -------------------------------------------------------------------------------- /Chapter14/Self-supervised_inpainting.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter14/Self-supervised_inpainting.ipynb -------------------------------------------------------------------------------- /Chapter14/VAE_PyTorch.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter14/VAE_PyTorch.ipynb -------------------------------------------------------------------------------- /Chapter15/Causal_Inference_bnlearn.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter15/Causal_Inference_bnlearn.ipynb -------------------------------------------------------------------------------- /Chapter15/Causal_Inference_dowhy.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter15/Causal_Inference_dowhy.ipynb -------------------------------------------------------------------------------- /Chapter16/Differential_privacy.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter16/Differential_privacy.ipynb -------------------------------------------------------------------------------- /Chapter16/Encryption_AES.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter16/Encryption_AES.ipynb -------------------------------------------------------------------------------- /Chapter16/Homomorphic_encryption_TenSEAL.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/Chapter16/Homomorphic_encryption_TenSEAL.ipynb -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Debugging-Machine-Learning-Models-with-Python/HEAD/README.md --------------------------------------------------------------------------------