dtreeviz: a great decision tree visualization and model interpretability tool

Decision tree is the basic building block of gradient elevator and random forest. Visual decision tree is very helpful in learning the working principle and interpretability of these models. However, the current visualization package is still very rudimentary and does not help novices much. When I visited Github recently, I found a great dtree ...

Posted by stallingjohn on Mon, 06 Dec 2021 11:47:30 -0800

KNN for machine learning

KNN, namely k-nearest neighbor method, is a basic classification and regression method proposed by Cover T and Hart P in 1967. It is also one of the basic algorithms of machine learning. This article's reference tutorial: Machine learning practice Principle of KNN algorithm In a sample data set, also known as the training sample set, and eac ...

Posted by compbry15 on Sun, 05 Dec 2021 20:11:28 -0800

Classification task neutral energy measurement and code

sample Positive samples: samples belonging to a certain class (generally the desired class). In this case is a passing student.Negative samples: samples that do not belong to this category. In this case, it is a failed student.   y_pred = [0, 0, 0, 0, 0, 0, 1, 1, 1, 1]  y_true = [0, 0, 0, 0, 1, 1, 1, 1, 0, 0] The above 0 represents failure ...

Posted by DaRkZeAlOt on Sun, 05 Dec 2021 18:01:20 -0800

pytorch Basics

1.Autograd (automatic gradient algorithm) autograd is the core package of PyTorch to implement the automatic gradient algorithm mentioned earlier. Let's start by introducing the variables. 2.Variable autograd.Variable is the encapsulation of Tensor. Once we have defined the final variable (i.e., calculated loss, etc.), we can call its backwa ...

Posted by csxpcm on Sun, 05 Dec 2021 15:57:54 -0800

Pyspark machine learning library ml learning notes: Breast Cancer Wisconsin (Diagnostic) Data Set

Data Attribute information: 1) ID number 2) Diagnosis (M = malignant, B = benign) Calculate 10 real value characteristics of each nucleus: a) Radius (average distance from center to perimeter) b) Texture (standard deviation of gray value) c) Perimeter d) Area e) Smoothness (local variation of radius length) f) Compactness (perimeter ^ ...

Posted by ajlisowski on Sun, 05 Dec 2021 02:35:38 -0800

[deep learning] forward propagation with complete python code

Hello, everyone. Today, I'd like to share with you the derivation process of forward propagation in tensorflow 2.0 deep learning, using the mnist data set provided by the system. 1. Data acquisition First, we import the required library files and datasets. The imported x and y data are array types and need to be converted to tensor type tf.co ...

Posted by djw821 on Sun, 05 Dec 2021 01:44:16 -0800

[practice of association rules in data mining] Intelligent Recommendation Algorithm of association rules

Data description Data parameters OrderNumber: customer nickname LineNumber: purchase order. For example, the first three lines respectively represent three goods purchased by the same customer Model: trade name Problem description Application of intelligent algorithm recommendation of association rules based on shopping basket. Three basic ...

Posted by Skara on Sat, 04 Dec 2021 22:41:39 -0800

Python based example of Monte Carlo simulation

Original author: brain in new VATArticle link: https://www.toutiao.com/i7028498316396839432/?tt_ from=weixin&utm_ campaign=client_ share&wxshare_ count=1&timestamp=1638613017&app=news_ article&utm_ source=weixin&utm_ medium=toutiao_ ios&use_ new_ style=1&req_ id=2021120418165701015015608914163D60&share_ token ...

Posted by carnold on Sat, 04 Dec 2021 13:36:24 -0800

Biological Sequence Intelligent Analysis Platform blog(15)

2021SC@SDUSC Learner function This blog focuses on the most important code in the entire training or prediction code because it initializes the loading of all other models, data processing visualization, log printing, and so on. Before introducing these classes, let's briefly summarize the five main categories of Framework: Learner: The mai ...

Posted by Nilanka on Sat, 04 Dec 2021 09:51:15 -0800

Machine learning -- model generalization

introduction As we all know, we brush questions before the exam. But most of the exams are not the original questions. What's the use of brushing questions before the exam? Of course, as like as two peas, we did not want to have the same questions in the exam. (maybe. In fact, in machine learning, the questions brushed before the test are the ...

Posted by emopoops on Thu, 02 Dec 2021 21:34:25 -0800