Hands on in-depth learning PyTorch version - Task02 learning notes

Text preprocessing Text is a kind of sequential data. An article can be regarded as a sequence of characters or wordsPretreatment usually consists of four steps: Read in text English novels: Taking English novel as an example to show the steps of text preprocessing import collections import re def ...

Posted by miksel on Fri, 14 Feb 2020 05:22:13 -0800

Basis of convolutional neural network

linear regression Linear regression formula:y^=∑i=1p(wixi+bi) \hat{y} = \sum ^{p}_{i=1}(w_{i}x_{i}+b_{i}) y^​=i=1∑p​(wi​xi​+bi​) Loss function:l(i)(w,b)=12(y^(i)−y(i))L(w,b)=1n∑i=1nl(i)(w,b)=1n∑i=1n12(wTx(i)+b−y(i))2 l^{(i)}(w,b) = \frac{1}{2}(\hat y^{(i)}-y^{(i)}) \\ L(w,b) =\frac{1}{n}\sum ^{n}_{i=1 ...

Posted by silvrfoxx on Fri, 14 Feb 2020 05:03:58 -0800

How to remove the request header parameters automatically added by user agent, accept encoding and other frameworks from OkHttp

When using the OkHttp network framework to make network requests, we will find that there will be several additional parameters in the request header sent to the background than we added ourselves. Check the source code and you will find private Response getResponseWithInterceptorChain() throws IOException { // Build a fu ...

Posted by runfastrick on Thu, 13 Feb 2020 11:42:52 -0800

Task 1-1 linear regression notes

1, Explanation of linear regression model 1. What is a linear model Representation data can be described by linetype relationship. In the case of formulation, y=wx+b. The process of modeling is the process of finding w, b. However, due to the deviation of real data, unbiased estimation cannot be obt ...

Posted by Tr4mpldUndrfooT on Thu, 13 Feb 2020 04:31:10 -0800

[deep learning] village to network -- on the new features of tensorflow Eagle execution mechanism

Article directory Preface Convolution directly using operation Automatically calculate gradient (derivative) Calculate the gradient of all parameters Calculate the gradient of all variables Using Python program flow to control model flow Automatic optimization Preface This article is [deep lea ...

Posted by bubatalazi on Thu, 13 Feb 2020 02:09:50 -0800

DL Python notes task02: text preprocessing; language model; cyclic neural network foundation

Text preprocessing Text is a kind of sequence data. An article can be regarded as a sequence of characters or words. This section will introduce common preprocessing steps of text data, which usually includes four steps: Read in text participle Build a dictionary to map each word to a unique index Co ...

Posted by Jeroen Oosterlaar on Thu, 13 Feb 2020 02:04:01 -0800

Introduction to Python 1: convolutional neural network for MNIST handwritten digit recognition

Catalog 1. Introduction to pytorch 2. Convolutional neural network (CNN) 3. Convolution neural network in PyTorch 3.1 convolution layer: nn.Conv2d() 3.2 pool layer: nn.MaxPool2d() 4. MNIST handwritten digit recognition 4.1 import and stock in function 4.2 setting super parameters 4.3 loading ...

Posted by celestineweb on Thu, 13 Feb 2020 01:48:48 -0800

STM32G031 wireless temperature and humidity instrument open source project - 4, initialization of Zigbee module (DRF1609H)

Keywords: CubeMX, CubeIDE, STM32G031C8T6, AHT10, DRF1609H Zigbee module (DRF1609H) is used in this project as wireless data transmission. Initialization of DRF1609H mainly involves the following aspects: 1. Set the type of node, which can be set as Router and End Device. Zigbee network has three types o ...

Posted by tarun on Thu, 13 Feb 2020 00:31:17 -0800

Python deep learning -- RNN and its advanced model implementation

Python deep learning (2) -- RNN and its advanced model implementation 0 prediction training function 1.RNN implementation Summary of RNN 2.GRU implementation Summary of GRU 3.LSTM implementation Summary of LSTM 4.Deep-RNN Add parameter num? Layers = 2 5. Bi RNN implementation Add parameter bidirectio ...

Posted by heybret on Wed, 12 Feb 2020 23:51:00 -0800

A brief introduction to the basic components of spring cloud

Introduction to spring cloud eureka As a registry, eureka plays an important role in microservices. At present, eureka and zookeeper are the mainstream registries. eureka is AP, zookeeper is CP. (CAP theory) Architecture diagram As can be seen from the architecture diagram, eureka adopts cs archite ...

Posted by shaitand on Wed, 12 Feb 2020 21:11:08 -0800