QA Official

Machine Learning-Introduction of ——Dropout Principle

https://qaofficial.com/post/2019/04/07/69440-machine-learning-introduction-of-dropout-principle.html 2019-04-07
1: Introduction Because in some models of machine learning, if the parameters of the model are too many and the training samples are too few, then the trained model is prone to over-fitting.One of the problems often encountered in training bp network is over-fitting, which means that the loss function of the model on training data is relatively small and the prediction accuracy is relatively high (if represented by drawing,

Summary and Comparison of Java Collection Classes

https://qaofficial.com/post/2019/04/07/69349-summary-and-comparison-of-java-collection-classes.html 2019-04-07
Collection├List│├LinkedList│├ArrayList│└Vector│└Stack└Set Map├Hashtable├HashMap└WeakHashMap Collection Interface Collection is the most basic Collection. A collection represents a set of Object, that is, Elements of a collection.Some Collection allows the same elements while others do not.Some can be sorted while others cannot.Java SDK does not provide classes directly inherited from Collection, Java The classes provided by SDK are all " subinterfaces" such as List and Set inherited from Collection.All classes that implement the Collection interface must provide two standard constructors: a parameterless constructor to create an empty Collection, and one

Summary of Common Loss Functions

https://qaofficial.com/post/2019/04/07/69297-summary-of-common-loss-functions.html 2019-04-07
loss function is used to estimate the degree of inconsistency between the predicted value f(x)f(x) of the model and the real value YY. The smaller the loss function, the better the robustness of the model.Loss function is the core part of empirical Risk utility function and also an important part of structural Risk utility function.The structural Risk utility function of the model includes empirical risk terms and regular terms, which can be generally expressed as the following formula:

There are so many collection types, when should I use List, Set, Map?

https://qaofficial.com/post/2019/04/07/69341-there-are-so-many-collection-types-when-should-i-use-list-set-map.html 2019-04-07
Collection includes Collection and map, and Collection consists of two word interfaces-List and Set. Each subinterface has its own different implementation class … It sounds dizzy. How can beginners distinguish and apply them? *List interface List is an ordered Collection. using this interface, you can precisely control where each element is inserted.Users can use indexes to access elements in the List, similar to arrays.List allows the same elements. Common classes

Understanding dropout

https://qaofficial.com/post/2019/04/07/69435-understanding-dropout.html 2019-04-07
From: https://blog.csdn.net/stdcoutzyx/article/details/49022443 It is clear at the beginning that dropout refers to temporarily discarding neural network elements from the network according to a certain probability during the training process of the deep learning network.Note that for the time being, for stochastic parallel gradient descent algorithm, each mini-batch is training a different network because it is randomly discarded. dropout is a big killer in CNN to prevent overfitting and improve the effect, but there are different opinions on why it is effective.

[ Tensor Flow ] MN IST (using fully connected neural network+moving average+regularization+exponential decay+activation function)

https://qaofficial.com/post/2019/04/07/69388-tensor-flow-mn-ist-using-fully-connected-neural-network-moving-average-regularization-exponential-decay-activation-function.html 2019-04-07
code uploaded to github-mnist _ all.py download MNIST dataset There are two download methods below. If the link fails, you can search for resources on the Internet. Official download address (ladder may be required) Baidu Netdisk Download Password: 84pb after downloading it, place it under the mnist/data/folder with the following directory structure mnist mnist_all.py data/ train-images-idx3-ubyte.gz train-labels-idx1-ubyte.gz t10k-images-idx3-ubyte.gz t10k-labels-idx1-ubyte.gz complete code This code was modified from " TensorFlow: Practical Google

frameless realization of basic artificial neural network recognition of MNIST dataset

https://qaofficial.com/post/2019/04/07/69405-frameless-realization-of-basic-artificial-neural-network-recognition-of-mnist-dataset.html 2019-04-07
Homework given by senior students, but when searching, it seems that there is not a lot of existing data to implement artificial neural network without framework, and the recognition of MNIST is mostly based on Tensorflow.What we have done is a relatively poor model, without regularization, and then after 1,000 training sessions, we have a correct rate of about 88%.There are altogether three layers of networks. The first layer is

AlexNet Model Implementation (4. python Implementation Based on Tensorflow)

https://qaofficial.com/post/2019/04/06/69232-alexnet-model-implementation-4.-python-implementation-based-on-tensorflow.html 2019-04-06
Based on the deep learning framework provided by Tensorflow, the data processing platform in Alibaba Cloud is very efficient. However, requests consume too much money due to frequent data acquisition.In the local four stone PC operation efficiency is higher than C++. paste code: # -*- coding: utf-8 -*- import os os.environ["CUDA_VISIBLE_DEVICES"] = "0,1" import sys import argparse import numpy as np import tensorflow as tf FLAGS = None class slqAlexNet(): def __init__(self): self.

C# Fast Partition Array

https://qaofficial.com/post/2019/04/06/69276-c#-fast-partition-array.html 2019-04-06
List<int> list = new List<int>(); for (int i = 0; i < 100; i++) { list.Add(i); } var v=string.Join(",", list);//Divide the array by ","

C# Groups Arrays for Statistics

https://qaofficial.com/post/2019/04/06/69255-c#-groups-arrays-for-statistics.html 2019-04-06
//用来判断所选择的行政区级别 //0全国1省2市3县 public int qssx = 0; private void button1_Click(object sender, EventArgs e) { System.Windows.MessageBox.Show("