![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Scikit-Learn
Leonardo Liu
这个作者很懒,什么都没留下…
展开
-
机器学习算法程序库——Scikit-Learn简介:特征工程
本博客所有内容均整理自《Python数据科学手册》,欢迎讨论交流~对于机器学习实例,我们很多时候都是直接假设数据集已经是一个干净的 ,即数据集是一个[n_samples, n_features]的特征矩阵。但是在现实生活和工作中,数据几乎不可能如此干净,因此,我们需要在获取数据之后,对这些数据进行转换,尽力转换成特征矩阵的数值。这个过程一般被称为特征工程。接下来,我们就首先介绍一些特征...原创 2019-01-18 20:58:49 · 356 阅读 · 0 评论 -
Hands-On Machine Learning with Scikit-Learn & TensorFlow Exercise Q&A Chapter07
Q1. If you have trained five different models on the exact same training data, and they all achieve 95% precision, is there any chance that you can combine these models to get better results? If so, h...原创 2019-03-22 19:37:55 · 357 阅读 · 0 评论 -
Hands-On Machine Learning with Scikit-Learn & TensorFlow Exercise Q&A Chapter06
Q1. What is the approximate deph of a Decision Tree trained (without restrictions) on a training set with 1 million instances?A1: The depth of a well-balanced binary tree containing m leaves is equa...原创 2019-03-21 22:16:23 · 280 阅读 · 0 评论 -
Hands-On Machine Learning with Scikit-Learn & TensorFlow Exercise Q&A Chapter05
Q1. What is the fundamental idea behind Support Vector Machines?A1: The fundamental idea of SVM is to maximize the margin between the decision boundaries and separate the training instances into two...原创 2019-03-21 15:57:03 · 387 阅读 · 0 评论 -
Hands-On Machine Learning with Scikit-Learn & TensorFlow Exercise Q&A Chapter03
Q1. Try to build a classifier for the MNIST dataset that achieves over 97% accuracy on the test set. Hint: the KNeighborsClassifier works quite well for this task; you just need to find good hyperpara...原创 2019-03-19 22:02:57 · 954 阅读 · 0 评论 -
Hands-On Machine Learning with Scikit-Learn & TensorFlow Exercise Q&A Chapter04
Q1. What Linear Regression training algorithm can you use if you have a training set with millions of features?A1:Stochastic Gradient Descentor Mini-Batch Gradient Descent.Q2. Suppose the feat...原创 2019-03-20 22:35:53 · 469 阅读 · 0 评论 -
Hands-On Machine Learning with Scikit-Learn & TensorFlow Exercise Q&A Chapter02
For some unknown reason, my computer's Scikit-Learn package cannot deal with theColumnTransformer function, so I never succeed in getting the housing_prepared data, thus the following answer is offic...原创 2019-03-15 19:19:31 · 431 阅读 · 0 评论 -
机器学习算法程序库——Scikit-Learn简介:模型验证和模型选择
本博客所有内容均整理自《Python数据科学手册》,欢迎讨论交流~Scikit-Learn评估器API的基本步骤为如下五步:从Scikit-Learn中导入适当的评估器类,选择模型类 用合适的数值对模型类进行实例化,配置模型超参数 整理数据,获取特征矩阵和目标数组 调用模型实例的fit()方法对数据进行拟合 对新数据应用模型:在监督学习模型中,通常使用predict()方法预测新...原创 2019-01-16 16:25:14 · 720 阅读 · 0 评论 -
机器学习算法程序库——Scikit-Learn简介:数据表和评估器API
本博客所有内容均整理自《Python数据科学手册》,欢迎讨论交流~目前,Python有很多实现机器学习算法的程序库,其中,Scikit-Learn是最流行的之一,它为各种常用的机器学习算法提供了高效版本。Scikit-Learn的主要优点有干净、统一、管道命令式的API、在线文档实用且完整等。PS:本博客使用的编程语言均为Python,给出的图片均为在Jupyter Notebook上运行...原创 2019-01-15 20:49:15 · 385 阅读 · 0 评论 -
Hands-On Machine Learning with Scikit-Learn & TensorFlow Exercise Q&A Chapter08
Q1. What are the main motivations for reducing a dataset's dimensionality? What are the main drawbacks?A1: Motivations:To speed up a subsequent training algorithm. To visualize the data and ga...原创 2019-03-22 20:43:30 · 431 阅读 · 0 评论