In practice, we often encounter the problem of array splicing. concatenate based on numpy library is a very useful array operation function.
1,concatenate((a1, a2, … ), axis=0) details of official documents
concatenate((a1, a2, ...), axis=0)
Join a sequence of arrays along an existing axis.
Added by Christian B. on Tue, 05 May 2020 23:47:35 +0300
Grouping and aggregation
1. GroupBy object
·Parameters in the groupedby function:
GroupBy object group iteration = = = "traversal"
Other grouping methods
Group and align
Statistical calculation yao differential aggregation aggreg ...
Added by JCF22Lyoko on Fri, 13 Mar 2020 14:49:33 +0200
Pytorch learning notes (5) -- dimensional transformation of pytorch Foundation
Add / delete dimensions - squeeze / unssqueeze
Dimension extension - Expand/repeat
Dimension transpose ---- transpose/t/permute
The usage of view is basically the same as ...
Added by swizzer on Sun, 02 Feb 2020 12:46:14 +0200
matplotlib Tutorial notes
Before we start the tutorial, we need to understand the cycle module
from __future__ import print_function
from cycler import cycler
color_cycler = cycler(color=["r", "g", "b"]) #You can create a cycle object with cycle
Added by p0pb0b on Sun, 10 Nov 2019 17:48:45 +0200
Definition and Creation of Functions Function is the basic program structure provided by Python to maximize code reuse and minimize code redundancy; it allows programmers toComplex systems are decomposed into manageable components. Four functions can be created in Python:Global functions: defined in templatesLocal functions: nested in oth ...
Added by sayedsohail on Sun, 14 Jul 2019 21:58:02 +0300
argparse is a library for parsing command-line options, parameters, and subcommands
Source code comes from Lib/argparse.py
1. Make it easy for users to write command lines
2. argparse knows how to parse these parameters from sys.argv for the parameters required by the program.
3. Aiming at the invalid parameters given to t ...
Added by lrdaramis on Sat, 15 Jun 2019 03:40:23 +0300