Machine learning -- deep analysis of knn algorithm

1: Introduction         In the last article, we have a relative understanding of knn algorithm, and roughly understand the working principle and workflow of knn algorithm through a very simple example. This article will continue to analyze the knn Algorithm in depth to help understand the knn algorithm 2: Algorithm anal ...

Posted by dual_alliance on Sun, 10 Oct 2021 09:41:45 +0200

Used car transaction price_ Task01&02

Recently, I participated in the learning activity of 'Coggle data science 30 Days of ML', and recorded my notes here. The activity is completely free and feels like a good opportunity for promotion. The publicity pictures of the event are as follows: All right, let's get to the point Import package import pandas as pd import numpy as np imp ...

Posted by jola on Thu, 07 Oct 2021 06:38:49 +0200

TensorFlow deep learning: 4.2. Mathematical operation of tensor

Tensor mathematical operations mainly include scalar operations, vector operations and matrix operations. In addition, we will introduce the broadcast mechanism of tensor operation. 1. Scalar operation The mathematical operators of tensors can be divided into scalar operators, vector operators and matrix operators. Addition, subtraction, ...

Posted by asaschool on Mon, 04 Oct 2021 05:04:55 +0200

Using Hidden Markov Model to Predict Stock Price Trend

I. First Identity HMM Hidden Markov Model (HMM) is a statistical model used to describe the hidden unknown parameters. HMM has been successfully used in speech recognition, text classification, bioinformatics, fault diagnosis and life prediction. HMM can be composed of three elements:= (A,B,II), where A is the state transition probability mat ...

Posted by skulk on Thu, 30 Sep 2021 19:43:30 +0200

Causal inference from open source projects -- causalnex

1 Introduction to causalnex 1.1 installation pip install causalnex github:https://github.com/quantumblacklabs/causalnex Document link: https://causalnex.readthedocs.io/en/latest/02_getting_started/02_install.html CausalNex is a Python library that uses Bayesian networks to combine machine learning and domain expertise for causal re ...

Posted by argan328 on Thu, 30 Sep 2021 02:15:08 +0200

Machine learning process record

Machine learning process record 1 # np.meshgrid generates grid point coordinate matrix. Turn the plan into a 'net map' to facilitate the overall coloring in the back # The NP. Range() function returns a fixed step arrangement with an end point and a start point xx, yy = np.meshgrid(np.arange(x_min, x_max, .02), np.arange( ...

Posted by visionmaster on Tue, 28 Sep 2021 06:22:46 +0200

[Data Analyst - data analysis project case I] case analysis of 600w + short-term rental data

1 Preface 1.1 data set source The data in this case comes from the real data of Toronto in 2018-2019 on Airbnb website.The data set contains the listing data set, with about 20000 pieces of data, recording all the house information, including dozens of information fields including price.Another data set in the data set is calendar, which ...

Posted by direction on Sat, 25 Sep 2021 12:33:12 +0200

A * introduction to algorithm -- eight digital

A * preliminary detailed explanation of algorithm Please see Baidu Encyclopedia for details The core valuation function: f(x) = g(x) + h(x) g(x) is the distance function from the starting point, such as how many steps have been taken from the starting point.h(x) is the heuristic search function for the current position to reach the end ...

Posted by phrygius on Wed, 22 Sep 2021 17:39:01 +0200

Machine learning practice - kNN

data Jack cherish notes Machine learning practice kNN step 1 calculate the distance between the unknown point and the sample 2 distance increasing sort 3 select the first K samples according to the sorting results 4 determine the occurrence frequency of the first k samples 5 the category of the point with the highest frequency is the re ...

Posted by Channel5 on Wed, 22 Sep 2021 08:14:45 +0200

Ridge regression model | machine learning

1. Ridge regression model 1.1 background For regression problems, their basic contents are basically the same, so ridge regression model and linear regression model similar: y = θ 0 ...

Posted by baranwalpk on Mon, 20 Sep 2021 23:56:17 +0200