CS231N Course Learning Summary (assignment 1)
1.image classification
Data is divided into train_data, val_data and test_data by data-driven algorithm. Different results are debugged with different hyperparameters on train, evaluated on verification set, and then applied to test with the best pe ...
Added by Shaudh on Sat, 17 Aug 2019 13:14:17 +0300
python front-end development (JavaScript variables, data types, built-in objects, operators, process controls, functions)
11.4 JavaScript
11.41 variable
1. Grammar of declaring variables
// 1. Declare before define
var name; // There is no need to specify a type or variable when declaring a variable. name Any type is acceptable
name= "egon";
// 2. Declarations are immediately defined
var age = 18;
2. Variable Naming Specification
1. It's composed o ...
Added by chetanrakesh on Fri, 16 Aug 2019 17:44:40 +0300
Deep Understanding of Go-Garbage Recycling Mechanism
Go's GC has been criticized since it was born, but after introducing the three-color marker of v1.5 and the mixed writing barrier of v1.8, the normal GC has been shortened to about 10us, and has become very excellent. It's amazing. Let's explore the principle of Go's GC.
Principle of Tricolor Marking
Let's first look at a picture, and we will p ...
Added by nemo on Thu, 15 Aug 2019 17:14:37 +0300
Line by line source code analysis clearly AbstractQueued Synchronizer
Links to the original text: https://www.javadoop.com/post/AbstractQueuedSynchronizer
When analyzing Java concurrent package java.util.concurrent source code, we need to understand AbstractQueued Synchronizer (abbreviated as AQS below), becau ...
Added by craigerjs on Sat, 10 Aug 2019 09:38:59 +0300
python data analysis tool 1: numpy
1.1 Numpy Infrastructure
NumPy array is a multidimensional array object called ndarray. It consists of two parts:
(1) Actual data
(2) Metadata describing these data
# Multidimensional array ndarray
import numpy as np
ar = np.array([1,2,3,4,5,6,7])
print(ar) # Output arrays, note the format ...
Added by JJohnsenDK on Thu, 08 Aug 2019 16:55:51 +0300
js function this understanding? Handwritten apply, call, bind is enough
First, what is this?
This refers to the environment object on which the function is executed. That is to say, this of the function points to the execution environment of the calling function.
function a(){
return this
}
console.log( a() === window) //true
The function's this keyword behaves slightly differently in JavaScript, and there ar ...
Added by anf.etienne on Thu, 08 Aug 2019 16:09:17 +0300
Proficiency in ES6 Series I (iterator)
1. The Concept and Function of Iterator
The main purpose of iterator is to provide a unified and convenient access and traversal mechanism for collections in JS such as Array, Map, Set or some custom collections. It is actually an interface. Any data structure can be traversed by deploying the itera ...
Added by cypr on Thu, 08 Aug 2019 11:28:29 +0300
Deep understanding of Concurrent HashMap source code
Concurrent HashMap in Java 7
Concurrency Level: Parallel level, concurrency number, Segment number, default is 16, that is, Concurrent HashMap has 16 Segments, at this time, in theory can support up to 16 threads concurrently write, as long as their operations are distributed on different Segments. T ...
Added by BETA on Wed, 07 Aug 2019 12:40:32 +0300
Evolution of Producer and Consumer Problems in Java
Links to the original text: https://dzone.com/articles/th...
Authors: Ioan Tinca
Translator: liumapp
Want to know more about the evolution of Java producer-consumer issues? Let's take a look at this article. We'll deal with this problem with the old method and the new method respectively.
The producer-consumer problem is a typical multi-process ...
Added by tmk4php on Mon, 05 Aug 2019 11:12:16 +0300
Wannafly Challenge 22D Integer Sequence (Segment Tree Maintains Trigonometric Values)
Links: https://ac.nowcoder.com/acm/contest/160/D
Source: Niuke.com
Sequence of integers
Time limit: C/C++ 2 seconds, 4 seconds for other languages
Space limit: C/C++ 262144K, other languages 524288K
64bit IO Format: %lld
Title Description
Gives an integer sequence a1,a2,...,an of length n for m operations, which are divided into two categories. ...
Added by usefulphp on Thu, 01 Aug 2019 22:00:49 +0300