Part1__ Practical learning notes of machine learning__ KNN algorithm
step by step1. Introduction to the principle of kNN2. Handwriting dataset test3. Summary of advantages and disadvantages of the algorithm1, Introduction to the principle of kNN1.1 algorithm overviewGiven a training dataset, for a new input instance, find the K instances closest to the instance in the training dataset (that is, the K neighbors m ...
Posted by Osorene on Thu, 13 Jan 2022 19:56:50 +0100
Tree -- python implementation
tree
Tree is a nonlinear data structure. In the tree, each node contains its own value and its connected child nodes. The line connecting the nodes is called edge. As shown in the following figure, a is the root node and the parent node of B and C, that is, both B and C are child nodes of A. Similarly, B is the parent node of D and E, a ...
Posted by sk8erh4x0r on Thu, 13 Jan 2022 18:42:55 +0100
The beauty of python code beating
1. First effect
python [basketball teaching] code is being imitated
2. Operating environment
Python version: Python 3.0 7 (there should be no problem with Python 3.5 +). It is recommended to run with jupyter
2.1. Dependency Library:
①opencv-python(4.5.1.48)②Pillow (7.0.0)③moviepy(1.0.3)
2.2 installation method
pip install -i h ...
Posted by virtualdevl on Thu, 13 Jan 2022 17:37:00 +0100
OpenCV48: OCR handwriting recognition using KNN
target
In this chapter, you will learn
Use kNN to build a basic OCR applicationUse the numeric and alphabetic data sets that come with OpenCV
OCR of handwritten digits
The goal is to build an application that can read handwritten digits. To do this, you need some trains_ Data and test_data . OpenCV git project has a picture digits Png (in ...
Posted by ianr on Thu, 13 Jan 2022 16:12:02 +0100
Intelligent optimization algorithm -- genetic algorithm [1]
catalogue
1 Introduction
2 Genetic Algorithm
2.1 basic concepts of genetic algorithm
2.2 characteristics of genetic algorithm
2.3 program block diagram
3 Python code implementation
3.1 source code implementation
3.2 genetic algorithm package sko GA
3.2.1 case 1
3.2.2 case 2
4 reference
1 Introduction
Genetic algorithm (GA ...
Posted by thebusinesslad on Thu, 13 Jan 2022 15:58:40 +0100
Introduction to python 04 -- object oriented, linked list, exception handling
object-oriented
The core of process oriented programming is the process (pipeline thinking). The advantage is to develop along the execution steps, and the disadvantage is to move the whole body
Object oriented OOP is a program idea, which takes the object as the basic unit of the program, and an object contains data and a method of o ...
Posted by velkymx on Thu, 13 Jan 2022 14:49:49 +0100
Python basics review
Article catalog
Article catalog Content introduction 1, What is the list? 2, List operation (1) Index of the list (2) Addition and deletion of list elements (3) Sort the list and find the length of the list summary
Content introduction
This section mainly talks about lists in Python basics, and explains the establishment of lis ...
Posted by meckr on Thu, 13 Jan 2022 14:39:15 +0100
Systematic learning of regular expressions
Systematic learning of regular expressions
Concept:
Regular expressions are used to find strings that conform to certain patterns, including what string it is, how many times it is repeated, where it is, and what additional constraints. Each sentence here corresponds to a syntax of the regular expression.
1. Seven Realms of regular expression ...
Posted by Goon on Thu, 13 Jan 2022 13:35:58 +0100
"Pilot group" face recognition aircraft war
Face recognition aircraft war
Do you have the following problems:
The college has a garden party. Do you want to find an interactive game to show the characteristics of information specialty?The oars set up the stage to recruit new people. They yelled hard and sent out a lot of leaflets. Can't the atmosphere be lively?After watching the liv ...
Posted by NewBob on Thu, 13 Jan 2022 13:08:14 +0100
Explain the use of Matplotlib Library in detail
Note: this blog is based on Python 3, matplotlib 3.5.1, numpy 1.22.0
preface
Visual operation is widely used in data analysis and machine learning. It can help people observe outliers or required data conversion effects more intuitively; As a desktop drawing package of python, matplotlib can generate publishing quality charts; The work ...
Posted by mrjam on Thu, 13 Jan 2022 13:08:45 +0100