课程: Machine Learning with Scikit-Learn
今天就学习课程吧!
今天就开通帐号,24,600 门业界名师课程任您挑!
How to format data for scikit-learn - scikit-learn教程
课程: Machine Learning with Scikit-Learn
How to format data for scikit-learn
- Scikit-learn is a great library for creating machine learning models from data. Before you fit a model using scikit-learn, your data has to be in a recognizable format. Scikit-learn works well with numeric data that's stored in numpy arrays. Additionally, you can convert your data from objects like pandas dataframes to numpy arrays. In this video, I'll show you how you can make your data a more acceptable input for scikit-learning. The first thing you have to understand is what scikit-learn expects for features matrices and target vectors. In scikit-learn, a features matrix is a two dimensional grid of data where rows represent samples and columns represent features. A target vector is usually one dimensional and in the case of supervised learning, what you want to predict from the data. Let's now see an example of this. The image is a pandas dataframe of the first five rows of the iris dataset. A single flower…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
What is supervised learning?54 秒
-
(已锁定)
How to format data for scikit-learn1 分钟 55 秒
-
(已锁定)
Linear regression using scikit-learn4 分钟 32 秒
-
(已锁定)
Train test split1 分钟 53 秒
-
(已锁定)
Logistic regression using scikit-learn3 分钟 55 秒
-
(已锁定)
Logistic regression for multiclass classification3 分钟 36 秒
-
Decision trees using scikit-learn3 分钟 9 秒
-
(已锁定)
How to visualize decision trees using Matplotlib2 分钟 5 秒
-
(已锁定)
Bagged trees using scikit-learn2 分钟
-
(已锁定)
Random forests using scikit-learn2 分钟 41 秒
-
(已锁定)
Which machine learning model should you use?1 分钟 23 秒
-
-
-