LeetCode -- string (python language)
LeetCode -- string (python language)
1, String
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)
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
Customize the dataset and teach you to make your own VOC data reader
Link from AI Studio project https://aistudio.baidu.com/aistudio/projectdetail/2432755
Project background
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 ...
Posted by Brad on Sat, 05 Mar 2022 09:42:50 +0100
Zero basis entry data mining - used car transaction price prediction Task2
The main task of Task 2 is data exploratory analysis
1, EDA introduction and purpose
Introduction:
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
Python Turtle drawing [difficulty 2 stars]: Rainbow (completed in five steps)
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
Another method of JSON serialization
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:
class Food(dict):
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
[Python skill] Excel data integration / splitting can be realized in ten minutes. Why does it take a day| Attached source code
Relevant documents
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
30 lines of Python code to realize 3D data visualization, which is very amazing
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
ssh+frp to achieve intranet penetration
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
Through the example, you can quickly understand the pad in 10 minutes_ sequence,pack_padded_sequence and pad_packed_sequence
preface
import torch
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