├── .gitignore ├── .idea └── .gitignore ├── Chapter01 ├── batch-anomaly │ ├── data │ │ └── taxi-rides.csv │ ├── notebooks │ │ └── taxi-anomaly.ipynb │ ├── output │ │ └── labels.json │ └── taxi_anomaly.py ├── forecasting-api │ ├── data │ │ ├── AEP_hourly.csv │ │ ├── data.md │ │ ├── demand-forecasting-kernels-only │ │ │ ├── sample_submission.csv │ │ │ ├── test.csv │ │ │ └── train.csv │ │ └── rossman │ │ │ ├── store.csv │ │ │ ├── test.csv │ │ │ └── train.csv │ └── notebooks │ │ ├── electricity-demand-forecast.ipynb │ │ ├── item-demand-forecast-rossman.ipynb │ │ └── item-demand-forecast.ipynb └── stream-classifier │ ├── data │ ├── bank-additional │ │ └── bank-additional │ │ │ ├── bank-additional-full.csv │ │ │ ├── bank-additional-names.txt │ │ │ └── bank-additional.csv │ ├── bank.zip │ └── bank │ │ ├── bank-full.csv │ │ ├── bank-names.txt │ │ └── bank.csv │ ├── notebooks │ └── marketing-classifier.ipynb │ └── stream_classifier.py ├── Chapter02 ├── bad-git │ └── pipeline.py ├── mlflow │ ├── mlflow_basic.py │ └── mlflow_forecasting.py └── testing │ ├── helper.py │ ├── model.py │ └── test_model.py ├── Chapter03 ├── automl │ └── autosklearn_example.py ├── drift-detection │ ├── alibi-detect-adult-data.ipynb │ └── alibi-detect-wine-data.ipynb ├── features │ ├── feature-engineering-simple.py │ ├── feature-engineering.ipynb │ └── feature-engineering.py ├── hyperparameter-opt │ ├── hyperopt-example.ipynb │ ├── hyperopt_example.py │ ├── optuna-example.ipynb │ ├── optuna_example.py │ └── skoptimize_example.py ├── mlflow-advanced │ ├── mlflow-feature-engineering.py │ ├── model_registry_retrieve.py │ └── start-mlflow-server.sh └── pipelines │ ├── kubeflow_pipeline.py │ ├── sklearn_pipeline.py │ ├── sparkmllib_pipeline.ipynb │ ├── sparkmllib_pipeline.py │ └── sparkmllib_pipeline_mlflow.py ├── Chapter04 ├── __init__.py ├── logging_example.py ├── outlier_package │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── __init__.py │ ├── configure_project.sh │ ├── outliers │ │ ├── __init__.py │ │ ├── __main__.py │ │ ├── configs │ │ │ ├── __init__.py │ │ │ └── model_config.json │ │ ├── definitions.py │ │ ├── detectors │ │ │ ├── __init__.py │ │ │ ├── detection_models.py │ │ │ └── pipelines.py │ │ ├── feature │ │ │ ├── __init__.py │ │ │ ├── categorical │ │ │ │ ├── __init__.py │ │ │ │ └── analyze.py │ │ │ └── numerical │ │ │ │ ├── __init__.py │ │ │ │ └── analyze.py │ │ ├── tests │ │ │ ├── test_create_data.py │ │ │ └── test_detectors.py │ │ └── utils │ │ │ ├── __init__.py │ │ │ └── data.py │ ├── requirements.txt │ ├── setup.cfg │ └── setup.py └── simple_examples │ ├── args_kwargs_example.py │ ├── class_example.py │ ├── functional_example.py │ ├── generators_and_lists_example.py │ ├── import_module_example.py │ ├── lint_example.py │ └── module.py ├── Chapter05 ├── airflow │ ├── README.md │ ├── airflow-env.yaml │ └── dags │ │ └── classification_pipeline_dag.py ├── mleip-airflow │ ├── LICENSE │ ├── README.md │ ├── config │ │ ├── mwaa_public_network.yaml │ │ └── requirements.txt │ └── dags │ │ ├── basic_dag.py │ │ ├── classification_pipeline_dag.py │ │ └── test_dag.py └── mleip-web-service-main │ ├── .gitignore │ ├── LICENSE │ ├── README.md │ ├── app │ ├── Dockerfile │ ├── __init__.py │ ├── app.py │ ├── requirements.txt │ └── resources │ │ ├── __init__.py │ │ └── forecast.py │ └── build_and_test.sh ├── Chapter06 ├── emr │ └── emr_sparkmllib.py ├── lambda │ ├── ch6-fig15.png │ └── mleip-lambda-example │ │ ├── .gitignore │ │ ├── README.md │ │ ├── __init__.py │ │ ├── app │ │ ├── Dockerfile │ │ ├── __init__.py │ │ ├── app.py │ │ ├── model │ │ └── requirements.txt │ │ ├── events │ │ └── event.json │ │ ├── mleip-lambda-example-training.ipynb │ │ ├── template.yml │ │ └── training.ipynb ├── pandas_udf.py ├── set_env_vars_for_session.sh ├── spark_example_mlflow_pandas_udfs.py └── spark_example_udfs.py ├── Chapter07 ├── exploration │ ├── automated-model-retraining.ipynb │ └── aws-forecast-training.ipynb ├── forecast-service │ ├── aws-forecast-training-utils.ipynb │ ├── create-dataset-group.sh │ ├── create-dataset-import-job.sh │ ├── create-forecast-role.sh │ ├── create-s3-iam-attach-forecast-role.sh │ └── setup-forecast-service.sh └── handler-service │ ├── .gitignore │ ├── LICENSE │ ├── README.md │ ├── app │ ├── Dockerfile │ ├── __init__.py │ ├── app.py │ ├── requirements.txt │ └── resources │ │ ├── __init__.py │ │ ├── config.py │ │ ├── forecast.py │ │ ├── session.py │ │ └── train.py │ └── build_and_test.sh ├── LICENSE ├── README.md ├── README1.MD ├── README1.txt ├── clean_notebooks.sh └── environments ├── mleip-pd-udf-ch6 ├── mleip-pd-udf-ch6.yml ├── mleip-pd-udf.yml ├── mleng-environment.yml ├── mleng-mac-environment.yml └── mleng-spark3-ch6.yml /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/.gitignore -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /Chapter01/batch-anomaly/data/taxi-rides.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/batch-anomaly/data/taxi-rides.csv -------------------------------------------------------------------------------- /Chapter01/batch-anomaly/notebooks/taxi-anomaly.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/batch-anomaly/notebooks/taxi-anomaly.ipynb -------------------------------------------------------------------------------- /Chapter01/batch-anomaly/output/labels.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/batch-anomaly/output/labels.json -------------------------------------------------------------------------------- /Chapter01/batch-anomaly/taxi_anomaly.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/batch-anomaly/taxi_anomaly.py -------------------------------------------------------------------------------- /Chapter01/forecasting-api/data/AEP_hourly.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/forecasting-api/data/AEP_hourly.csv -------------------------------------------------------------------------------- /Chapter01/forecasting-api/data/data.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/forecasting-api/data/data.md -------------------------------------------------------------------------------- /Chapter01/forecasting-api/data/demand-forecasting-kernels-only/sample_submission.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/forecasting-api/data/demand-forecasting-kernels-only/sample_submission.csv -------------------------------------------------------------------------------- /Chapter01/forecasting-api/data/demand-forecasting-kernels-only/test.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/forecasting-api/data/demand-forecasting-kernels-only/test.csv -------------------------------------------------------------------------------- /Chapter01/forecasting-api/data/demand-forecasting-kernels-only/train.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/forecasting-api/data/demand-forecasting-kernels-only/train.csv -------------------------------------------------------------------------------- /Chapter01/forecasting-api/data/rossman/store.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/forecasting-api/data/rossman/store.csv -------------------------------------------------------------------------------- /Chapter01/forecasting-api/data/rossman/test.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/forecasting-api/data/rossman/test.csv -------------------------------------------------------------------------------- /Chapter01/forecasting-api/data/rossman/train.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/forecasting-api/data/rossman/train.csv -------------------------------------------------------------------------------- /Chapter01/forecasting-api/notebooks/electricity-demand-forecast.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/forecasting-api/notebooks/electricity-demand-forecast.ipynb -------------------------------------------------------------------------------- /Chapter01/forecasting-api/notebooks/item-demand-forecast-rossman.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/forecasting-api/notebooks/item-demand-forecast-rossman.ipynb -------------------------------------------------------------------------------- /Chapter01/forecasting-api/notebooks/item-demand-forecast.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/forecasting-api/notebooks/item-demand-forecast.ipynb -------------------------------------------------------------------------------- /Chapter01/stream-classifier/data/bank-additional/bank-additional/bank-additional-full.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/stream-classifier/data/bank-additional/bank-additional/bank-additional-full.csv -------------------------------------------------------------------------------- /Chapter01/stream-classifier/data/bank-additional/bank-additional/bank-additional-names.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/stream-classifier/data/bank-additional/bank-additional/bank-additional-names.txt -------------------------------------------------------------------------------- /Chapter01/stream-classifier/data/bank-additional/bank-additional/bank-additional.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/stream-classifier/data/bank-additional/bank-additional/bank-additional.csv -------------------------------------------------------------------------------- /Chapter01/stream-classifier/data/bank.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/stream-classifier/data/bank.zip -------------------------------------------------------------------------------- /Chapter01/stream-classifier/data/bank/bank-full.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/stream-classifier/data/bank/bank-full.csv -------------------------------------------------------------------------------- /Chapter01/stream-classifier/data/bank/bank-names.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/stream-classifier/data/bank/bank-names.txt -------------------------------------------------------------------------------- /Chapter01/stream-classifier/data/bank/bank.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/stream-classifier/data/bank/bank.csv -------------------------------------------------------------------------------- /Chapter01/stream-classifier/notebooks/marketing-classifier.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/stream-classifier/notebooks/marketing-classifier.ipynb -------------------------------------------------------------------------------- /Chapter01/stream-classifier/stream_classifier.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter01/stream-classifier/stream_classifier.py -------------------------------------------------------------------------------- /Chapter02/bad-git/pipeline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter02/bad-git/pipeline.py -------------------------------------------------------------------------------- /Chapter02/mlflow/mlflow_basic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter02/mlflow/mlflow_basic.py -------------------------------------------------------------------------------- /Chapter02/mlflow/mlflow_forecasting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter02/mlflow/mlflow_forecasting.py -------------------------------------------------------------------------------- /Chapter02/testing/helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter02/testing/helper.py -------------------------------------------------------------------------------- /Chapter02/testing/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter02/testing/model.py -------------------------------------------------------------------------------- /Chapter02/testing/test_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter02/testing/test_model.py -------------------------------------------------------------------------------- /Chapter03/automl/autosklearn_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/automl/autosklearn_example.py -------------------------------------------------------------------------------- /Chapter03/drift-detection/alibi-detect-adult-data.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/drift-detection/alibi-detect-adult-data.ipynb -------------------------------------------------------------------------------- /Chapter03/drift-detection/alibi-detect-wine-data.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/drift-detection/alibi-detect-wine-data.ipynb -------------------------------------------------------------------------------- /Chapter03/features/feature-engineering-simple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/features/feature-engineering-simple.py -------------------------------------------------------------------------------- /Chapter03/features/feature-engineering.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/features/feature-engineering.ipynb -------------------------------------------------------------------------------- /Chapter03/features/feature-engineering.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/features/feature-engineering.py -------------------------------------------------------------------------------- /Chapter03/hyperparameter-opt/hyperopt-example.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/hyperparameter-opt/hyperopt-example.ipynb -------------------------------------------------------------------------------- /Chapter03/hyperparameter-opt/hyperopt_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/hyperparameter-opt/hyperopt_example.py -------------------------------------------------------------------------------- /Chapter03/hyperparameter-opt/optuna-example.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/hyperparameter-opt/optuna-example.ipynb -------------------------------------------------------------------------------- /Chapter03/hyperparameter-opt/optuna_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/hyperparameter-opt/optuna_example.py -------------------------------------------------------------------------------- /Chapter03/hyperparameter-opt/skoptimize_example.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter03/mlflow-advanced/mlflow-feature-engineering.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/mlflow-advanced/mlflow-feature-engineering.py -------------------------------------------------------------------------------- /Chapter03/mlflow-advanced/model_registry_retrieve.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/mlflow-advanced/model_registry_retrieve.py -------------------------------------------------------------------------------- /Chapter03/mlflow-advanced/start-mlflow-server.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/mlflow-advanced/start-mlflow-server.sh -------------------------------------------------------------------------------- /Chapter03/pipelines/kubeflow_pipeline.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter03/pipelines/sklearn_pipeline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/pipelines/sklearn_pipeline.py -------------------------------------------------------------------------------- /Chapter03/pipelines/sparkmllib_pipeline.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/pipelines/sparkmllib_pipeline.ipynb -------------------------------------------------------------------------------- /Chapter03/pipelines/sparkmllib_pipeline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/pipelines/sparkmllib_pipeline.py -------------------------------------------------------------------------------- /Chapter03/pipelines/sparkmllib_pipeline_mlflow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter03/pipelines/sparkmllib_pipeline_mlflow.py -------------------------------------------------------------------------------- /Chapter04/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter04/logging_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/logging_example.py -------------------------------------------------------------------------------- /Chapter04/outlier_package/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/LICENSE -------------------------------------------------------------------------------- /Chapter04/outlier_package/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/Makefile -------------------------------------------------------------------------------- /Chapter04/outlier_package/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/README.md -------------------------------------------------------------------------------- /Chapter04/outlier_package/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter04/outlier_package/configure_project.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/configure_project.sh -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/outliers/__main__.py -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/configs/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/configs/model_config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/outliers/configs/model_config.json -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/definitions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/outliers/definitions.py -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/detectors/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/detectors/detection_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/outliers/detectors/detection_models.py -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/detectors/pipelines.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/outliers/detectors/pipelines.py -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/feature/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/feature/categorical/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/feature/categorical/analyze.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/feature/numerical/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/feature/numerical/analyze.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/tests/test_create_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/outliers/tests/test_create_data.py -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/tests/test_detectors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/outliers/tests/test_detectors.py -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter04/outlier_package/outliers/utils/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/outliers/utils/data.py -------------------------------------------------------------------------------- /Chapter04/outlier_package/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/requirements.txt -------------------------------------------------------------------------------- /Chapter04/outlier_package/setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/setup.cfg -------------------------------------------------------------------------------- /Chapter04/outlier_package/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/outlier_package/setup.py -------------------------------------------------------------------------------- /Chapter04/simple_examples/args_kwargs_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/simple_examples/args_kwargs_example.py -------------------------------------------------------------------------------- /Chapter04/simple_examples/class_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/simple_examples/class_example.py -------------------------------------------------------------------------------- /Chapter04/simple_examples/functional_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/simple_examples/functional_example.py -------------------------------------------------------------------------------- /Chapter04/simple_examples/generators_and_lists_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/simple_examples/generators_and_lists_example.py -------------------------------------------------------------------------------- /Chapter04/simple_examples/import_module_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/simple_examples/import_module_example.py -------------------------------------------------------------------------------- /Chapter04/simple_examples/lint_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/simple_examples/lint_example.py -------------------------------------------------------------------------------- /Chapter04/simple_examples/module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter04/simple_examples/module.py -------------------------------------------------------------------------------- /Chapter05/airflow/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/airflow/README.md -------------------------------------------------------------------------------- /Chapter05/airflow/airflow-env.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/airflow/airflow-env.yaml -------------------------------------------------------------------------------- /Chapter05/airflow/dags/classification_pipeline_dag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/airflow/dags/classification_pipeline_dag.py -------------------------------------------------------------------------------- /Chapter05/mleip-airflow/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/mleip-airflow/LICENSE -------------------------------------------------------------------------------- /Chapter05/mleip-airflow/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/mleip-airflow/README.md -------------------------------------------------------------------------------- /Chapter05/mleip-airflow/config/mwaa_public_network.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/mleip-airflow/config/mwaa_public_network.yaml -------------------------------------------------------------------------------- /Chapter05/mleip-airflow/config/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/mleip-airflow/config/requirements.txt -------------------------------------------------------------------------------- /Chapter05/mleip-airflow/dags/basic_dag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/mleip-airflow/dags/basic_dag.py -------------------------------------------------------------------------------- /Chapter05/mleip-airflow/dags/classification_pipeline_dag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/mleip-airflow/dags/classification_pipeline_dag.py -------------------------------------------------------------------------------- /Chapter05/mleip-airflow/dags/test_dag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/mleip-airflow/dags/test_dag.py -------------------------------------------------------------------------------- /Chapter05/mleip-web-service-main/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/mleip-web-service-main/.gitignore -------------------------------------------------------------------------------- /Chapter05/mleip-web-service-main/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/mleip-web-service-main/LICENSE -------------------------------------------------------------------------------- /Chapter05/mleip-web-service-main/README.md: -------------------------------------------------------------------------------- 1 | # mleip-web-service -------------------------------------------------------------------------------- /Chapter05/mleip-web-service-main/app/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/mleip-web-service-main/app/Dockerfile -------------------------------------------------------------------------------- /Chapter05/mleip-web-service-main/app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter05/mleip-web-service-main/app/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/mleip-web-service-main/app/app.py -------------------------------------------------------------------------------- /Chapter05/mleip-web-service-main/app/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/mleip-web-service-main/app/requirements.txt -------------------------------------------------------------------------------- /Chapter05/mleip-web-service-main/app/resources/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter05/mleip-web-service-main/app/resources/forecast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/mleip-web-service-main/app/resources/forecast.py -------------------------------------------------------------------------------- /Chapter05/mleip-web-service-main/build_and_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter05/mleip-web-service-main/build_and_test.sh -------------------------------------------------------------------------------- /Chapter06/emr/emr_sparkmllib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/emr/emr_sparkmllib.py -------------------------------------------------------------------------------- /Chapter06/lambda/ch6-fig15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/lambda/ch6-fig15.png -------------------------------------------------------------------------------- /Chapter06/lambda/mleip-lambda-example/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/lambda/mleip-lambda-example/.gitignore -------------------------------------------------------------------------------- /Chapter06/lambda/mleip-lambda-example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/lambda/mleip-lambda-example/README.md -------------------------------------------------------------------------------- /Chapter06/lambda/mleip-lambda-example/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter06/lambda/mleip-lambda-example/app/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/lambda/mleip-lambda-example/app/Dockerfile -------------------------------------------------------------------------------- /Chapter06/lambda/mleip-lambda-example/app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter06/lambda/mleip-lambda-example/app/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/lambda/mleip-lambda-example/app/app.py -------------------------------------------------------------------------------- /Chapter06/lambda/mleip-lambda-example/app/model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/lambda/mleip-lambda-example/app/model -------------------------------------------------------------------------------- /Chapter06/lambda/mleip-lambda-example/app/requirements.txt: -------------------------------------------------------------------------------- 1 | scikit-learn==0.23.2 2 | pillow==8.0.1 3 | -------------------------------------------------------------------------------- /Chapter06/lambda/mleip-lambda-example/events/event.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/lambda/mleip-lambda-example/events/event.json -------------------------------------------------------------------------------- /Chapter06/lambda/mleip-lambda-example/mleip-lambda-example-training.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/lambda/mleip-lambda-example/mleip-lambda-example-training.ipynb -------------------------------------------------------------------------------- /Chapter06/lambda/mleip-lambda-example/template.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/lambda/mleip-lambda-example/template.yml -------------------------------------------------------------------------------- /Chapter06/lambda/mleip-lambda-example/training.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/lambda/mleip-lambda-example/training.ipynb -------------------------------------------------------------------------------- /Chapter06/pandas_udf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/pandas_udf.py -------------------------------------------------------------------------------- /Chapter06/set_env_vars_for_session.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/set_env_vars_for_session.sh -------------------------------------------------------------------------------- /Chapter06/spark_example_mlflow_pandas_udfs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/spark_example_mlflow_pandas_udfs.py -------------------------------------------------------------------------------- /Chapter06/spark_example_udfs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter06/spark_example_udfs.py -------------------------------------------------------------------------------- /Chapter07/exploration/automated-model-retraining.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/exploration/automated-model-retraining.ipynb -------------------------------------------------------------------------------- /Chapter07/exploration/aws-forecast-training.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/exploration/aws-forecast-training.ipynb -------------------------------------------------------------------------------- /Chapter07/forecast-service/aws-forecast-training-utils.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/forecast-service/aws-forecast-training-utils.ipynb -------------------------------------------------------------------------------- /Chapter07/forecast-service/create-dataset-group.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/forecast-service/create-dataset-group.sh -------------------------------------------------------------------------------- /Chapter07/forecast-service/create-dataset-import-job.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/forecast-service/create-dataset-import-job.sh -------------------------------------------------------------------------------- /Chapter07/forecast-service/create-forecast-role.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/forecast-service/create-forecast-role.sh -------------------------------------------------------------------------------- /Chapter07/forecast-service/create-s3-iam-attach-forecast-role.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/forecast-service/create-s3-iam-attach-forecast-role.sh -------------------------------------------------------------------------------- /Chapter07/forecast-service/setup-forecast-service.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/forecast-service/setup-forecast-service.sh -------------------------------------------------------------------------------- /Chapter07/handler-service/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/handler-service/.gitignore -------------------------------------------------------------------------------- /Chapter07/handler-service/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/handler-service/LICENSE -------------------------------------------------------------------------------- /Chapter07/handler-service/README.md: -------------------------------------------------------------------------------- 1 | # Chapter 7 Microservice 2 | 3 | -------------------------------------------------------------------------------- /Chapter07/handler-service/app/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/handler-service/app/Dockerfile -------------------------------------------------------------------------------- /Chapter07/handler-service/app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter07/handler-service/app/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/handler-service/app/app.py -------------------------------------------------------------------------------- /Chapter07/handler-service/app/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/handler-service/app/requirements.txt -------------------------------------------------------------------------------- /Chapter07/handler-service/app/resources/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter07/handler-service/app/resources/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/handler-service/app/resources/config.py -------------------------------------------------------------------------------- /Chapter07/handler-service/app/resources/forecast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/handler-service/app/resources/forecast.py -------------------------------------------------------------------------------- /Chapter07/handler-service/app/resources/session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/handler-service/app/resources/session.py -------------------------------------------------------------------------------- /Chapter07/handler-service/app/resources/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/handler-service/app/resources/train.py -------------------------------------------------------------------------------- /Chapter07/handler-service/build_and_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/Chapter07/handler-service/build_and_test.sh -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/README.md -------------------------------------------------------------------------------- /README1.MD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/README1.MD -------------------------------------------------------------------------------- /README1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/README1.txt -------------------------------------------------------------------------------- /clean_notebooks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | nb-clean add-filter --remove-empty-cells 3 | 4 | -------------------------------------------------------------------------------- /environments/mleip-pd-udf-ch6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/environments/mleip-pd-udf-ch6 -------------------------------------------------------------------------------- /environments/mleip-pd-udf-ch6.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/environments/mleip-pd-udf-ch6.yml -------------------------------------------------------------------------------- /environments/mleip-pd-udf.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/environments/mleip-pd-udf.yml -------------------------------------------------------------------------------- /environments/mleng-environment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/environments/mleng-environment.yml -------------------------------------------------------------------------------- /environments/mleng-mac-environment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/environments/mleng-mac-environment.yml -------------------------------------------------------------------------------- /environments/mleng-spark3-ch6.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-Engineering-with-Python/HEAD/environments/mleng-spark3-ch6.yml --------------------------------------------------------------------------------