Pytoch actual combat_ Compression of neural networks

1. Compression of neural network For some large-scale neural networks, their network structure is very complex (it is said that some neural networks of Huawei are composed of hundreds of millions of neurons). It is difficult for us to put this neural network on a small device (such as our apple watch). This requires us to be able to compress t ...

Posted by ttroy on Tue, 18 Jan 2022 01:29:10 +0100

python learning notes 4: loop and list

Loops and lists 1, Loop nesting The execution principle of loop nesting: the outer loop is once and the inner loop is complete for x in range(5): for y in range(2, 8): print(x, y) 2, Recognition list 1. List What does a list look like: a list is a container data type (sequence); Take [] as the flag of the container, in which multiple ...

Posted by nigel_belanger on Tue, 18 Jan 2022 00:15:24 +0100

11. Integrated learning practice

API parsing AdaBoost algorithm (reduction coefficient needs to be added to solve the problem of infinite amplification caused by abnormal data, resulting in error) parameter AdaBoostClassifier AdaBoostRegressor base_estimator Weak classifier object, the default is CART classification tree DecisionTreeClassifier; Weak regressor object, the ...

Posted by DocUK on Mon, 17 Jan 2022 23:56:47 +0100

Tree traversal algorithm

1, Several traversal algorithms of tree 1. Preorder traversal First access the root of T, and then recursively access the root of the subtree. If the tree is ordered, traverse the subtree according to the child's order. The pseudo code for traversing the root of the subtree at position p is: Algorthm preorder(T, p): perform the visit act ...

Posted by pbjpb on Mon, 17 Jan 2022 23:52:16 +0100

Is the bubble Hall of version Q in your memory like this! Python implementation of simple Q version bubble hall games!!!

Related documents Pay attention to Xiaobian and receive private letter Xiaobian! Of course, don't forget a triple~~ Yes, we can pay attention to the official account of Xiaobian yo ~ ~ Python log development environment Python version: 3.6.4 Related modules: pygame module; And some Python built-in modules. Environment construction Instal ...

Posted by natman3 on Mon, 17 Jan 2022 23:45:14 +0100

10 basic Python grammar exercises

catalogue 1. Digital combination 2. Application of piecewise function 3. Mathematical calculation 4. Judgment date 5. Numerical sorting 6. Fibonacci sequence 7. Time function 8. Draw a diamond 9. Application questions - raw rabbit 10. Output prime 1. Digital combination Title: there are four numbers 1, 2, 3 and 4. How many three di ...

Posted by LoganK on Mon, 17 Jan 2022 22:52:12 +0100

python picture crawler experience

python picture crawler experience 1, Process 1. Be familiar with the basic information of crawler web pages 2. Find the url of the picture in the web page source and try to open it 3. Writing python scripts 4. Execute script to download pictures 2, Familiar with the basic information of crawler web pages Before crawling, first you need to und ...

Posted by modplod on Mon, 17 Jan 2022 21:17:57 +0100

numpy_6 sorting, searching, counting and collection operations

sort Direct sort () numpy.sort(a[, axis=-1, kind='quicksort', order=None]) Axis: sort along the (axis) direction of the array. 0 means by vertical axis, 1 means by horizontal axis, and None means expand to sort. The default is - 1, which means sort along the last axis. kind: sorting algorithm, which provides fast sorting 'quicksort', mixe ...

Posted by jmrothermel on Mon, 17 Jan 2022 20:54:26 +0100

Python built-in functions

Official documentation of Python built-in functions 1. abs() function Returns the absolute value of a number print(abs(-45)) #Return 45 print(abs(-0.5)) #Return 0.5 2. all() function It is used to judge whether all elements in a given parameter are True. If yes, it returns True; otherwise, it returns False. Elements are True except 0, ...

Posted by agravayne on Mon, 17 Jan 2022 19:45:50 +0100

Introduction to Python self study list

Introduction to Python self-study (III) list preface Tip: you will learn all kinds of data that can be used in Python programs. You will also learn how to store data in variables and how to use these variables in programs. 1, What is the list A list consists of a series of elements arranged in a specific order. You can create a list ...

Posted by blogfisher on Mon, 17 Jan 2022 19:42:40 +0100