Lesson notes of PyTorch deep learning practice Lesson4 use PyTorch to realize simple linear regression
1. Basic steps for pytorch to realize linear regression
Construct data setDefine Model function moduleConstruct the forward() function in the function module (that is, calculate y_pred)Calculate loss valueSelect optimization methodTraining cycle iteration
2. Several optimization methods of pytorch
AdagradAdamAdamaxASGDLBFGSRMSpropRpr ...
Added by ferhanz on Sun, 02 Jan 2022 08:24:05 +0200
[source code analysis] PyTorch distributed elastic training - monitoring / fault tolerance
[source code analysis] PyTorch distributed elastic training (6) - monitoring / fault tolerance
0x00 summary
As for PyTorch elastic training, we have introduced Agent and rendezous respectively so far, but some parts are not in-depth, such as monitoring. This paper unifies them and logically combs the elastic training as a whole.
The flex ...
Added by running_out_of_imagination on Sun, 02 Jan 2022 07:51:34 +0200
Part of speech prediction by Python note42 LSTM
Part of speech prediction by Python note42 LSTM
Summary of all notes:
Pytoch note Happy Planet
Model introduction
For a word, there will be different parts of speech. First, we can make a preliminary judgment according to the suffix of a word. For example, the suffix - ly is very likely to be an adverb. In addition, a same word can repre ...
Added by nishmgopla on Sun, 02 Jan 2022 06:59:17 +0200
Training of deterministic neural network Lianzi model
This article continues with the last part. This article continues with examples of multi-catalog data training models.
4. Multi-directory data training
This example is based on previous batch data training and repeated iteration training, and stores data files in multiple directories instead of just one directory to support distributed data a ...
Added by SPraus on Sat, 01 Jan 2022 09:43:30 +0200
sklearn-Section 6 (PCA)
1. Principal Component Analysis (PCA) Thought and Principle
1.1 What is principal component analysis
PCA(Principal Component Analysis), a principal component analysis method, is the most widely used data dimension reduction algorithm (unsupervised machine learning method).
Its main purpose is to "reduce dimensionality", by disjunct ...
Added by mania on Sat, 01 Jan 2022 09:17:53 +0200
Manual neural network explanation and implementation of Softmax regression series without packet switching [R language] [beginner's learning notes]
In the first issue, we explained and realized the most basic linear regression. In this issue, we will talk about the regression problem to the classification problem. At this time, we need to add some elements based on the linear regression model, that is
activation function so that our model can solve nonlinear data and classification pro ...
Added by php4hosting on Sat, 01 Jan 2022 04:57:41 +0200
Triton: openai open source GPU Programming artifact
preface
We will release Triton 1.0, an open source Python like programming language that enables researchers without CUDA experience to write efficient GPU code - in most cases equivalent to the code generated by experts. Triton makes it possible to reach the peak of hardware performance with relatively little effort; For example, it can b ...
Added by callie212 on Fri, 31 Dec 2021 20:40:08 +0200
Hengyuan cloud_ [text classification] text data enhancement 1 (paper notes)
Source: Hengyuan cloud community( Hengyuan cloud, a shared computing platform focusing on AI industry)
Original address| Text data enhancement
Original author Jiao Hui
Recently, I was doing news headline classification and found an article with data enhancement to learn: One is enough! Overview of data enhancement methods This paper implem ...
Added by tony-kidsdirect on Fri, 31 Dec 2021 19:21:48 +0200
Automatic derivation with numpy and PyTorch, torch Implementation of two-layer neural network based on NN Library
Realize the step-by-step deepening from manual derivation to automatic derivation and then to the model.
Implementation of two-layer neural network with numpy
A fully connected ReLU neural network, a hidden layer, no bias, L2 Loss (h is hidden layer, ReLU activation function):
h
...
Added by karldenton on Fri, 31 Dec 2021 17:56:23 +0200
Super parameter adjustment and automatic time series modeling are carried out by genetic algorithm
In previous articles, we introduced some knowledge based on genetic algorithm. This article will use genetic algorithm to process machine learning model and time series data.Super parameter adjustment (TPOT)Automatic machine learning (Auto ML) helps us find the most suitable model for prediction by automating the whole machine learning process. ...
Added by VMinder on Fri, 31 Dec 2021 16:05:22 +0200