02 2019 档案

摘要:``` ''' 数据集:伪造数据集(两个高斯分布混合) 数据集长度:1000 运行结果: the Parameters set is: alpha0:0.3, mu0:0.7, sigmod0: 2.0, alpha1:0.5, mu1:0.5, sigmod1:1.0 the Parameters 阅读全文
posted @ 2019-02-26 11:00 chenxiangzhen 阅读(6735) 评论(2) 推荐(4)
摘要:Python程序 ''' 数据集:Mnist 训练集数量:60000(实际使用:10000) 测试集数量:10000(实际使用:1000) 层数:40 运行结果: 正确率:97% 运行时长:65m ''' import time import numpy as np def loadData(fil 阅读全文
posted @ 2019-02-21 16:16 chenxiangzhen 阅读(2380) 评论(1) 推荐(0)
摘要:``` import numpy as np import matplotlib.pyplot as plt from sklearn.datasets.samples_generator import make_classification def initialize_params(dims): w = np.zeros((dims, 1)) b = 0 retur... 阅读全文
posted @ 2019-02-18 13:55 chenxiangzhen 阅读(410) 评论(0) 推荐(0)
摘要:``` import numpy as np from sklearn.datasets import load_diabetes from sklearn.utils import shuffle import matplotlib.pyplot as plt def initialize_params(dims): w = np.zeros((dims, 1)) b = 0... 阅读全文
posted @ 2019-02-18 10:34 chenxiangzhen 阅读(554) 评论(0) 推荐(0)
摘要:``` import numpy as np import sys def conv_(img, conv_filter): filter_size = conv_filter.shape[1] result = np.zeros((img.shape)) # 循环遍历图像以应用卷积运算 for r in np.uint16(np.arange(filter_s... 阅读全文
posted @ 2019-02-15 17:43 chenxiangzhen 阅读(4109) 评论(0) 推荐(2)