导入本次任务所用到的包: import pandas as pd import numpy as np from scipy import stats import matplotlib.pyplot as plt from sklearn.model_selection import train_ ...
分类:
编程语言 时间:
2021-03-06 14:31:47
阅读次数:
0
数据创建 randint 创建随机整数array。 np.random.randint(10,size=(2,3)) randint(low, high=None, size=None, dtype='l') low为必选参数: 若有low与high,则返回两者之间的数据。[low, high)。 ...
分类:
其他好文 时间:
2021-03-03 12:17:41
阅读次数:
0
参考博客:https://blog.csdn.net/weixin_45665788/article/details/104919669 import matplotlib.pyplot as plt import numpy as np import tensorflow as tf # 载入随机 ...
分类:
其他好文 时间:
2021-03-01 14:06:36
阅读次数:
0
作者:HelloGitHub-小鱼干 前几天,“机智号” 所用的飞行软件框架 F´ 被 NASA 开源了,想看 F´ 这个嵌入式的代码不妨考虑下 Sourcetrail 这个神器,刚好它支持 C++,能让你快速 Get 这个飞行框架的代码体系。说到阅读源码学习,本周热点之一的 ziglings 便是 ...
分类:
其他好文 时间:
2021-02-23 14:28:37
阅读次数:
0
NumPy(Numerical Python)是Python中科学计算的核心库,支持大量的维度数组与矩阵运算,在数组处理上功能真的很强,在Python中调用numpy进行数组相关计算就很方便。 看图像处理相关代码的时候常常会遇到一些numpy相关语法,简洁高效,看不懂就影响阅读的质量与速度,这篇文章 ...
分类:
编程语言 时间:
2021-02-22 12:37:15
阅读次数:
0
numpy.resize 函数返回指定大小的新数组。 如果新数组大小大于原始大小,则包含原始数组中的元素的副本。 numpy.resize(arr, shape) 参数说明: arr:要修改大小的数组 shape:返回数组的新形状 个人理解:按照shape的形状拓展arr,不够的依次按原数组单个元素 ...
分类:
编程语言 时间:
2021-02-22 11:50:23
阅读次数:
0
numpy.stack 函数用于沿新轴连接数组序列,格式如下: numpy.stack(arrays, axis) 参数说明: arrays相同形状的数组序列 axis:返回数组中的轴,输入数组沿着它来堆叠 1 import numpy as np 2 3 a=np.array([[1,2],[3, ...
分类:
其他好文 时间:
2021-02-20 12:05:27
阅读次数:
0
import numpy as np df = np.arange(0,210,10) s = map ( str ,df) s2 = [] for i in s: s2.append(i) print(s2) 结果: ['0', '10', '20', '30', '40', '50', '60' ...
分类:
其他好文 时间:
2021-02-20 12:04:01
阅读次数:
0
import pandas as pd import numpy as np if __name__ == '__main__': pd.options.display.max_columns = 999 orders = pd.read_excel("C:/Users/18124/Desktop/ ...
分类:
其他好文 时间:
2021-02-19 13:19:32
阅读次数:
0
from pandas import Series import numpy as np data = Series(np.random.randn(10), index=[['a','a','a','b','b','b','c','c','d','d'], [1,2,3,1,2,3,1,2,2,3 ...
分类:
其他好文 时间:
2021-02-17 15:05:05
阅读次数:
0