Softmax for handwritten digit recognition (Tensorflow Implementation) - personal understanding

The function of softmax     for classification, the function of softmax is to calculate the probability that the sample belongs to each category from the sample value. For example, for handwritten numeral recognition, softmax model obtains the probability values of 0-9 from the given pixel value of handwritten image, and the sum ...

Posted by Afrojojo on Tue, 17 Dec 2019 08:46:15 -0800

PHP implementation of Domain Driven Design - domain events

Chapter VI field events Software events are things of interest to other components of the system. PHP programmers generally do not use events in their work, because this is not a feature of the language. However, it is now more common for new frameworks and libraries to adopt them to provide a new way to decouple, reuse, and speed up code. Doma ...

Posted by xionfoo on Sun, 15 Dec 2019 14:26:10 -0800

es6 -- function extension

I. default value of function parameter //Practice before es6 function log(x,y){ var y=y||'world'; console.log(x,y); } log('hello'); // hello world log('hello',0); //hello world **: when the parameter y is assigned to false, the default value is valid. This may not be what we want. You may make the following improvemen ...

Posted by max101 on Sat, 14 Dec 2019 11:52:02 -0800

Qt write picture and video TCP/UDP network transmission

I. Preface Similar projects have been done many years ago. It's just to upload the local pictures to the server. It's so simple. In fact, it's easy to upload with http post. You don't need to customize the protocol. You can directly set the binary data. If you use TCP or UDP communication, you must customize the protocol, because you don't know ...

Posted by thelinx on Sat, 14 Dec 2019 11:24:52 -0800

Spring Cloud Part 7: declarative service call Feign

This is the seventh article of Spring Cloud column. Understanding the contents of the first six articles helps to better understand this article: Introduction to Spring Cloud and its common components Spring Cloud Part 2 use and know Eureka registry Spring Cloud Part 3: building a highly available Eureka registry Spring Cloud Part 4: c ...

Posted by eyekkon on Sat, 14 Dec 2019 02:46:02 -0800

[Algorithmic Daily] K sets of inverted chains

K sets of flip chains Title Source: LeetCodeLinks: https://leetcode-cn.com/problems/reverse-nodes-in-k-group Give you a list of links that are flipped in groups of k nodes. Please return to the flipped list. k is a positive integer whose value is less than or equal to the length of the chain table. If the total number of nodes is not an intege ...

Posted by misfits on Sat, 14 Dec 2019 00:22:24 -0800

How do I use reflection to call generic methods?

When type parameters are unknown at compile time, but are acquired dynamically at run time, what is the best way to call generic methods? Consider the following example code - inside the Example() method, what is the simplest way to call genericmethod < T > () using the Type stored in the myType variable? public class Sample { p ...

Posted by scottybwoy on Fri, 13 Dec 2019 03:56:12 -0800

Lucene note25 - use of Lucene - scoring settings by domain

I. demand Set scoring rules according to the file name, or double the score of the latest year according to the modification time of the document, reduce the score beyond one year, etc. II. Specific implementation Here, the scoring rule is modified according to the file name. The scores containing "JRE" and "S ...

Posted by darkshine on Thu, 12 Dec 2019 08:55:10 -0800

It only takes 5 minutes for the handles to show you the wrong use of the Handler

The whole collaborative relationship of Hander, Looper, MessageQueue, Message is like the overall operational relationship of a restaurant: Handler - Dinner Looper - Rear Chef. MessageQueue - Order machine. Message - A table-by-table order. Next we review the scene of our restaurant meals, which are divided into standard and special meals. Let ...

Posted by timbo6585 on Wed, 11 Dec 2019 18:56:45 -0800

How to randomize (randomly play) JavaScript arrays?

I have an array like this: var arr1 = ["a", "b", "c", "d"]; How to play randomly? #1 building A person can (or should) use it as an Array prototype: From ChristopheD: Array.prototype.shuffle = function() { var i = this.length, j, temp; if ( i == 0 ) return this; while ( --i ) { j = Math.floor( Math.random() * ( i + 1 ...

Posted by jinwu on Wed, 11 Dec 2019 12:46:31 -0800