├── .gitattributes ├── .gitignore ├── Chapter 02 ├── 1Discriminant Function Analysis script.r ├── 2Multinomial Logistic Regression.r ├── 3Tobit Regression.r ├── 4Poisson Regression.r └── Data │ ├── brine.txt │ ├── gala.txt │ ├── hsbdemo.csv │ └── tobit.csv ├── Chapter 03 ├── 1Hierarchical Clustering - World Bank.r ├── 2Hierarchical Clustering - NASA Under story.r ├── 3Hierarchical Clustering - Gene Clustering.r ├── 4Binary Clustering - Math test.r ├── 5K-means clustering - European Protein Consumption.r ├── 6K-means clustering - Foodstuff.r └── Data │ ├── Europenaprotein.csv │ ├── GSE4051_data.csv │ ├── GSE4051_design.csv │ ├── NASAUnderstory.csv │ ├── WBClust2013.csv │ ├── foodstuffs.txt │ └── math test.txt ├── Chapter 04 ├── 1Shrinkage Methods - Calories burnt per day.r ├── 2Dimension Reduction Methods - Delta's aircraft fleet.r ├── 3Principal Component Analysis - Understanding world cuisine.r └── Data │ ├── Calories_Burnt.csv │ ├── delta.csv │ └── epic_recipes.txt ├── Chapter 05 ├── 1Generalized additive model - Measuring household income of New Zealand.r ├── 2Smooth Splines.r └── 3Loess - United States Geological Survey.r ├── Chapter 06 ├── 1Decision tree learning - Advance Health Directive for Patients with Chest Pain.r ├── 2Decision tree learning - Income Based Distribution of Real Estate Value.r ├── 3Decision tree learning - Predicting the Direction of Stock Movement.r ├── 4Naive Bayes - Predicting the Direction of Stock Movement.r ├── 5Random Forest - Currency Trading Strategy.r ├── 6Support Vector Machine - Currency Trading Strategy.r ├── 7Stochastic Gradient Descent - Adult Income.r └── Data │ ├── Decision tree learning - Advance Health Directive for Patients with Chest Pain.csv │ ├── Decision tree learning - Income Based Distribution of Real Estate Value.txt │ ├── Randon Forest - PoundDollar.csv │ ├── Stochastic Gradient Descent - Adult Income.txt │ └── Support Vector Machine - PoundDollar.csv ├── Chapter 07 ├── 1Self Organizing Map - Visualisations of heatmaps.r ├── 2Vector Quantization - Image Clustering.r └── Data │ └── Image.jpg ├── Chapter 08 ├── 1Markov Chains - Stocks Regime Switching Model.r ├── 2Markov Chains - Multi-Channel Attribution Model.r ├── 3Markov Chains - Car Rental Agency Service.r ├── 4Continuous Time Markov Chains - Vehicle Service at Gas Station.r ├── 5Monte Carlo Simulations - Calibrated Hull and White short-rates.r └── Data │ └── StocksRegimeSwitching.csv ├── Chapter 09 ├── 1HMM - EUR & USD.r ├── 2Hidden Markov Models for Regime Detection.r └── Data │ └── EURUSD1d.csv ├── Chapter 10 ├── 1Modelling S&P 500.r ├── 2Measuring Unemployment Rate.r └── Data │ └── FRED-WIUR.csv ├── Chapter 11 └── 1Recurrent Neural Networks - Predicting periodic signal.r ├── Chapter 12 └── Case Study 1 - World Bank data Analysis.r ├── Chapter 13 ├── Case Study 2 - Pricing Reinsurance Contracts.r └── Data │ └── publicdatamay2007.xls ├── Chapter 14 ├── Case Study 3 - Forecast of Electricity Consumption.r └── Data │ └── DT_4_ind ├── LICENSE └── README.md /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/.gitignore -------------------------------------------------------------------------------- /Chapter 02/1Discriminant Function Analysis script.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 02/1Discriminant Function Analysis script.r -------------------------------------------------------------------------------- /Chapter 02/2Multinomial Logistic Regression.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 02/2Multinomial Logistic Regression.r -------------------------------------------------------------------------------- /Chapter 02/3Tobit Regression.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 02/3Tobit Regression.r -------------------------------------------------------------------------------- /Chapter 02/4Poisson Regression.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 02/4Poisson Regression.r -------------------------------------------------------------------------------- /Chapter 02/Data/brine.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 02/Data/brine.txt -------------------------------------------------------------------------------- /Chapter 02/Data/gala.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 02/Data/gala.txt -------------------------------------------------------------------------------- /Chapter 02/Data/hsbdemo.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 02/Data/hsbdemo.csv -------------------------------------------------------------------------------- /Chapter 02/Data/tobit.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 02/Data/tobit.csv -------------------------------------------------------------------------------- /Chapter 03/1Hierarchical Clustering - World Bank.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 03/1Hierarchical Clustering - World Bank.r -------------------------------------------------------------------------------- /Chapter 03/2Hierarchical Clustering - NASA Under story.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 03/2Hierarchical Clustering - NASA Under story.r -------------------------------------------------------------------------------- /Chapter 03/3Hierarchical Clustering - Gene Clustering.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 03/3Hierarchical Clustering - Gene Clustering.r -------------------------------------------------------------------------------- /Chapter 03/4Binary Clustering - Math test.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 03/4Binary Clustering - Math test.r -------------------------------------------------------------------------------- /Chapter 03/5K-means clustering - European Protein Consumption.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 03/5K-means clustering - European Protein Consumption.r -------------------------------------------------------------------------------- /Chapter 03/6K-means clustering - Foodstuff.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 03/6K-means clustering - Foodstuff.r -------------------------------------------------------------------------------- /Chapter 03/Data/Europenaprotein.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 03/Data/Europenaprotein.csv -------------------------------------------------------------------------------- /Chapter 03/Data/GSE4051_data.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 03/Data/GSE4051_data.csv -------------------------------------------------------------------------------- /Chapter 03/Data/GSE4051_design.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 03/Data/GSE4051_design.csv -------------------------------------------------------------------------------- /Chapter 03/Data/NASAUnderstory.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 03/Data/NASAUnderstory.csv -------------------------------------------------------------------------------- /Chapter 03/Data/WBClust2013.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 03/Data/WBClust2013.csv -------------------------------------------------------------------------------- /Chapter 03/Data/foodstuffs.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 03/Data/foodstuffs.txt -------------------------------------------------------------------------------- /Chapter 03/Data/math test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 03/Data/math test.txt -------------------------------------------------------------------------------- /Chapter 04/1Shrinkage Methods - Calories burnt per day.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 04/1Shrinkage Methods - Calories burnt per day.r -------------------------------------------------------------------------------- /Chapter 04/2Dimension Reduction Methods - Delta's aircraft fleet.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 04/2Dimension Reduction Methods - Delta's aircraft fleet.r -------------------------------------------------------------------------------- /Chapter 04/3Principal Component Analysis - Understanding world cuisine.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 04/3Principal Component Analysis - Understanding world cuisine.r -------------------------------------------------------------------------------- /Chapter 04/Data/Calories_Burnt.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 04/Data/Calories_Burnt.csv -------------------------------------------------------------------------------- /Chapter 04/Data/delta.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 04/Data/delta.csv -------------------------------------------------------------------------------- /Chapter 04/Data/epic_recipes.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 04/Data/epic_recipes.txt -------------------------------------------------------------------------------- /Chapter 05/1Generalized additive model - Measuring household income of New Zealand.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 05/1Generalized additive model - Measuring household income of New Zealand.r -------------------------------------------------------------------------------- /Chapter 05/2Smooth Splines.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 05/2Smooth Splines.r -------------------------------------------------------------------------------- /Chapter 05/3Loess - United States Geological Survey.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 05/3Loess - United States Geological Survey.r -------------------------------------------------------------------------------- /Chapter 06/1Decision tree learning - Advance Health Directive for Patients with Chest Pain.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 06/1Decision tree learning - Advance Health Directive for Patients with Chest Pain.r -------------------------------------------------------------------------------- /Chapter 06/2Decision tree learning - Income Based Distribution of Real Estate Value.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 06/2Decision tree learning - Income Based Distribution of Real Estate Value.r -------------------------------------------------------------------------------- /Chapter 06/3Decision tree learning - Predicting the Direction of Stock Movement.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 06/3Decision tree learning - Predicting the Direction of Stock Movement.r -------------------------------------------------------------------------------- /Chapter 06/4Naive Bayes - Predicting the Direction of Stock Movement.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 06/4Naive Bayes - Predicting the Direction of Stock Movement.r -------------------------------------------------------------------------------- /Chapter 06/5Random Forest - Currency Trading Strategy.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 06/5Random Forest - Currency Trading Strategy.r -------------------------------------------------------------------------------- /Chapter 06/6Support Vector Machine - Currency Trading Strategy.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 06/6Support Vector Machine - Currency Trading Strategy.r -------------------------------------------------------------------------------- /Chapter 06/7Stochastic Gradient Descent - Adult Income.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 06/7Stochastic Gradient Descent - Adult Income.r -------------------------------------------------------------------------------- /Chapter 06/Data/Decision tree learning - Advance Health Directive for Patients with Chest Pain.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 06/Data/Decision tree learning - Advance Health Directive for Patients with Chest Pain.csv -------------------------------------------------------------------------------- /Chapter 06/Data/Decision tree learning - Income Based Distribution of Real Estate Value.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 06/Data/Decision tree learning - Income Based Distribution of Real Estate Value.txt -------------------------------------------------------------------------------- /Chapter 06/Data/Randon Forest - PoundDollar.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 06/Data/Randon Forest - PoundDollar.csv -------------------------------------------------------------------------------- /Chapter 06/Data/Stochastic Gradient Descent - Adult Income.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 06/Data/Stochastic Gradient Descent - Adult Income.txt -------------------------------------------------------------------------------- /Chapter 06/Data/Support Vector Machine - PoundDollar.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 06/Data/Support Vector Machine - PoundDollar.csv -------------------------------------------------------------------------------- /Chapter 07/1Self Organizing Map - Visualisations of heatmaps.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 07/1Self Organizing Map - Visualisations of heatmaps.r -------------------------------------------------------------------------------- /Chapter 07/2Vector Quantization - Image Clustering.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 07/2Vector Quantization - Image Clustering.r -------------------------------------------------------------------------------- /Chapter 07/Data/Image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 07/Data/Image.jpg -------------------------------------------------------------------------------- /Chapter 08/1Markov Chains - Stocks Regime Switching Model.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 08/1Markov Chains - Stocks Regime Switching Model.r -------------------------------------------------------------------------------- /Chapter 08/2Markov Chains - Multi-Channel Attribution Model.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 08/2Markov Chains - Multi-Channel Attribution Model.r -------------------------------------------------------------------------------- /Chapter 08/3Markov Chains - Car Rental Agency Service.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 08/3Markov Chains - Car Rental Agency Service.r -------------------------------------------------------------------------------- /Chapter 08/4Continuous Time Markov Chains - Vehicle Service at Gas Station.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 08/4Continuous Time Markov Chains - Vehicle Service at Gas Station.r -------------------------------------------------------------------------------- /Chapter 08/5Monte Carlo Simulations - Calibrated Hull and White short-rates.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 08/5Monte Carlo Simulations - Calibrated Hull and White short-rates.r -------------------------------------------------------------------------------- /Chapter 08/Data/StocksRegimeSwitching.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 08/Data/StocksRegimeSwitching.csv -------------------------------------------------------------------------------- /Chapter 09/1HMM - EUR & USD.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 09/1HMM - EUR & USD.r -------------------------------------------------------------------------------- /Chapter 09/2Hidden Markov Models for Regime Detection.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 09/2Hidden Markov Models for Regime Detection.r -------------------------------------------------------------------------------- /Chapter 09/Data/EURUSD1d.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 09/Data/EURUSD1d.csv -------------------------------------------------------------------------------- /Chapter 10/1Modelling S&P 500.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 10/1Modelling S&P 500.r -------------------------------------------------------------------------------- /Chapter 10/2Measuring Unemployment Rate.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 10/2Measuring Unemployment Rate.r -------------------------------------------------------------------------------- /Chapter 10/Data/FRED-WIUR.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 10/Data/FRED-WIUR.csv -------------------------------------------------------------------------------- /Chapter 11/1Recurrent Neural Networks - Predicting periodic signal.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 11/1Recurrent Neural Networks - Predicting periodic signal.r -------------------------------------------------------------------------------- /Chapter 12/Case Study 1 - World Bank data Analysis.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 12/Case Study 1 - World Bank data Analysis.r -------------------------------------------------------------------------------- /Chapter 13/Case Study 2 - Pricing Reinsurance Contracts.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 13/Case Study 2 - Pricing Reinsurance Contracts.r -------------------------------------------------------------------------------- /Chapter 13/Data/publicdatamay2007.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 13/Data/publicdatamay2007.xls -------------------------------------------------------------------------------- /Chapter 14/Case Study 3 - Forecast of Electricity Consumption.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 14/Case Study 3 - Forecast of Electricity Consumption.r -------------------------------------------------------------------------------- /Chapter 14/Data/DT_4_ind: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/Chapter 14/Data/DT_4_ind -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Practical-Machine-Learning-Cookbook/HEAD/README.md --------------------------------------------------------------------------------