LeetCode -- string (python language)
1.1 string definition
A string is a concatenation of a series of characters. The string can be traversed, and each traversal is a character.
1.2 string matching
First, we call the string to be matched (long) as the main string, and the string to be matched (short) as the sub string (pattern st ...
Posted by deadimp on Sat, 05 Mar 2022 11:50:54 +0100
LeetCode problem brushing -- dynamic programming (python language)
1, Dynamic programming
1.1 basic concepts
Dynamic programming algorithms are usually used to solve problems with some optimal properties. In such problems, there may be many feasible solutions. Each solution corresponds to a value. We want to find the solution with the optima ...
Posted by Thomisback on Sat, 05 Mar 2022 11:46:18 +0100
Link from AI Studio project https://aistudio.baidu.com/aistudio/projectdetail/2432755
I recently found that there was no good example when I read the resnet50+FPN version of Faster-RCNN when I was preloading and loading data, when I read the class loaded by paddlepaddle's official data.
So I did this today, how to make a d ...
The main task of Task 2 is data exploratory analysis
1, EDA introduction and purpose
EDA (exploratory data analysis) refers to a data analysis method that explores the existing data under as few a priori assumptions as possible and explores the structure and law of the data by means of drawing, index, equation fitting, calculat ...
Posted by apervizi on Sat, 05 Mar 2022 06:48:52 +0100
I like turtle drawing, because a little change in the code will always bring unexpected surprises.
Some cases that make me excited are shared with you and cherished to myself.
——Crawler on Python Teaching Road
The rainbow is so beautiful and moving that it spans from one end of the earth to the other, like a ring woven by f ...
Posted by ridgerunner on Sat, 05 Mar 2022 05:46:54 +0100
I said three methods of JSON serialization in Python yesterday.
Finally, I mentioned a method that can not only be directly JSON, but also be serialized in list, map or other uncontrollable frameworks. This is the following:
def __init__(self, name, origin, calories, price):
dict.__init__(self, name=name, origin=origin ...
Posted by scritpkid on Sat, 05 Mar 2022 05:46:10 +0100
Little buddy who wants to learn Python can pay attention to the official account of Xiaobian [Python journal]. There are many resources for whoring for nothing, ha. I will update the little knowledge of Python from time to time!! A buddy who needs source code can reply to Excel form in official account. Python source code, p ...
Posted by redesigner on Sat, 05 Mar 2022 04:44:53 +0100
Review 2D mapping
Use the Seibel curve to make a 2d graph. This figure is realized through the Seibel curve with Path based on Matplotlib. Friends who are interested in the Seibel curve can have an in-depth understanding. In Matplotlib, figure is the canvas, axes is the drawing area, and fig.add_subplot(),plt. The subplot () method can create ...
Posted by josh_mcqueen on Sat, 05 Mar 2022 04:44:18 +0100
1, Introduction to frp
A high-performance reverse proxy application that can be used for intranet penetration. It supports TCP, UDP, HTTP and HTTPS protocols.
Official documents: https://gofrp.org/docs/
2, Configuration steps
1. Configure ssh connection preparation
Server: you need a server that can directly access the external network ...
Posted by vidyashankara on Sat, 05 Mar 2022 04:32:33 +0100
import torch.nn as nn
from torch.nn.utils.rnn import pad_sequence
from torch.nn.utils.rnn import pack_padded_sequence
from torch.nn.utils.rnn import pad_packed_sequence
Notice utils. Above RNN, have you? These functions are "usually" used for RNN related processing. So you have to understand some standard conc ...
Posted by shaitan on Sat, 05 Mar 2022 03:31:36 +0100