![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Numpy
AI_Younger_Man
这个作者很懒,什么都没留下…
展开
-
numpy.linspace使用详解
numpy.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None)Parameters(参数): start : 序列的起始点.stop : 序列的结束点num : 生成的样本数,默认是50。必须是非负。endpoint : 如果True,'stop'是最后一个样本。否则,它不包括在内。默认为True...原创 2020-04-24 18:07:36 · 415 阅读 · 0 评论 -
numpy.poly1d()函数学习
1、np.poly1d()此函数有两个参数:参数1:为一个数组,若没有参数2,则生成一个多项式,例如:p = np.poly1d([2,3,5,7])print§ ==>>2x3 + 3x2 + 5x + 7 数组中的数值为coefficient(系数),从后往前 0,1,2.。。为位置书的次数 参数2:若参数2为True,则表示把数组中的值作为根,然后反推多项...原创 2020-04-24 17:43:05 · 8844 阅读 · 0 评论 -
python高级语法
lambda表达式add_lambda = lambda x, y : x + yadd_lambda(3,4)#python中三元运算符condition = Trueprint(1 if condition else 2)map函数# import jieba# seg_list = jieba.cut("人工智能包括机器学习、深度学习、神经网络和大数据分析等等", cut...原创 2020-03-01 13:47:25 · 160 阅读 · 0 评论