https://matplotlib.org/gallery/index.html
import matplotlib.font_manager as fm
import matplotlib.pyplot as plt
plt.title("折线图进阶",fontproperties="simhei")
or
plt.rcParams[‘font.sans-serif‘]=[‘SimHei‘]
print(int(str(i)+str(j)+str(k)),end=‘ ‘)
min = x if x<y else y
0.4-0.3 == 0.1 #deviation
math.isclose(0.4-0.3,0.1)
plt.legend(loc=‘best‘)
plt.legend(loc="upper right",fontsize=8,borderaxespad=0.3)
https://scikit-learn.org/stable/index.html
LibSVM: https://www.csie.ntu.edu.tw/~cjlin/libsvm/
SVM-Light: http://svmlight.joachims.org/
Liblinear:https://www.csie.ntu.edu.tw/~cjlin/liblinear/
valid:
http://ntur.lib.ntu.edu.tw/bitstream/246246/20060927122847351581/1/libsvm.pdf
PaddlePaddle: https://github.com/PaddlePaddle/Paddle
Caffe(image): https://github.com/BVLC/caffe
Tensorflow(C++): https://github.com/tensorflow/tensorflow
keras(Python): https://github.com/fchollet/keras
PARL: https://github.com/paddlepaddle/parl
DQN, DDPG, PPO, A2C
https://pan.baidu.com/s/1t_mBGiwre7eGTio-0MRqmQ
4efy
upgrade pip : python -m pip install --upgrade pip
https://github.com/aleju/imgaug
relation between words --decoder
(r’D:\python\image.jpg‘)
\
recognization
install:
easy_install jieba
or pip install jieba
or pip3 install jieba
python setup.py install
? install: python -m pip intall --user numpy
1.Create a new environment:
? conda create --name <env_name> <package_name>
? example:
? conda create --name python3 python3.7
2.List all envs
? conda info --envs
3.activate/del environment
? conda activate python3
? conda deactivate
? conda remove --name python3 --all
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
? conda install numpy
? conda remove numpy
? conda remove --name <env_name> <package_name>
conda search --full-name pandas
conda list
from itertools import *
characters = ‘1234‘
for item in combinations(characters,3):
print(item,end=‘ ‘)
print(‘\n‘+‘=‘*20)
for item in permutations(characters,3):
print(item,end=‘ ‘)
shutil
import random
random.choice(‘a‘,‘b‘,‘c‘)
random.sample(range(100),10) # sampling without replacement
random.random() # random float 0-1
random.randrange(6) # random integer chosen from range(6)
原文:https://www.cnblogs.com/nan0121/p/12972470.html