sklearn machine learning regression process based on python language
Using the sklearn package of python language to realize the basic machine learning operation is very simple. After all, we only need to call part of the source code.
Basic machine learning operations are nothing more than four parts:
Import corresponding packages and dataData preprocessing;Model establishment and fittingModel evaluation and p ...
Posted by pristanski on Wed, 09 Mar 2022 08:29:32 +0100
Machine learning Sklearn summary 2 - Classification Algorithm
catalogue
1, Converter and estimator
2, Classification algorithm
K-nearest neighbor algorithm
Case code:
Model selection and tuning
Case code:
Naive Bayesian algorithm:
Summary of naive Bayesian algorithm
Case code:
Decision tree summary:
Case code:
Use random forest to achieve:
Random forest summary
summary
Code set of this ca ...
Posted by irkevin on Mon, 21 Feb 2022 09:38:40 +0100
Data preprocessing and data feature selection
1 data preprocessing
Data preprocessing is roughly divided into three steps: data preparation, data conversion and data output.
1.1 formatted data
Scikit learn provides two standard data formatting methods, Fit and Multiple Transform and combined fit and transform. It is recommended to give priority to Fit and Multiple Transform methods.
1. ...
Posted by reaper7861 on Sun, 13 Feb 2022 03:45:48 +0100
Detailed explanation of the events of the Kaggle Titanic
Data link:
https://pan.baidu.com/s/1gE4JvsgK5XV-G9dGpylcew
Extraction code: y409
Project background
1. Titanic: an Olympic class cruise ship under the jurisdiction of British white star shipping company. It was built at Harland and Wolff shipyard in Belfast port, Ireland on March 31, 1909. It was launched on May 31, 1911 and complete ...
Posted by dgwade on Sat, 22 Jan 2022 21:01:07 +0100
k-nearest neighbor algorithm (facebook predicts occupancy location)
1. For example:
(1) I want to locate myself. I can ask five people where to judge the distance between us
Judge your distance by your neighbors
(2) Seven films are given to judge whether they are love films or action films, the distance between one film and other films, and which type they belong to.
Through the distance from the unknown fi ...
Posted by drucifer on Mon, 10 Jan 2022 16:50:02 +0100
sklearn Machine Learning
Task07 This study refers to the Datawhale open source learning: https://github.com/datawhalechina/machine-learning-toy-code/tree/main/ml-with-sklearn The content is arranged as follows, mainly some code implementation and some principles.
7. Integrated Learning
In the previous chapter, we talked about the decline in the effect of the dimensi ...
Posted by spiceydog on Mon, 03 Jan 2022 18:05:19 +0100
Wu Enda deeplearning Ai - neural networks and deep learning - week 3 code
Reference link: https://blog.csdn.net/u013733326/article/details/79702148
Prepare package
We need to prepare some software packages:
numpy: it is a basic software package for scientific computing in Python.sklearn: a simple and efficient tool for data mining and data analysis.matplotlib: is a library for drawing charts in Python.testCases: s ...
Posted by Terminator on Wed, 22 Dec 2021 20:36:28 +0100
Feature engineering learning notes
0 declaration
The main content of this article comes from video ' [2020 complete set of machine learning] the complete version of sklearn of vegetables, the most complete complete complete set of machine learning sklearn worth 4999 yuan, quickly collect bilibili bili 'courseware from“ https://pan.baidu.com/s/1Xl4o0PMA5ysUILeCKvm_2w , ext ...
Posted by roba59 on Tue, 21 Dec 2021 07:52:25 +0100
Statistical learning: model evaluation and validation -- K-fold cross validation and self-help method
1, K-fold cross validation If the given sample data is sufficient, a simple method for model selection is to randomly cut the data set into three parts, including training set, verification set and test set. The training set is used to train the model. Generally speaking, the amount of data is larger. The verification set is used to select the ...
Posted by phpnewbie112 on Sat, 18 Dec 2021 22:37:18 +0100
Decision tree based on machine learning
Decision tree is a basic classification and regression method
1, Basic concepts of decision tree
The nodes and directed edges of the decision tree are represented respectively:
An internal node represents a feature or attributeLeaf nodes represent a classification.A directed edge represents a partition rule
The directed edge of the decisio ...
Posted by boombanguk on Sat, 18 Dec 2021 18:10:27 +0100