Interpretation of longform code structure
While longformer extends maxlen, there are many structural difficulties, which are gradually analyzed here.
_ sliding_ chunks_ query_ key_ Structural transformation in matmul function
The hardest thing to understand here is these sentences
query_size = list(query.size())
query_size[1] = query_size[1]*2-1
query_stride = list(query.stride( ...
Added by throx on Sat, 12 Feb 2022 16:54:24 +0200
Unit 2 learn the second basic theorem of calculus with python
The content of this article comes from learning MIT open course: univariate calculus - the second basic theorem of calculus - Netease open course
1, In reverse, FTC1
FTC1: if F'(x) = f(x),
On the contrary:
Use f to understand F and f '
The information of F 'can be derived from the information of F
1. Compare FTC1 and mean value theorem ...
Added by anthonyfellows on Sat, 12 Feb 2022 15:52:27 +0200
English translation is too difficult? In a rage, I wrote two translation scripts with crawlers
π Personal profile
π About the author: Hello, I'm Daniel ππ Personal homepage: Hall owner a Niuπ₯π Support me: like π Collection β Leave a message ππ£ Series column: python web crawlerππ¬ Maxim: so far, all life is written with failure, but it doesn't prevent me from moving forward! π₯
preface
It's coming! It's coming! A ...
Added by Snooble on Sat, 12 Feb 2022 13:16:57 +0200
(BDCI-CCF) taxi invoice identification
Reference article:
Baidu AI strategy: Taxi ticket identification_ Can I waste my blog - CSDN blog (complete python source code attached) entry case based on tensorflow and opencv_ Invoice identification I: positioning of key areas_ Xiaobai comes to move - CSDN blog_ python invoice identification
Note: thanks to the teammates who completed the ...
Added by neorunner on Sat, 12 Feb 2022 12:47:01 +0200
python learning - functional programming
Functional programming
brief introduction
Function is a kind of encapsulation supported by Python built-in. We can decompose complex tasks into simple tasks by disassembling large pieces of code into functions and calling functions layer by layer. This decomposition can be called process oriented programming. Function is the basic unit ...
Added by JCF22Lyoko on Sat, 12 Feb 2022 10:40:43 +0200
Python play with data simple distributed crawler
1, Explain
Although there are many things that can be done by scratch, it is difficult to achieve large-scale distributed applications. Someone has changed the queue scheduling of the sweep and changed the starting URL from start_ It is separated from URLs and read from redis instead. Multiple clients can read the same redis at the same time, ...
Added by eranwein on Sat, 12 Feb 2022 08:24:48 +0200
Python 3-basic-09-dictionary
Dictionary features:
1. Disordered
2.key unique
ps: similar to map in java
1, Dictionary creation
Each key = > value pair of the dictionary is separated by colon, and each key value pair is separated by comma. The whole dictionary is included in curly brackets {}, with the format as follows:
1.Β _ dict={key:value} (common)
2. ...
Added by litarena on Sat, 12 Feb 2022 05:21:09 +0200
Module - definition and related use
modular
Classification: standard module, user-defined module, third-party module Function: meet specific purposes and needs; For example: network management, access, encryption processing, mathematical calculation, data analysis, image processing. How to construct a module: Standard Module - directly use the command import; Custom module - pla ...
Added by Ambush Commander on Sat, 12 Feb 2022 05:12:54 +0200
Valentine's Day Special: do what you want. Let love beans talk to you and celebrate Versailles Valentine's day~
I preface
Valentine's day, also known as St. Valentine's day or St. Valentine's day, is one of the traditional festivals in western countries and originated from Christianity. Nowadays, it has become a famous romantic festival all over the world, but people in different countries express their love in different ways.Valentine's Day ...
Added by John_wilson on Sat, 12 Feb 2022 04:44:17 +0200
Python common built-in functions - Notes
Reference 1: https://www.cnblogs.com/wujiaqing/p/10709207.html
abs()
all()
any()
bin()
bool()
bytearray()
callable()
chr()
dict()
dir()
divmod()
enumrate()
eval()
exec()
filter()
format()
float()
frozenset()
globals()
hasattr()
hash()
help()
hex()
id()
input()
int()
isinstance()
issubclass()
iter()
len()
list()
map()
max()
min()
next()
oct()
o ...
Added by surfsup on Sat, 12 Feb 2022 04:32:12 +0200