随笔分类 -  python学习

Heart
摘要:笔芯 -- (利用python 绘图工具turtle 进行动态心形的绘制) profession to you: import time import turtle time.sleep(1) # 画心形圆弧 def hart_arc(): for i in range(200): turtle.r 阅读全文
posted @ 2020-02-01 15:35 xidian_mao 阅读(183) 评论(0) 推荐(0)
PyTorch-LSTM
摘要:1 import torch 2 import torch.nn as nn 3 4 torch.random.manual_seed(10) 5 6 input_size = 2 # 输入向量维度 7 hidden_size = 4 # 隐层层维度 8 num_layers = 2 # 层数 9 阅读全文
posted @ 2019-12-28 19:55 xidian_mao 阅读(1578) 评论(0) 推荐(0)
百科简单的爬虫
摘要:百科爬虫 特点:根据关键词的特征 寻找与关键词最相关的百科的实体 ==| Fighting ~~ 阅读全文
posted @ 2019-11-29 19:33 xidian_mao 阅读(297) 评论(0) 推荐(0)
Numpy 学习
摘要:I'm so hard (=; Time fies so fast ~ there is no time left for you to sad. ( ~ my poor english) "understand AXIS in NUMPY ~" 阅读全文
posted @ 2019-11-13 21:37 xidian_mao 阅读(134) 评论(0) 推荐(0)
多元线性回归(用numpy和tensorflow分别实现)
摘要:...以前所有机器的学习代码都是看别人写的, 这个算是第一个自己独立写出的代码吧(虽然很简单 加油~~~ 阅读全文
posted @ 2019-08-05 15:14 xidian_mao 阅读(649) 评论(0) 推荐(0)
numpy 笔记
摘要:# url = 'https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data'# iris = np.genfromtxt(url, delimiter=',', dtype='object')1 argsort( 阅读全文
posted @ 2019-07-30 22:01 xidian_mao 阅读(190) 评论(0) 推荐(0)
python---map 用法 [转载]
摘要:转载链接==https://www.cnblogs.com/lincappu/ 阅读全文
posted @ 2018-10-29 09:08 xidian_mao 阅读(190) 评论(0) 推荐(0)
python学习1 ---range()函数
摘要:奇怪的现象 在paython3中 得出的结果是 range(0,10) ,而不是[0,1,2,3,4,5,6,7,8,9] ,为什么呢? 官网原话: In many ways the object returned by range() behaves as if it is a list, but 阅读全文
posted @ 2018-07-28 11:12 xidian_mao 阅读(275) 评论(0) 推荐(0)