Jason Brownlee. XGBoost With Python. 7 Day Mini-Course
|
|
|
- Laureen Gibbs
- 6 years ago
- Views:
Transcription
1
2 Jason Brownlee XGBoost With Python 7 Day Mini-Course
3 i XGBoost With Python Copyright 2017 Jason Brownlee. All Rights Reserved. Edition: v1.0 Find the latest version of this guide online at:
4 Contents Before We Get Started... 1 Lesson 01: Introduction to Gradient Boosting 4 Lesson 02: Introduction to XGBoost 5 Lesson 03: Develop Your First XGBoost Model 6 Lesson 04: Monitor Performance and Early Stopping 8 Lesson 05: Feature Importance with XGBoost 10 Lesson 06: How to Configure Gradient Boosting 11 Lesson 07: XGBoost Hyperparameter Tuning 12 Final Word Before You Go ii
5 Before We Get Started... XGBoost is an implementation of gradient boosting that is being used to win machine learning competitions. It is powerful but it can be hard to get started. In this guide you will discover a 7-part crash course on XGBoost with Python. This mini course is designed for Python machine learning practitioners that are already comfortable with scikit-learn and the SciPy ecosystem. Let s get started. Who Is This Mini-Course For? Before we get started, let s make sure you are in the right place. The list below provides some general guidelines as to who this course was designed for. Don t panic if you don t match these points exactly, you might just need to brush up in one area or another to keep up. ˆ Developers that know how to write a little code. This means that it is not a big deal for you to get things done with Python and know how to setup the SciPy ecosystem on your workstation (a prerequisite). It does not mean your a wizard coder, but it does mean you re not afraid to install packages and write scripts. ˆ Developers that know a little machine learning. This means you know about the basics of machine learning like cross-validation, some algorithms and the bias-variance trade-off. It does not mean that you are a machine learning PhD, just that you know the landmarks or know where to look them up. This mini-course is not a textbook on XGBoost. It will take you from a developer that knows a little machine learning in Python to a developer who can get results and bring the power of XGBoost to your own projects. Mini-Course Overview (what to expect) This mini-course is divided into 7 parts. Each lesson was designed to take the average developer about 30 minutes. You might finish some much sooner and others you may choose to go deeper and spend more time. You can complete each part as quickly or as slowly as you like. A comfortable schedule may be to complete one lesson per day over a one week period. Highly recommended. The topics you will cover over the next 7 lessons are as follows: ˆ Lesson 01: Introduction to Gradient Boosting. ˆ Lesson 02: Introduction to XGBoost. 1
6 2 ˆ Lesson 03: Develop Your First XGBoost Model. ˆ Lesson 04: Monitor Performance and Early Stopping. ˆ Lesson 05: Feature Importance with XGBoost. ˆ Lesson 06: How to Configure Gradient Boosting. ˆ Lesson 07: XGBoost Hyperparameter Tuning. This is going to be a lot of fun. You re going to have to do some work though, a little reading, a little research and a little programming. You want to learn XGBoost right? Here s a tip: All of the answers these lessons can be found on this blog Use the search feature. Hang in there, don t give up!
7 If you would like me to step you through each lesson in great detail (and much more), take a look at my book: XGBoost With Python: 3 Learn more here:
8 Lesson 01: Introduction to Gradient Boosting Gradient boosting is one of the most powerful techniques for building predictive models. The idea of boosting came out of the idea of whether a weak learner can be modified to become better. The first realization of boosting that saw great success in application was Adaptive Boosting or AdaBoost for short. The weak learners in AdaBoost are decision trees with a single split, called decision stumps for their shortness. AdaBoost and related algorithms were recast in a statistical framework and became known as Gradient Boosting Machines. The statistical framework cast boosting as a numerical optimization problem where the objective is to minimize the loss of the model by adding weak learners using a gradient descent like procedure, hence the name. The Gradient Boosting algorithm involves three elements: ˆ A loss function to be optimized, such as cross entropy for classification or mean squared error for regression problems. ˆ A weak learner to make predictions, such as a greedily constructed decision tree. ˆ An additive model, used to add weak learners to minimize the loss function. New weak learners are added to the model in an effort to correct the residual errors of all previous trees. The result is a powerful predictive modeling algorithm, perhaps more powerful than random forest. In the next lesson we will take a closer look at the XGBoost implementation of gradient boosting. 4
9 Lesson 02: Introduction to XGBoost XGBoost is an implementation of gradient boosted decision trees designed for speed and performance. XGBoost stands for extreme Gradient Boosting. It was developed by Tianqi Chen and is laser focused on computational speed and model performance, as such there are few frills. In addition to supporting all key variations of the technique, the real interest is the speed provided by the careful engineering of the implementation, including: ˆ Parallelization of tree construction using all of your CPU cores during training. ˆ Distributed Computing for training very large models using a cluster of machines. ˆ Out-of-Core Computing for very large datasets that don t fit into memory. ˆ Cache Optimization of data structures and algorithms to make best use of hardware. Traditionally, gradient boosting implementations are slow because of the sequential nature in which each tree must be constructed and added to the model. The on performance in the development of XGBoost has resulted in one of the best predictive modeling algorithms that can now harness the full capability of your hardware platform, or very large computers you might rent in the cloud. As such, XGBoost has been a cornerstone in competitive machine learning, being the technique used to win and recommended by winners. For example, here is what some recent Kaggle competition winners have said: As the winner of an increasing amount of Kaggle competitions, XGBoost showed us again to be a great all-round algorithm worth having in your toolbox. When in doubt, use xgboost. In the next lesson, we will develop our first XGBoost model in Python. Dato Winners Interview 1 Avito Winner s Interview
10 Lesson 03: Develop Your First XGBoost Model Assuming you have a working SciPy environment, XGBoost can be installed easily using pip. For example: 1 sudo pip install xgboost Listing 1: Install XGBoost using pip. You can learn more about installing and building XGBoost on your platform in the XGBoost Installation Instructions 3. XGBoost models can be used directly in the scikit-learn framework using the wrapper classes, XGBClassifier for classification and XGBRegressor for regression problems. This is the recommended way to use XGBoost in Python. Download the Pima Indians onset of diabetes dataset from the UCI Machine Learning repository 4. It is a good test dataset for binary classification as all input variables are numeric, meaning the problem can be modeled directly with no data preparation. We can train an XGBoost model for classification by constructing it and calling the model.fit() function: 1 model = XGBClassifier() 2 model.fit(x_train, y_train) Listing 2: Train an XGBoost Model. This model can then be used to make predictions by calling the model.predict() function on new data. 1 y_pred = model.predict(x_test) Listing 3: Make Predictions with an XGBoost Model. We can tie this all together as follows: 1 # First XGBoost model for Pima Indians dataset 2 from numpy import loadtxt 3 from xgboost import XGBClassifier 4 from sklearn.model_selection import train_test_split 5 from sklearn.metrics import accuracy_score 6 # load data 7 dataset = loadtxt('pima-indians-diabetes.csv', delimiter=",") 8 # split data into X and y 9 X = dataset[:,0:8] 10 Y = dataset[:,8] Download here: 6
11 7 11 # split data into train and test sets 12 seed = 7 13 test_size = X_train, X_test, y_train, y_test = train_test_split(x, Y, test_size=test_size, random_state=seed) 15 # fit model on training data 16 model = XGBClassifier() 17 model.fit(x_train, y_train) 18 # make predictions for test data 19 predictions = model.predict(x_test) 20 # evaluate predictions 21 accuracy = accuracy_score(y_test, predictions) 22 print("accuracy: %.2f%%" % (accuracy * 100.0)) Listing 4: First XGBoost Model. In the next lesson we will look at how we can use early stopping to limit overfitting.
12 Lesson 04: Monitor Performance and Early Stopping The XGBoost model can evaluate and report on the performance on a test set for the model during training. It supports this capability by specifying both a test dataset and an evaluation metric on the call to model.fit() when training the model and specifying verbose output (verbose=true). For example, we can report on the binary classification error rate (error) on a standalone test set (eval set) while training an XGBoost model as follows: 1 eval_set = [(X_test, y_test)] 2 model.fit(x_train, y_train, eval_metric="error", eval_set=eval_set, verbose=true) Listing 5: Monitor Performance During Training. We can use this evaluation to stop training once no further improvements have been made to the model. We can do this by setting the early stopping rounds parameter when calling model.fit() to the number of iterations that no improvement is seen on the validation dataset before training is stopped. The full example using the Pima Indians Onset of Diabetes dataset is provided below. 1 # exmaple of early stopping 2 from numpy import loadtxt 3 from xgboost import XGBClassifier 4 from sklearn.model_selection import train_test_split 5 from sklearn.metrics import accuracy_score 6 # load data 7 dataset = loadtxt('pima-indians-diabetes.csv', delimiter=",") 8 # split data into X and y 9 X = dataset[:,0:8] 10 Y = dataset[:,8] 11 # split data into train and test sets 12 seed = 7 13 test_size = X_train, X_test, y_train, y_test = train_test_split(x, Y, test_size=test_size, random_state=seed) 15 # fit model on training data 16 model = XGBClassifier() 17 eval_set = [(X_test, y_test)] 18 model.fit(x_train, y_train, early_stopping_rounds=10, eval_metric="logloss", eval_set=eval_set, verbose=true) 19 # make predictions for test data 20 y_predictions = model.predict(x_test) 21 # evaluate predictions 22 accuracy = accuracy_score(y_test, y_predictions) 23 print("accuracy: %.2f%%" % (accuracy * 100.0)) 8
13 9 Listing 6: Example of Early Stopping. In the next lesson we will look at how we calculate the importance of features using XGBoost.
14 Lesson 05: Feature Importance with XGBoost A benefit of using ensembles of decision tree methods like gradient boosting is that they can automatically provide estimates of feature importance from a trained predictive model. A trained XGBoost model automatically calculates feature importance on your predictive modeling problem. These importance scores are available in the feature importances member variable of the trained model. For example, they can be printed directly as follows: 1 print(model.feature_importances_) Listing 7: Print Feature Importance. The XGBoost library provides a built-in function to plot features ordered by their importance. The function is called plot importance() and can be used as follows: 1 plot_importance(model) 2 pyplot.show() Listing 8: Plot Feature Importance. These importance scores can help you decide what input variables to keep or discard. They can also be used as the basis for automatic feature selection techniques. The full example of plotting feature importance scores using the Pima Indians Onset of Diabetes dataset is provided below. 1 # plot feature importance using built-in function 2 from numpy import loadtxt 3 from xgboost import XGBClassifier 4 from xgboost import plot_importance 5 from matplotlib import pyplot 6 # load data 7 dataset = loadtxt('pima-indians-diabetes.csv', delimiter=",") 8 # split data into X and y 9 X = dataset[:,0:8] 10 y = dataset[:,8] 11 # fit model on training data 12 model = XGBClassifier() 13 model.fit(x, y) 14 # plot feature importance 15 plot_importance(model) 16 pyplot.show() Listing 9: Example of Plotting Feature Importance. In the next lesson we will look at heuristics for best configuring the gradient boosting algorithm. 10
15 Lesson 06: How to Configure Gradient Boosting Gradient boosting is one of the most powerful techniques for applied machine learning and as such is quickly becoming one of the most popular. But how do you configure gradient boosting on your problem? A number of configuration heuristics were published in the original gradient boosting papers. They can be summarized as: ˆ Learning rate or shrinkage (learning rate in XGBoost) should be set to 0.1 or lower, and smaller values will require the addition of more trees. ˆ The depth of trees (tree depth in XGBoost) should be configured in the range of 2-to-8, where not much benefit is seen with deeper trees. ˆ Row sampling (subsample in XGBoost) should be configured in the range of 30% to 80% of the training dataset, and compared to a value of 100% for no sampling. These are a good starting points when configuring your model. A good general configuration strategy is as follows: 1. Run the default configuration and review plots of the learning curves on the training and validation datasets. 2. If the system is overlearning, decrease the learning rate and/or increase the number of trees. 3. If the system is underlearning, speed the learning up to be more aggressive by increasing the learning rate and/or decreasing the number of trees. Owen Zhang, the former #1 ranked competitor on Kaggle and now CTO at Data Robot proposes an interesting strategy to configure XGBoost 5. He suggests to set the number of trees to a target value such as 100 or 1000, then tune the learning rate to find the best model. This is an efficient strategy for quickly finding a good model. In the next and final lesson, we will look at an example of tuning the XGBoost hyperparameters
16 Lesson 07: XGBoost Hyperparameter Tuning The scikit-learn framework provides the capability to search combinations of parameters. This capability is provided in the GridSearchCV class and can be used to discover the best way to configure the model for top performance on your problem. For example, we can define a grid of the number of trees (n estimators) and tree sizes (max depth) to evaluate by defining a grid as: 1 n_estimators = [50, 100, 150, 200] 2 max_depth = [2, 4, 6, 8] 3 param_grid = dict(max_depth=max_depth, n_estimators=n_estimators) Listing 10: Define a Grid Search. And then evaluate each combination of parameters using 10-fold cross-validation as: 1 kfold = StratifiedKFold(n_splits=10, shuffle=true, random_state=7) 2 grid_search = GridSearchCV(model, param_grid, scoring="neg_log_loss", n_jobs=-1, cv=kfold, verbose=1) 3 result = grid_search.fit(x, label_encoded_y) Listing 11: Perform a Grid Search. We can then review the results to determine the best combination and the general trends in varying the combinations of parameters. This is the best practice when applying XGBoost to your own problems. The parameters to consider tuning are: ˆ The number and size of trees (n estimators and max depth). ˆ The learning rate and number of trees (learning rate and n estimators). ˆ The row and column subsampling rates (subsample, colsample bytree and colsample bylevel). Below is a full example of tuning just the learning rate on the Pima Indians Onset of Diabetes dataset. 1 # Tune learning_rate 2 from numpy import loadtxt 3 from xgboost import XGBClassifier 4 from sklearn.model_selection import GridSearchCV 5 from sklearn.model_selection import StratifiedKFold 6 # load data 7 dataset = loadtxt('pima-indians-diabetes.csv', delimiter=",") 8 # split data into X and y 12
17 13 9 X = dataset[:,0:8] 10 Y = dataset[:,8] 11 # grid search 12 model = XGBClassifier() 13 learning_rate = [0.0001, 0.001, 0.01, 0.1, 0.2, 0.3] 14 param_grid = dict(learning_rate=learning_rate) 15 kfold = StratifiedKFold(n_splits=10, shuffle=true, random_state=7) 16 grid_search = GridSearchCV(model, param_grid, scoring="neg_log_loss", n_jobs=-1, cv=kfold) 17 grid_result = grid_search.fit(x, Y) 18 # summarize results 19 print("best: %f using %s" % (grid_result.best_score_, grid_result.best_params_)) 20 means = grid_result.cv_results_['mean_test_score'] 21 stds = grid_result.cv_results_['std_test_score'] 22 params = grid_result.cv_results_['params'] 23 for mean, stdev, param in zip(means, stds, params): 24 print("%f (%f) with: %r" % (mean, stdev, param)) Listing 12: Example of a Grid Search.
18 Final Word Before You Go... You made it. Well done! Take a moment and look back at how far you have come: ˆ You learned about the gradient boosting algorithm and the XGBoost library. ˆ You developed your first XGBoost model. ˆ You learned how to use advanced features like early stopping and feature importance. ˆ You learned how to configure gradient boosted models and how to design controlled experiments to tune XGBoost hyperparameters. Don t make light of this, you have come a long way in a short amount of time. This is just the beginning of your journey with XGBoost in Python. Keep practicing and developing your skills. How Did You Go With The Mini-Course? Did you enjoy this mini-course? Do you have any questions or sticking points? Let me know, send me an at: [email protected] 14
19 If you would like me to step you through each lesson in great detail (and much more), take a look at my book: XGBoost With Python: 15 Learn more here:
Predicting borrowers chance of defaulting on credit loans
Predicting borrowers chance of defaulting on credit loans Junjie Liang ([email protected]) Abstract Credit score prediction is of great interests to banks as the outcome of the prediction algorithm
Data Mining. Nonlinear Classification
Data Mining Unit # 6 Sajjad Haider Fall 2014 1 Nonlinear Classification Classes may not be separable by a linear boundary Suppose we randomly generate a data set as follows: X has range between 0 to 15
Knowledge Discovery and Data Mining
Knowledge Discovery and Data Mining Unit # 11 Sajjad Haider Fall 2013 1 Supervised Learning Process Data Collection/Preparation Data Cleaning Discretization Supervised/Unuspervised Identification of right
Machine Learning in Python with scikit-learn. O Reilly Webcast Aug. 2014
Machine Learning in Python with scikit-learn O Reilly Webcast Aug. 2014 Outline Machine Learning refresher scikit-learn How the project is structured Some improvements released in 0.15 Ongoing work for
CI6227: Data Mining. Lesson 11b: Ensemble Learning. Data Analytics Department, Institute for Infocomm Research, A*STAR, Singapore.
CI6227: Data Mining Lesson 11b: Ensemble Learning Sinno Jialin PAN Data Analytics Department, Institute for Infocomm Research, A*STAR, Singapore Acknowledgements: slides are adapted from the lecture notes
Car Insurance. Prvák, Tomi, Havri
Car Insurance Prvák, Tomi, Havri Sumo report - expectations Sumo report - reality Bc. Jan Tomášek Deeper look into data set Column approach Reminder What the hell is this competition about??? Attributes
Package trimtrees. February 20, 2015
Package trimtrees February 20, 2015 Type Package Title Trimmed opinion pools of trees in a random forest Version 1.2 Date 2014-08-1 Depends R (>= 2.5.0),stats,randomForest,mlbench Author Yael Grushka-Cockayne,
Benchmarking Open-Source Tree Learners in R/RWeka
Benchmarking Open-Source Tree Learners in R/RWeka Michael Schauerhuber 1, Achim Zeileis 1, David Meyer 2, Kurt Hornik 1 Department of Statistics and Mathematics 1 Institute for Management Information Systems
Ensemble Methods. Knowledge Discovery and Data Mining 2 (VU) (707.004) Roman Kern. KTI, TU Graz 2015-03-05
Ensemble Methods Knowledge Discovery and Data Mining 2 (VU) (707004) Roman Kern KTI, TU Graz 2015-03-05 Roman Kern (KTI, TU Graz) Ensemble Methods 2015-03-05 1 / 38 Outline 1 Introduction 2 Classification
Applied Data Mining Analysis: A Step-by-Step Introduction Using Real-World Data Sets
Applied Data Mining Analysis: A Step-by-Step Introduction Using Real-World Data Sets http://info.salford-systems.com/jsm-2015-ctw August 2015 Salford Systems Course Outline Demonstration of two classification
Using Ensemble of Decision Trees to Forecast Travel Time
Using Ensemble of Decision Trees to Forecast Travel Time José P. González-Brenes Guido Matías Cortés What to Model? Goal Predict travel time at time t on route s using a set of explanatory variables We
Data Mining Practical Machine Learning Tools and Techniques
Ensemble learning Data Mining Practical Machine Learning Tools and Techniques Slides for Chapter 8 of Data Mining by I. H. Witten, E. Frank and M. A. Hall Combining multiple models Bagging The basic idea
L25: Ensemble learning
L25: Ensemble learning Introduction Methods for constructing ensembles Combination strategies Stacked generalization Mixtures of experts Bagging Boosting CSCE 666 Pattern Analysis Ricardo Gutierrez-Osuna
Analysis Tools and Libraries for BigData
+ Analysis Tools and Libraries for BigData Lecture 02 Abhijit Bendale + Office Hours 2 n Terry Boult (Waiting to Confirm) n Abhijit Bendale (Tue 2:45 to 4:45 pm). Best if you email me in advance, but I
Beating the NCAA Football Point Spread
Beating the NCAA Football Point Spread Brian Liu Mathematical & Computational Sciences Stanford University Patrick Lai Computer Science Department Stanford University December 10, 2010 1 Introduction Over
Chapter 6. The stacking ensemble approach
82 This chapter proposes the stacking ensemble approach for combining different data mining classifiers to get better performance. Other combination techniques like voting, bagging etc are also described
Advanced analytics at your hands
2.3 Advanced analytics at your hands Neural Designer is the most powerful predictive analytics software. It uses innovative neural networks techniques to provide data scientists with results in a way previously
Making Sense of the Mayhem: Machine Learning and March Madness
Making Sense of the Mayhem: Machine Learning and March Madness Alex Tran and Adam Ginzberg Stanford University [email protected] [email protected] I. Introduction III. Model The goal of our research
Winning the Kaggle Algorithmic Trading Challenge with the Composition of Many Models and Feature Engineering
IEICE Transactions on Information and Systems, vol.e96-d, no.3, pp.742-745, 2013. 1 Winning the Kaggle Algorithmic Trading Challenge with the Composition of Many Models and Feature Engineering Ildefons
M1 in Economics and Economics and Statistics Applied multivariate Analysis - Big data analytics Worksheet 3 - Random Forest
Nathalie Villa-Vialaneix Année 2014/2015 M1 in Economics and Economics and Statistics Applied multivariate Analysis - Big data analytics Worksheet 3 - Random Forest This worksheet s aim is to learn how
Predicting daily incoming solar energy from weather data
Predicting daily incoming solar energy from weather data ROMAIN JUBAN, PATRICK QUACH Stanford University - CS229 Machine Learning December 12, 2013 Being able to accurately predict the solar power hitting
How To Understand How Weka Works
More Data Mining with Weka Class 1 Lesson 1 Introduction Ian H. Witten Department of Computer Science University of Waikato New Zealand weka.waikato.ac.nz More Data Mining with Weka a practical course
Knowledge Discovery and Data Mining
Knowledge Discovery and Data Mining Unit # 6 Sajjad Haider Fall 2014 1 Evaluating the Accuracy of a Classifier Holdout, random subsampling, crossvalidation, and the bootstrap are common techniques for
Cross Validation. Dr. Thomas Jensen Expedia.com
Cross Validation Dr. Thomas Jensen Expedia.com About Me PhD from ETH Used to be a statistician at Link, now Senior Business Analyst at Expedia Manage a database with 720,000 Hotels that are not on contract
Predicting Flight Delays
Predicting Flight Delays Dieterich Lawson [email protected] William Castillo [email protected] Introduction Every year approximately 20% of airline flights are delayed or cancelled, costing
Leveraging Ensemble Models in SAS Enterprise Miner
ABSTRACT Paper SAS133-2014 Leveraging Ensemble Models in SAS Enterprise Miner Miguel Maldonado, Jared Dean, Wendy Czika, and Susan Haller SAS Institute Inc. Ensemble models combine two or more models to
Using multiple models: Bagging, Boosting, Ensembles, Forests
Using multiple models: Bagging, Boosting, Ensembles, Forests Bagging Combining predictions from multiple models Different models obtained from bootstrap samples of training data Average predictions or
Chapter 11 Boosting. Xiaogang Su Department of Statistics University of Central Florida - 1 -
Chapter 11 Boosting Xiaogang Su Department of Statistics University of Central Florida - 1 - Perturb and Combine (P&C) Methods have been devised to take advantage of the instability of trees to create
The Operational Value of Social Media Information. Social Media and Customer Interaction
The Operational Value of Social Media Information Dennis J. Zhang (Kellogg School of Management) Ruomeng Cui (Kelley School of Business) Santiago Gallino (Tuck School of Business) Antonio Moreno-Garcia
THE RISE OF THE BIG DATA: WHY SHOULD STATISTICIANS EMBRACE COLLABORATIONS WITH COMPUTER SCIENTISTS XIAO CHENG. (Under the Direction of Jeongyoun Ahn)
THE RISE OF THE BIG DATA: WHY SHOULD STATISTICIANS EMBRACE COLLABORATIONS WITH COMPUTER SCIENTISTS by XIAO CHENG (Under the Direction of Jeongyoun Ahn) ABSTRACT Big Data has been the new trend in businesses.
A Study Of Bagging And Boosting Approaches To Develop Meta-Classifier
A Study Of Bagging And Boosting Approaches To Develop Meta-Classifier G.T. Prasanna Kumari Associate Professor, Dept of Computer Science and Engineering, Gokula Krishna College of Engg, Sullurpet-524121,
Location matters. 3 techniques to incorporate geo-spatial effects in one's predictive model
Location matters. 3 techniques to incorporate geo-spatial effects in one's predictive model Xavier Conort [email protected] Motivation Location matters! Observed value at one location is
CS570 Data Mining Classification: Ensemble Methods
CS570 Data Mining Classification: Ensemble Methods Cengiz Günay Dept. Math & CS, Emory University Fall 2013 Some slides courtesy of Han-Kamber-Pei, Tan et al., and Li Xiong Günay (Emory) Classification:
CAB TRAVEL TIME PREDICTI - BASED ON HISTORICAL TRIP OBSERVATION
CAB TRAVEL TIME PREDICTI - BASED ON HISTORICAL TRIP OBSERVATION N PROBLEM DEFINITION Opportunity New Booking - Time of Arrival Shortest Route (Distance/Time) Taxi-Passenger Demand Distribution Value Accurate
Getting Even More Out of Ensemble Selection
Getting Even More Out of Ensemble Selection Quan Sun Department of Computer Science The University of Waikato Hamilton, New Zealand [email protected] ABSTRACT Ensemble Selection uses forward stepwise
Model Combination. 24 Novembre 2009
Model Combination 24 Novembre 2009 Datamining 1 2009-2010 Plan 1 Principles of model combination 2 Resampling methods Bagging Random Forests Boosting 3 Hybrid methods Stacking Generic algorithm for mulistrategy
A Load Balancing Algorithm based on the Variation Trend of Entropy in Homogeneous Cluster
, pp.11-20 http://dx.doi.org/10.14257/ ijgdc.2014.7.2.02 A Load Balancing Algorithm based on the Variation Trend of Entropy in Homogeneous Cluster Kehe Wu 1, Long Chen 2, Shichao Ye 2 and Yi Li 2 1 Beijing
Fast Analytics on Big Data with H20
Fast Analytics on Big Data with H20 0xdata.com, h2o.ai Tomas Nykodym, Petr Maj Team About H2O and 0xdata H2O is a platform for distributed in memory predictive analytics and machine learning Pure Java,
How I won the Chess Ratings: Elo vs the rest of the world Competition
How I won the Chess Ratings: Elo vs the rest of the world Competition Yannis Sismanis November 2010 Abstract This article discusses in detail the rating system that won the kaggle competition Chess Ratings:
Distributed Tuning of Machine Learning Algorithms using MapReduce Clusters
Distributed Tuning of Machine Learning Algorithms using MapReduce Clusters Yasser Ganjisaffar University of California, Irvine Irvine, CA, USA [email protected] Rich Caruana Microsoft Research Redmond,
BOOSTED REGRESSION TREES: A MODERN WAY TO ENHANCE ACTUARIAL MODELLING
BOOSTED REGRESSION TREES: A MODERN WAY TO ENHANCE ACTUARIAL MODELLING Xavier Conort [email protected] Session Number: TBR14 Insurance has always been a data business The industry has successfully
DATA SCIENCE CURRICULUM WEEK 1 ONLINE PRE-WORK INSTALLING PACKAGES COMMAND LINE CODE EDITOR PYTHON STATISTICS PROJECT O5 PROJECT O3 PROJECT O2
DATA SCIENCE CURRICULUM Before class even begins, students start an at-home pre-work phase. When they convene in class, students spend the first eight weeks doing iterative, project-centered skill acquisition.
New Work Item for ISO 3534-5 Predictive Analytics (Initial Notes and Thoughts) Introduction
Introduction New Work Item for ISO 3534-5 Predictive Analytics (Initial Notes and Thoughts) Predictive analytics encompasses the body of statistical knowledge supporting the analysis of massive data sets.
Why Ensembles Win Data Mining Competitions
Why Ensembles Win Data Mining Competitions A Predictive Analytics Center of Excellence (PACE) Tech Talk November 14, 2012 Dean Abbott Abbott Analytics, Inc. Blog: http://abbottanalytics.blogspot.com URL:
Comparison of Data Mining Techniques used for Financial Data Analysis
Comparison of Data Mining Techniques used for Financial Data Analysis Abhijit A. Sawant 1, P. M. Chawan 2 1 Student, 2 Associate Professor, Department of Computer Technology, VJTI, Mumbai, INDIA Abstract
Knowledge Discovery and Data Mining
Knowledge Discovery and Data Mining Unit # 10 Sajjad Haider Fall 2012 1 Supervised Learning Process Data Collection/Preparation Data Cleaning Discretization Supervised/Unuspervised Identification of right
Supervised Learning (Big Data Analytics)
Supervised Learning (Big Data Analytics) Vibhav Gogate Department of Computer Science The University of Texas at Dallas Practical advice Goal of Big Data Analytics Uncover patterns in Data. Can be used
TOWARDS SIMPLE, EASY TO UNDERSTAND, AN INTERACTIVE DECISION TREE ALGORITHM
TOWARDS SIMPLE, EASY TO UNDERSTAND, AN INTERACTIVE DECISION TREE ALGORITHM Thanh-Nghi Do College of Information Technology, Cantho University 1 Ly Tu Trong Street, Ninh Kieu District Cantho City, Vietnam
The Artificial Prediction Market
The Artificial Prediction Market Adrian Barbu Department of Statistics Florida State University Joint work with Nathan Lay, Siemens Corporate Research 1 Overview Main Contributions A mathematical theory
W6.B.1. FAQs CS535 BIG DATA W6.B.3. 4. If the distance of the point is additionally less than the tight distance T 2, remove it from the original set
http://wwwcscolostateedu/~cs535 W6B W6B2 CS535 BIG DAA FAQs Please prepare for the last minute rush Store your output files safely Partial score will be given for the output from less than 50GB input Computer
Data Mining Methods: Applications for Institutional Research
Data Mining Methods: Applications for Institutional Research Nora Galambos, PhD Office of Institutional Research, Planning & Effectiveness Stony Brook University NEAIR Annual Conference Philadelphia 2014
Class #6: Non-linear classification. ML4Bio 2012 February 17 th, 2012 Quaid Morris
Class #6: Non-linear classification ML4Bio 2012 February 17 th, 2012 Quaid Morris 1 Module #: Title of Module 2 Review Overview Linear separability Non-linear classification Linear Support Vector Machines
Risk pricing for Australian Motor Insurance
Risk pricing for Australian Motor Insurance Dr Richard Brookes November 2012 Contents 1. Background Scope How many models? 2. Approach Data Variable filtering GLM Interactions Credibility overlay 3. Model
Applying Data Science to Sales Pipelines for Fun and Profit
Applying Data Science to Sales Pipelines for Fun and Profit Andy Twigg, CTO, C9 @lambdatwigg Abstract Machine learning is now routinely applied to many areas of industry. At C9, we apply machine learning
Maximizing Precision of Hit Predictions in Baseball
Maximizing Precision of Hit Predictions in Baseball Jason Clavelli [email protected] Joel Gottsegen [email protected] December 13, 2013 Introduction In recent years, there has been increasing interest
New Ensemble Combination Scheme
New Ensemble Combination Scheme Namhyoung Kim, Youngdoo Son, and Jaewook Lee, Member, IEEE Abstract Recently many statistical learning techniques are successfully developed and used in several areas However,
How To Make A Credit Risk Model For A Bank Account
TRANSACTIONAL DATA MINING AT LLOYDS BANKING GROUP Csaba Főző [email protected] 15 October 2015 CONTENTS Introduction 04 Random Forest Methodology 06 Transactional Data Mining Project 17 Conclusions
MACHINE LEARNING IN HIGH ENERGY PHYSICS
MACHINE LEARNING IN HIGH ENERGY PHYSICS LECTURE #1 Alex Rogozhnikov, 2015 INTRO NOTES 4 days two lectures, two practice seminars every day this is introductory track to machine learning kaggle competition!
Parallel and Large Scale Learning with scikit-learn
Parallel and Large Scale Learning with scikit-learn Data Science London Meetup - Mar. 2013 About me Regular contributor to scikit-learn Interested in NLP, Computer Vision, Predictive Modeling & ML in general
Microsoft Azure Machine learning Algorithms
Microsoft Azure Machine learning Algorithms Tomaž KAŠTRUN @tomaz_tsql [email protected] http://tomaztsql.wordpress.com Our Sponsors Speaker info https://tomaztsql.wordpress.com Agenda Focus on explanation
Data Mining - Evaluation of Classifiers
Data Mining - Evaluation of Classifiers Lecturer: JERZY STEFANOWSKI Institute of Computing Sciences Poznan University of Technology Poznan, Poland Lecture 4 SE Master Course 2008/2009 revised for 2010
A Logistic Regression Approach to Ad Click Prediction
A Logistic Regression Approach to Ad Click Prediction Gouthami Kondakindi [email protected] Satakshi Rana [email protected] Aswin Rajkumar [email protected] Sai Kaushik Ponnekanti [email protected] Vinit Parakh
Integrating NLTK with the Hadoop Map Reduce Framework 433-460 Human Language Technology Project
Integrating NLTK with the Hadoop Map Reduce Framework 433-460 Human Language Technology Project Paul Bone [email protected] June 2008 Contents 1 Introduction 1 2 Method 2 2.1 Hadoop and Python.........................
Big Data Paradigms in Python
Big Data Paradigms in Python San Diego Data Science and R Users Group January 2014 Kevin Davenport! http://kldavenport.com [email protected] @KevinLDavenport Thank you to our sponsors: Setting up
Applied Multivariate Analysis - Big data analytics
Applied Multivariate Analysis - Big data analytics Nathalie Villa-Vialaneix [email protected] http://www.nathalievilla.org M1 in Economics and Economics and Statistics Toulouse School of
How To Rank With Ancient.Org And A Random Forest
JMLR: Workshop and Conference Proceedings 14 (2011) 77 89 Yahoo! Learning to Rank Challenge Web-Search Ranking with Initialized Gradient Boosted Regression Trees Ananth Mohan Zheng Chen Kilian Weinberger
D-optimal plans in observational studies
D-optimal plans in observational studies Constanze Pumplün Stefan Rüping Katharina Morik Claus Weihs October 11, 2005 Abstract This paper investigates the use of Design of Experiments in observational
Boosting. [email protected]
. Machine Learning Boosting Prof. Dr. Martin Riedmiller AG Maschinelles Lernen und Natürlichsprachliche Systeme Institut für Informatik Technische Fakultät Albert-Ludwigs-Universität Freiburg [email protected]
Classification of Bad Accounts in Credit Card Industry
Classification of Bad Accounts in Credit Card Industry Chengwei Yuan December 12, 2014 Introduction Risk management is critical for a credit card company to survive in such competing industry. In addition
IBM SPSS Direct Marketing
IBM Software IBM SPSS Statistics 19 IBM SPSS Direct Marketing Understand your customers and improve marketing campaigns Highlights With IBM SPSS Direct Marketing, you can: Understand your customers in
An Overview of Predictive Analytics for Practitioners. Dean Abbott, Abbott Analytics
An Overview of Predictive Analytics for Practitioners Dean Abbott, Abbott Analytics Thank You Sponsors Empower users with new insights through familiar tools while balancing the need for IT to monitor
Knowledge Discovery and Data Mining. Bootstrap review. Bagging Important Concepts. Notes. Lecture 19 - Bagging. Tom Kelsey. Notes
Knowledge Discovery and Data Mining Lecture 19 - Bagging Tom Kelsey School of Computer Science University of St Andrews http://tom.host.cs.st-andrews.ac.uk [email protected] Tom Kelsey ID5059-19-B &
Predicting outcome of soccer matches using machine learning
Saint-Petersburg State University Mathematics and Mechanics Faculty Albina Yezus Predicting outcome of soccer matches using machine learning Term paper Scientific adviser: Alexander Igoshkin, Yandex Mobile
APPLICATION PROGRAMMING: DATA MINING AND DATA WAREHOUSING
Wrocław University of Technology Internet Engineering Henryk Maciejewski APPLICATION PROGRAMMING: DATA MINING AND DATA WAREHOUSING PRACTICAL GUIDE Wrocław (2011) 1 Copyright by Wrocław University of Technology
Exercise 0. Although Python(x,y) comes already with a great variety of scientic Python packages, we might have to install additional dependencies:
Exercise 0 Deadline: None Computer Setup Windows Download Python(x,y) via http://code.google.com/p/pythonxy/wiki/downloads and install it. Make sure that before installation the installer does not complain
Predict the Popularity of YouTube Videos Using Early View Data
000 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 038 039 040 041 042 043 044 045 046 047 048 049 050
Bike sharing model reuse framework for tree-based ensembles
Bike sharing model reuse framework for tree-based ensembles Gergo Barta 1 Department of Telecommunications and Media Informatics, Budapest University of Technology and Economics, Magyar tudosok krt. 2.
Advanced Ensemble Strategies for Polynomial Models
Advanced Ensemble Strategies for Polynomial Models Pavel Kordík 1, Jan Černý 2 1 Dept. of Computer Science, Faculty of Information Technology, Czech Technical University in Prague, 2 Dept. of Computer
II. RELATED WORK. Sentiment Mining
Sentiment Mining Using Ensemble Classification Models Matthew Whitehead and Larry Yaeger Indiana University School of Informatics 901 E. 10th St. Bloomington, IN 47408 {mewhiteh, larryy}@indiana.edu Abstract
An Introduction to Data Mining. Big Data World. Related Fields and Disciplines. What is Data Mining? 2/12/2015
An Introduction to Data Mining for Wind Power Management Spring 2015 Big Data World Every minute: Google receives over 4 million search queries Facebook users share almost 2.5 million pieces of content
Johari Window. Lesson Plan
xxx Lesson 12 Johari Window Overview: This optional lesson provides a look into how we view ourselves and how others view us. It is also a model for opening up the lines of communication with others. It
Get an Easy Performance Boost Even with Unthreaded Apps. with Intel Parallel Studio XE for Windows*
Get an Easy Performance Boost Even with Unthreaded Apps for Windows* Can recompiling just one file make a difference? Yes, in many cases it can! Often, you can achieve a major performance boost by recompiling
Predicting Movie Revenue from IMDb Data
Predicting Movie Revenue from IMDb Data Steven Yoo, Robert Kanter, David Cummings TA: Andrew Maas 1. Introduction Given the information known about a movie in the week of its release, can we predict the
Machine Learning. CUNY Graduate Center, Spring 2013. Professor Liang Huang. [email protected]
Machine Learning CUNY Graduate Center, Spring 2013 Professor Liang Huang [email protected] http://acl.cs.qc.edu/~lhuang/teaching/machine-learning Logistics Lectures M 9:30-11:30 am Room 4419 Personnel
The Impact of Big Data on Classic Machine Learning Algorithms. Thomas Jensen, Senior Business Analyst @ Expedia
The Impact of Big Data on Classic Machine Learning Algorithms Thomas Jensen, Senior Business Analyst @ Expedia Who am I? Senior Business Analyst @ Expedia Working within the competitive intelligence unit
MSCA 31000 Introduction to Statistical Concepts
MSCA 31000 Introduction to Statistical Concepts This course provides general exposure to basic statistical concepts that are necessary for students to understand the content presented in more advanced
CS 6220: Data Mining Techniques Course Project Description
CS 6220: Data Mining Techniques Course Project Description College of Computer and Information Science Northeastern University Spring 2013 General Goal In this project, you will have an opportunity to
Better credit models benefit us all
Better credit models benefit us all Agenda Credit Scoring - Overview Random Forest - Overview Random Forest outperform logistic regression for credit scoring out of the box Interaction term hypothesis
Back Propagation Neural Networks User Manual
Back Propagation Neural Networks User Manual Author: Lukáš Civín Library: BP_network.dll Runnable class: NeuralNetStart Document: Back Propagation Neural Networks Page 1/28 Content: 1 INTRODUCTION TO BACK-PROPAGATION
Interactive Data Mining and Visualization
Interactive Data Mining and Visualization Zhitao Qiu Abstract: Interactive analysis introduces dynamic changes in Visualization. On another hand, advanced visualization can provide different perspectives
REVIEW OF ENSEMBLE CLASSIFICATION
Available Online at www.ijcsmc.com International Journal of Computer Science and Mobile Computing A Monthly Journal of Computer Science and Information Technology ISSN 2320 088X IJCSMC, Vol. 2, Issue.
Azure Machine Learning, SQL Data Mining and R
Azure Machine Learning, SQL Data Mining and R Day-by-day Agenda Prerequisites No formal prerequisites. Basic knowledge of SQL Server Data Tools, Excel and any analytical experience helps. Best of all:
Performance Optimization Guide
Performance Optimization Guide Publication Date: July 06, 2016 Copyright Metalogix International GmbH, 2001-2016. All Rights Reserved. This software is protected by copyright law and international treaties.
Tree Ensembles: The Power of Post- Processing. December 2012 Dan Steinberg Mikhail Golovnya Salford Systems
Tree Ensembles: The Power of Post- Processing December 2012 Dan Steinberg Mikhail Golovnya Salford Systems Course Outline Salford Systems quick overview Treenet an ensemble of boosted trees GPS modern
Performance rule violations usually result in increased CPU or I/O, time to fix the mistake, and ultimately, a cost to the business unit.
Is your database application experiencing poor response time, scalability problems, and too many deadlocks or poor application performance? One or a combination of zparms, database design and application
