- Learning Data Mining with Python
- Robert Layton
- 136字
- 2021-07-16 13:30:49
Summary
In this chapter, we used several of scikit-learn's
methods for building a standard workflow to run and evaluate data mining models. We introduced the Nearest Neighbors algorithm, which is already implemented in scikit-learn
as an estimator. Using this class is quite easy; first, we call the fit
function on our training data, and second, we use the predict
function to predict the class of testing samples.
We then looked at preprocessing by fixing poor feature scaling. This was done using a Transformer
object and the MinMaxScaler
class. These functions also have a fit
method and then a transform, which takes a dataset as an input and returns a transformed dataset as an output.
In the next chapter, we will use these concepts in a larger example, predicting the outcome of sports matches using real-world data.
- Getting Started with Gulp(Second Edition)
- Kali Linux Web Penetration Testing Cookbook
- 深入淺出WPF
- Oracle數據庫從入門到運維實戰
- PySide GUI Application Development(Second Edition)
- Asynchronous Android Programming(Second Edition)
- HTML5 APP開發從入門到精通(微課精編版)
- 大話Java:程序設計從入門到精通
- Illustrator CC平面設計實戰從入門到精通(視頻自學全彩版)
- C語言程序設計實訓教程與水平考試指導
- Everyday Data Structures
- 動手打造深度學習框架
- Java Web應用開發給力起飛
- Hack與HHVM權威指南
- Node.js 6.x Blueprints