- Building Machine Learning Systems with Python
- Luis Pedro Coelho Willi Richert Matthieu Brucher
- 120字
- 2021-07-23 17:11:21
Classifying with scikit-learn
Python is an excellent language for machine learning because of its excellent libraries. In particular, scikit-learn has become the standard library for many machine learning tasks, including classification. We are going to use its implementation of decision trees in this section and in other classifiers. Fortunately, classifiers in scikit-learn follow the same API, thus making it easy to change from one to another. These objects have the following two essential methods:
- fit(features, labels): This is the learning step and fits the parameters of the model. It takes a list-like object with features and another with labels as arguments.
- predict(features): This method can only be called after fit and returns a prediction for one or more inputs.
推薦閱讀
- 龍芯應用開發標準教程
- 顯卡維修知識精解
- Creating Dynamic UI with Android Fragments
- 電腦常見故障現場處理
- 3ds Max Speed Modeling for 3D Artists
- Manage Partitions with GParted How-to
- Svelte 3 Up and Running
- Large Scale Machine Learning with Python
- 分布式微服務架構:原理與實戰
- 深入理解序列化與反序列化
- RISC-V處理器與片上系統設計:基于FPGA與云平臺的實驗教程
- Neural Network Programming with Java(Second Edition)
- 單片微機原理及應用
- FreeSWITCH Cookbook
- Spring Security 3.x Cookbook