Getting started with Python day9

inherit   Inheritance? Something inherited from your elders The question is: what did you inherit when you inherited?   Class inheritance: What is in the class? Variables and methods class son(father) This can even just write pass But if the method in father wants to pass parameters to object variables Pass parameters in son() Yo ...

Posted by kaumilpatel on Wed, 17 Nov 2021 07:02:17 -0800

[neural network] weight decay

Weight attenuation In the previous section, we observed the over fitting phenomenon, that is, the training error of the model is much smaller than its error on the test set. Although increasing the training data set may reduce over fitting, it is often expensive to obtain additional training data. This section describes a common method to ...

Posted by kark_1999 on Wed, 17 Nov 2021 06:27:12 -0800

minimatch source code analysis

minimatch source code analysis text 0. Basic information version: v3.0.4Functions: brace expansion, glob expression matching, globstar extension (* *)Npm Repository: https://www.npmjs.com/package/minimatch 1. Source code analysis minimatch still has a lot of content, mainly the reproduction of Bash's glob parsing based on js, and learn ...

Posted by NeverPool on Wed, 17 Nov 2021 06:25:29 -0800

Dubbo consumer cluster, load balancing implementation, routing Router

As we know, there are usually multiple instances on the Dubbo server, and the Dubbo consumer has built-in policies for load balancing scheduling. Let's take a general look. The overall architecture of routing and load balancing officially given is as follows: Before we start, let's talk about a few concepts in Dubbo: Cluster is commonly known ...

Posted by mrobertson on Wed, 17 Nov 2021 06:19:54 -0800

Redis application learning notes

From my point of view, this article is a little rough. After all, it doesn't take much time. As an entry point, it may not enter the door? Redis is a very powerful database. I once read his source code and marveled at the monotony of his bottom layer, but the variability of his top layer. This is in response to the sentence "Tao gener ...

Posted by BVis on Wed, 17 Nov 2021 05:47:22 -0800

Introduction to applet Progress component

Introduction to applet Progress component Official documents progress bar. The length unit of component attribute is px by default, 2.4.0 Incoming units (rpx/px) are supported. attribute All visible components of the applet can bind the tap event bindmap, even if it is not indicated in the attribute. If the Boolean attribute in th ...

Posted by IronCannibal on Wed, 17 Nov 2021 05:34:24 -0800

javaScript learning notes 18 days -- object-oriented pattern

When you need to get a certain type of object in large quantities, you can use factory mode Factory mode Steps: Create a functionReturns an object in the function return {} //Create factory function //1. Create function and object attributes function createPerson(name,age,address,className){ //2. Return th ...

Posted by jtp51 on Wed, 17 Nov 2021 05:25:19 -0800

Jetpack Lifecycle source code analysis

1, Lifecycle Lifecycle is a lifecycle aware component in Jetpack. It is used to store information about the lifecycle state of an Activity or Fragment, and allow other objects to observe this state. Lifecycle uses state and event enumerations to track the lifecycle state of its associated components. 2, Basic use   Using Lifecycle to o ...

Posted by ibelimb on Wed, 17 Nov 2021 05:25:09 -0800

11 Listener of java web core

2.11.1 listener introduction First of all, we should understand the observer design pattern. All listeners are based on the observer design pattern. Three components Event source: the object that triggers the event Event: the triggered action encapsulates the event source Listener: when the event source triggers an event, the function can ...

Posted by nuttynibbles on Wed, 17 Nov 2021 05:13:33 -0800

Learn Spring Boot: use hibernate validation to complete data back-end verification

preface The verification of background data is also an important point in development. It is used to verify the correctness of data to avoid some illegal data damaging the system or entering the database, resulting in data pollution. Since data verification may be applied to many levels, the system has strict requirements for data verification ...

Posted by jaql on Wed, 17 Nov 2021 05:11:48 -0800