Implementation of decision tree algorithm by Golang

1, Algorithm Introduction    Decision Tree is a decision analysis method to obtain the probability that the expected value of net present value is greater than or equal to zero, evaluate the project risk and judge its feasibility by forming a Decision Tree on the basis of knowing the occurrence probability of various situations. It i ...

Posted by anler on Mon, 31 Jan 2022 09:13:32 +0100

Notes on "Introduction to machine learning in Web security": Chapter 7 7.3 naive Bayesian detection WebShell

1. Source code modification (1) Error reporting UnicodeDecodeError: 'gbk' codec can't decode byte 0x9a in position 8: illegal multibyte sequence   Load ../data/PHP-WEBSHELL/xiaoma/1148d726e3bdec6db65db30c08a75f80.php Traceback (most recent call last): ...... t=load_file(file_path) for line in f: UnicodeDecodeError: 'gbk' codec can't deco ...

Posted by Fritz on Mon, 31 Jan 2022 08:39:01 +0100

Advanced tutorial of Pandas: rearrangement and rotation of Dataframe

brief introduction Using Pandas's pivot method, DF can be rotated and transformed. This paper will explain the secret of pivot in detail. Using Pivot pivot is used to reorganize the DF, and use the specified index, columns and values to reconstruct the existing DF. Take a Pivot example: Through pivot change, the new DF uses the value ...

Posted by Angry Coder on Mon, 31 Jan 2022 02:35:06 +0100

Deep learning 4 Differential and automatic derivation

Author: baiyucraft BLog: baiyucraft's Home Original text: Hands on learning and deep learning 1, Differential and derivative    I believe everyone knows the concept. Draw a picture according to the book: import numpy as np from matplotlib import pyplot as plt def set_figsize(figsize=(3.5, 2.5)): """set up matplotlib The ...

Posted by Leppy on Mon, 31 Jan 2022 00:38:44 +0100

ROS learning note file system

ROS learning notes (II) file system Opening: file system structure of ROS. To learn to build a ROS project, we must first understand a ROS project, understand their organizational structure, be fundamentally familiar with the organizational form of ROS project, and understand the functions and functions of various documents, so as to carry out ...

Posted by vandalite on Mon, 31 Jan 2022 00:12:17 +0100

Reproduction of graph regulated robust BLS (grbls)

The original paper is: "Pattern Classification with Corrupted Labeling via Robust Broad Learning System" The idea of GRBLS: The aforementioned BLS models are based on the mean square error (MSE) criterion to fit the approximation errors [23]. In fact, MSE aims to measure the sum of quadratic loss of data, and the approximation re ...

Posted by toysrfive on Sun, 30 Jan 2022 21:36:36 +0100

Algorithmic model mining tags for user portraits

RFM user value model 1 demand Assuming I am a marketer, I might think about the following questions before doing an activityWho are my more valuable customers?Who has the potential to become a valuable customer?Who's losing?Who can stay?Who cares about this event?In fact, all the above thoughts focus on one theme valueRFM is one of the most ...

Posted by 90Nz0 on Sun, 30 Jan 2022 20:19:59 +0100

knn(k-nearest neighbor algorithm) -- python

catalogue 1. Basic definitions 2. Algorithm principle 2.1 advantages and disadvantages of the algorithm 2.2 algorithm parameters 2.3 variants 3. Distance formula in the algorithm 4. Case realization 4.1 import related libraries 4.2 reading data 4.3 read variable name 4.4 define X,Y data 4.5 separate training set and test set 4.6 ca ...

Posted by marcusb on Sun, 30 Jan 2022 07:06:35 +0100

SVM support vector machine realizes a linear classification

When support vector machine makes decision, the selected decision boundary needs to meet a condition, that is, the distance from the nearest point in the two classifications is the longest. It can also be understood that when we use support vector machine for classification, what we need to do is to maximize the distance between the decision bo ...

Posted by cypher235 on Sun, 30 Jan 2022 04:45:24 +0100

How to eliminate Multicollinearity

introduce Machine learning is a method to solve problems that cannot be clearly coded, such as classification problems. The machine learning model will learn a pattern from the data, so we can use it to determine which class the data belongs to. But there's a problem. How does this model work? Some people cannot accept a model with good perfo ...

Posted by wolfan on Sun, 30 Jan 2022 00:45:57 +0100