QA Official

Deep Learning-User Defined Layer 2019-05-02
This article let's take a look at how to do gradient testing if you customize the layer. Lao Wu still highly advocates gradient testing. Since many articles have been written, the repeated contents will not be explained any more. Please refer to the previous articles. public class CustomLayerExample { static{//静态代码块 //Double precision for the gradient checks. See

Implementation of Three Recurrent Neural Network (RNN) Algorithms (From scratch, Theano, Keras) 2019-05-02
"From simple to complex, then to simple!" Preface Skip nonsense and read the text directly After a period of study, I have a preliminary understanding of the basic principles and implementation methods of RNN. Here are three different implementation methods of RNN for reference. RNN principle can be found on the Internet, I will not say it here, it will not be better than those, here first recommend a RNN tutorial, speak very well, four post after watching the basic can realize RNN.

Multi-label Classification and CAFFE (Convolutional Architecture for Fast Feature Embedding) Implementation Summary 2019-05-02
I have always had a "special interest" in multi-label classification because I always felt that I didn't fully understand it.Recently, I have read many blogs and suddenly felt a little bit, so I wrote down my current understanding.At present, the multi-label classification tasks I have seen have the following two situations (if there are any errors, please contact me and correct me): Each sample corresponds to multiple label, the value of which is not 0, i.

Simple Method of Customizing Object Function (Loss Function) in Keras 2019-05-02
Keras, as a deep learning library, is very suitable for beginners.When making a neural network, it comes with many commonly used objective functions, optimization methods and so on, which can basically meet the needs of novice learners.It includes objective function and optimization method.However, it also supports users to customize the objective function. The following describes one of the simplest methods to customize the objective function. In order to realize the custom objective function, it is natural to look at how the objective function in Keras is defined first.

Two Application Scenarios of Custom Loss Function! 2019-05-02
For the first scenario, the categories expected to be predicted have different emphases Background of this custom loss function: (MSE is generally used for regression, but it will vary depending on the actual situation) We now want to make a regression to estimate the sales volume of a certain commodity. Now we know that the cost of a commodity is 1 yuan and the selling price is 10 yuan.

Use keras to draw real-time loss and acc curves 2019-05-02
nonsense not much said, directly on the code, the code has comments, do not know how to comment on the blogger can be asked # -*- coding: utf-8 -*- import keras from keras.models import Sequential from keras.layers import Dense import numpy as np import matplotlib.pyplot as plt import time # 输入训练数据 keras接收numpy数组

multi-label Learning and Mulan 2019-05-02
Concept Clarification: traditional single label classification (China also translates into single label, but I personally think it should be translated into a noun) learning is from a sample set that only belongs to one label l, where each label belongs to a mutually exclusive label set L,|L| > 1. In multi-label classification, each sample belongs to a subset of an L sample set. Multiple Tags: In the past, multi-label classification was generated and promoted by text classification and medical analysis.

some tips in keras (1) 2019-05-02
The main reason for writing this blog is to summarize some problems we often encounter in in-depth study and do not know how to solve them. I am going to take this part as a series. In order to make everyone walk less, if there are any mistakes in this blog, please point out and get to the point below. 1. Deep learning, a headache problem is how to adjust

8. Mediator Pattern 2019-05-01
1. Definition: Encapsulates a series of object interactions with a mediation object. Mediators make the interaction of objects unnecessary to display, thus making the coupling loose, and can independently change the interaction between them. 2. Resolution: It doesn't matter if you don't understand this passage. Let's look at a scene like this first: The company has one leader and nine employees. One day, the leader will go to the company's

Java Design Pattern-Mediator Pattern 2019-05-01
1 Mediator Pattern mediator pattern Purpose: Encapsulate a series of object interactions with an intermediary object. The intermediary makes it unnecessary for each object to refer to each other explicitly, thus making its coupling loose and changing the interactions between them independently.Implementation: Defines an object that encapsulates the way a group of objects interact. 1. Use when multiple classes are coupled to form a network structure, separating the network structure