Linear Regression

... One of the most basic regressions in linear learning. This paper comprehensively analyzes this regression from the mathematical assumptions of linear regression, formula derivation, model algorithm and actual code running. ~ 一: Mathematical Hypothesis of Linear Regression 1. Assume that...


Quick sorting template

... has to admit that reviewing these before the advent of the preliminary game is very shameful... Ok, actually, I think I can push it, but put a board insurance. because I am 怂 using namespace std ; # include <cstdio> # include <cstring> # include <cstdlib> # include <...


Integrated learning algorithm

... 集成学习:Bagging and Boosting Before introducing random forest, you need to talk about the concept of inheritance learning. Integrated learning has a high accuracy in machine learning algorithms. The downside is that the training process of the model may be complicated and the efficiency is...


Find the greatest common divisor of two numbers

... to find the greatest common divisor of two numbers problem analysis: Treat the smaller number as a divisor, the remainder of the two numbers, then treat the remainder as a divisor, the smaller number as the dividend, continue to find the remainder, and so on, until the remainder is 0. ...


trainParam.epochs

... net.trainParam.epochs Neural network trainParam attribute. NET.trainParam This attribute defines the parameters of the current training function net.trainFcn. Maximum value (epochs) function parameters Epochs is a training function parameter. It must be a positive value. epochs can be...


Several common optimization methods (gradient descent method, Newton method, quasi-Newton method, conjugate gradient method, etc

... Common optimization methods ( gradient descent method, Newton method, quasi-Newton Law, Conjugate Gradient Method, etc. ) @ We all encounter a variety of optimization problems in our lives or work, such as a problem that every company and individual must consider. How to maximize...


Bubble sort, select sort, random number, C language

... #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 100 Void data(int a[], int n)//This function is used to generate a random number { Int i,seed; Seed=time(0); Srand((unsigned int)seed); For(i=0;i<n;i++) { a[i]=rand()%100; } } Void maopao(int a[], int n...


Net.iw

... Neural Network IW Properties. NET.IW This attribute defines the weight matrix of the weights going to the layer From the network input. It is always an array of Nl x Ni cells, where Nl is Number of network layers (net.numLayers), Ni is the number Network input (net.numInputs). The...


Learn C++ the next day

... From a small program 题: Enter a string of numbers and any number of spaces to calculate the sum of all numbers #include<stdio.h> #include<stdlib.h>//atoi header file, string converted to integer #include<ctype.h>//isdigit header file #define maxSize 10 Int main(){ Char...


Data structure---Application example of linear table

... Rearrange the sequence table (a1a2, a3, ..., an) into two parts bounded by a1: the value before a1 is smaller than a1, the latter Values ​​are larger than a1 (data types are comparable, both are integer) #include <stdio.h> #include <stdlib.h> #define maxsize 100 Typedef...