猫史档案馆


赵墨涵

赵墨涵

Lv.1

获赞:2收藏:0浏览:74作品收藏:2
回复帖子评论
上一页1 页 / 共 1下一页

【趣玩C++】CC栏目开始啦! 中回复

喵P程序喵前来打call,如果奶茶想开cpp的栏目,持续关注给你挑毛病了哦~

2018-10-16T15:34:17 点赞:0

【海龟编辑器】意见反馈信箱(长期有效) 中回复

一个来自敌人内部的小老师过来的建议,如果后期可能的话,学visual code那样把控制台命令行的权限也给开了让孩子们能够使用命令行来完成相关的命令的运行。

2018-12-06T11:14:47 点赞:0

【编程小课堂】关于克隆体,你知多少? 中回复

克隆体即将征服世界~!!!!

2018-12-13T11:01:52 点赞:0

【编程一小时】用文本编辑器搭建简易开发环境 中回复

装完mingw建议直接在windows上用visual studio code。

2018-12-13T11:34:41 点赞: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 

center_image

2018-12-13T11:41:58 点赞:0

【Python 不难】来呀!装酷呀! 中回复

来了~哈哈哈哈

2019-01-20T12:47:59 点赞:2

【Python 不难】来呀!装酷呀! 中回复

教程写的真好呀~向你学习,你的猫老祖过年写点东西哈哈哈。

2019-01-25T16:55:44 点赞:0

【Python 不难】来呀!装酷呀! 中回复

emotion_编程猫_点赞

如果你想下载速度快一些的话,建议你用清华源哦。

具体使用方式如下:

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:

center_image

临时使用咱们的清华源:

center_image

那么咱们就发现呐,这个运行的速度哇哇快:

center_image

今天的猫老祖分享先到这里吧~

2019-01-25T17:12:21 点赞:1

【Python 不难】来呀!装酷呀! 中回复

哈哈哈来,任君挑选:

center_image

清华: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