Advanced Regression
Advanced Regression
Compare to
A probabilistic interpretation of L1 regularization
● Assume our model parameters zero-mean Laplace-distributed with diversity b
● https://scikit-learn.org/stable/modules/linear_model.html#generalized-line
ar-regression
Real world examples
Insurance cost Number of calls arriving in a call
(Tweedie distribution) center per hour
(Poisson distribution)
Classification algorithms for regression
KNN regressor
How to calculate continuous variable for KNN?
KNN regressor
How to calculate continuous variable for KNN?
Pros:
● Simple, not many changes from
Classifier
Cons:
● All the cons of KNN
Decision tree regressor
How we can change decision tree to solve regression tasks?
Decision tree regressor
How we can change decision tree to solve regression tasks?
● Every leaf now contains the set of objects. Their average is the
prediction we are looking for.
● We have to use other, continuous
measures of information gain:
○ Variance (standard deviation)
Pros:
● Simplicity and interpretability
of DT
Cons:
● Limited set of predicted values
Random forest regressor
How we can change random forest to solve regression task?
Random forest regressor
How we can change random forest to solve regression task?
Minimize
Constraints
Gradient boosting
How do we use GB for regression tasks?
Gradient boosting
How do we use GB for regression tasks?
● Blind pick
● Grid Search
● Random Search
Advanced Hyperparameter Tuning
● HyperOpt http://hyperopt.github.io/hyperopt/. The idea
behind can be explained through bayesian optimization