Lv.1
在 【海龟编辑器】意见反馈信箱(长期有效) 中回复
一个来自敌人内部的小老师过来的建议,如果后期可能的话,学visual code那样把控制台命令行的权限也给开了让孩子们能够使用命令行来完成相关的命令的运行。
2018-12-06T11:14:47 点赞:0
在 【优化方法】神经网络 中回复
帮你整理补一下运行效果,先是代码
import numpy as np
from matplotlib import pyplot as plt
import tqdm
data = np.array([[1,0,1],
[0,0,1],
[1,1,1],
[0,1,1],
[1,1,0]])
label = np.array([[1,0,1,0,1]]).T
np.random.seed(1)
def sigmod(x,der=False):
result = 1/(1+np.exp(-x))
if not der:
return result
else:
return x*(1-x)
lr = 0.1
l0 = 2*np.random.random((3,3))-1
l1 = 2*np.random.random((3,1))-1
for i in tqdm.tqdm(range(100000)):
out0 = sigmod(data.dot(l0))
out1 = sigmod(out0.dot(l1))
loss = np.sum((out1 - label) ** 2)
l1_c = np.dot(out0.T, (label - out1) * sigmod(out1, der=True))
l1 += l1_c*lr
l0 += np.dot(data.T,l1_c.T*sigmod(out0,der=True))*lr
print(out1
2018-12-13T11:41:58 点赞:0
在 【Python 不难】来呀!装酷呀! 中回复

如果你想下载速度快一些的话,建议你用清华源哦。
具体使用方式如下:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pillow(库的名字)
mac上面使用我们的pip3来安装,清华源的速度会更快哦:
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pillow(库的名字)
咱们在windows下打开命令行的办法呀,按下键盘上的Win+R:
临时使用咱们的清华源:
那么咱们就发现呐,这个运行的速度哇哇快:
今天的猫老祖分享先到这里吧~
2019-01-25T17:12:21 点赞:1
在 【Python 不难】来呀!装酷呀! 中回复
哈哈哈来,任君挑选:
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
note:新版ubuntu要求使用https源,要注意。
2019-01-25T18:34:27 点赞:1