- 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.
- GitLab Cookbook
- SQL Server 2012數(shù)據(jù)庫技術及應用(微課版·第5版)
- Oracle 12c中文版數(shù)據(jù)庫管理、應用與開發(fā)實踐教程 (清華電腦學堂)
- RTC程序設計:實時音視頻權威指南
- Git高手之路
- RabbitMQ Cookbook
- jQuery Mobile移動應用開發(fā)實戰(zhàn)(第3版)
- 好好學Java:從零基礎到項目實戰(zhàn)
- Java圖像處理:基于OpenCV與JVM
- Photoshop智能手機APP界面設計
- Python第三方庫開發(fā)應用實戰(zhàn)
- Learning Cocos2d-JS Game Development
- C# 7.0本質論
- Python數(shù)據(jù)科學實踐指南
- Python數(shù)據(jù)可視化之matplotlib實踐