clear;clc;N=3000;Ex=0;En=1;He=0.1;CloudDrp = zeros(2,N); for i=1:N E_n = normrnd(En,He,1,1); %随机生成一个一行一列的以En为期望,以He为标准差的正态分布的数,这个数就是下一个正态分布的标准差 CloudD ...
分类:
其他好文 时间:
2018-11-17 13:10:20
阅读次数:
266
import numpy as np from sklearn.datasets import load_iris iris = load_iris() x = iris.data[:,1] y = np.zeros(150) def initcenter(x,k): #初始聚类中心数组 retur... ...
分类:
编程语言 时间:
2018-11-12 00:20:17
阅读次数:
208
1、折线图 import numpy as npimport matplotlib.pyplot as plt input_values = [1, 2, 3, 4, 5]s = [1, 4, 9, 16, 25] # 图标数据、线条粗细plt.plot(input_values, s, linew ...
分类:
编程语言 时间:
2018-11-11 16:00:31
阅读次数:
147
1. 用1阶至4阶Newton-Cotes公式计算积分 程序: function I = NewtonCotes(f,a,b,type) % syms t; t=findsym(sym(f)); I=0; switch type case 1, I=((b-a)/2)*(subs(sym(f),t, ...
分类:
其他好文 时间:
2018-11-10 23:58:24
阅读次数:
683
在matlab中,经常遇到画图问题,甚至,有时候需要把其他软件中的数据,导出来,用matlab处理。 此处给出,用matlab处理数据的一些简单方法。 参考资料: MATLAB多条曲画到一张图上 MATLAB plot画出多条不同颜色的曲线 ...
分类:
其他好文 时间:
2018-11-10 15:17:52
阅读次数:
382
### change ggplot strip coloursp <- ggplot(mpg, aes(displ, cty)) + geom_point() + facet_grid(drv ~ cyl)pg <- ggplot_gtable(ggplot_build(p))strip_both ...
分类:
其他好文 时间:
2018-11-10 10:43:00
阅读次数:
690
世界高峰数据可视化 (World's Highest Mountains) 参考:https://www.kaggle.com/alex64/d/abcsds/highest-mountains/let-s-climb ...
分类:
其他好文 时间:
2018-11-08 18:27:34
阅读次数:
270
plot.h plot.cpp QPointF pointf[10]; pen.setWidth(6); painter.setPen(pen); // 设置画笔 for (int i=0; i<10; ++i) { pointf[i].setX(2.0+i*10.0); pointf[i].set ...
分类:
其他好文 时间:
2018-11-05 16:26:14
阅读次数:
515
Practical Advice Using Open-Source Implementation We have learned a lot of NNs and ConvNets architectures It turns out that a lot of these NN are diff... ...
分类:
其他好文 时间:
2018-11-04 17:03:04
阅读次数:
120
前言在跑通了官网的mnist和cifar10数据之后,笔者尝试着制作自己的数据集,并保存,读入,显示。 TensorFlow可以支持cifar10的数据格式, 也提供了标准的TFRecord 格式,而关于 tensorflow 读取数据, 官网提供了3中方法 1 Feeding: 在tensorfl ...
分类:
其他好文 时间:
2018-11-04 16:12:25
阅读次数:
293