statistical-learning | Lecture Slides and R Sessions | Machine Learning library
kandi X-RAY | statistical-learning Summary
kandi X-RAY | statistical-learning Summary
This is an introductory-level course in supervised learning, with a focus on regression and classification methods. The syllabus includes: linear and polynomial regression, logistic regression and linear discriminant analysis; cross-validation and the bootstrap, model selection and regularization methods (ridge and lasso); nonlinear models, splines and generalized additive models; tree-based methods, random forests and boosting; support-vector machines. Some unsupervised learning methods are discussed: principal components and clustering (k-means and hierarchical). This is not a math-heavy class, so we try and describe the methods without heavy reliance on formulas and complex mathematics. We focus on what we consider to be the important elements of modern data analysis. Computing is done in R. There are lectures devoted to R, giving tutorials from the ground up, and progressing with more detailed sessions that implement the techniques in each chapter. The lectures cover all the material in An Introduction to Statistical Learning, with Applications in R by James, Witten, Hastie and Tibshirani (Springer, 2013). The pdf for this book is available for free on the book website.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of statistical-learning
statistical-learning Key Features
statistical-learning Examples and Code Snippets
Community Discussions
Trending Discussions on statistical-learning
QUESTION
Suppose I have a scatterplot with some kind of line (least squares regression line, knn regression line, etc.) through it, like this. I want to shade the upper region of the plot reddish, and the lower region of the plot blueish, to give an indication of how my line is doing as a classifier for the points. Similar to my mimic example with this effect is this plot from Elements of Statistical Learning (Hastie et al), (Chapter 2, page 13).
How can I achieve this effect with Matplotlib?
I know how to set rectangular regions of a plot to be different colors with axhspan
and axvspan
(see this answer), but have been struggling to set different plot colors based on regions above and below a line.
ANSWER
Answered 2017-Aug-20 at 11:03First I would recommend sorting the x
values, such that the line looks smooth.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install statistical-learning
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page