资源简介
这里有人工神经网络与机器学习的课后答案、上机实验程序、课后PPT等等,还有一些乱七八杂的。
代码片段和文件信息
function [XYXt]=generate_two_moons(rwdNseeddisplay)
% GENERATE_TWO_MOONS
% INPUTS:
% r: radius of 2 moons
% w: width of the 2 moons
% d: distance between the two moons
% N: number of samples to generate in each moon
% display: 1 shows the 2moons after generation 0 no display
%
% OUTPUTS:
% X: 2N X 2 matrix
% Y: 2N X 1 vector -- +1 for top moon -1 for bottom moon
% Xt: uniformly spaced points on a grid
%
% Vikas Sindhwani (vikass@cs.uchicago.edu)
% top moon
rand(‘seed‘seed);
r = r+w/2;
% randomly pick radial coordinate between r-w and r
R=(r-w)*ones(N1) + rand(N1)*w;
% randomly pick the angular coordinate
theta=rand(N1)*pi;
X=[R.*cos(theta) R.*sin(theta)];
Y=ones(N1);
% bottom moon
% randomly pick radial coordinate between r-w and r
R=(r-w)*ones(N1) + rand(N1)*w;
% randomly pick the angular coordinate
theta=pi+rand(N1)*pi;
% move x coordinate by y coordinate down by d
del_x=r-(w/2);
del_y=-d;
x=[R.*cos(theta)+del_x R.*sin(theta)+del_y]
y=-ones(N1);
X=[X;x];
Y=[Y;y];
r=r-w/2;
if display==1
plot(X(Y==11)X(Y==12)‘r+‘‘MarkerSize‘8); hold on;
plot(X(Y==-11)X(Y==-12)‘bx‘‘MarkerSize‘8);
axis tight;
axis equal;
title([‘2 moons dataset : r=‘ num2str(r) ...
‘ w=‘ num2str(w) ‘ d=‘ num2str(d) ‘ N=‘ num2str(N)]);
end
xmin=min(X(:1));
xmax=max(X(:1));
ymin=min(X(:2));
ymax=max(X(:2));
[xy] = meshgrid(xmin:(xmax-xmin)/50:xmaxymin:(ymax-ymin)/50:ymax);
Xt=[reshape(xprod(size(x))1) reshape(yprod(size(y))1)];
相关资源
- 百面机器学习:算法工程师带你去
- 百面机器学习.pdf
- 数据挖掘 实用机器学习工具与技术
- 车牌识别训练图库最全合集
- 人工智能书籍合集
- 吴恩达斯坦福机器学习课件pptx(完整
- 机器学习之路——Caffe、Keras、scikit
- 国科大机器学习课程课件
- 《深度学习技术图像处理入门》_杨培
- Hands-On Machine Learning with Scikit-Learn &
- 第一本无人驾驶技术书.刘少山(高清
- 《机器学习实战:基于Scikit-Learn和T
- 神经网络与机器学习+科学计算中的蒙
- 基于UCI中Car Evaluation数据集的分类、回
- 机器学习4-多元线性回归:数据集与
- 中国科学技术大学-机器学习与知识发
- 中国科学院大学国科大机器学习与应
- 国科大模式识别与机器学习2016-2017试
- MSET算法原理
- 机器学习技术在现代农业气象中的应
- 山东大学软工机器学习限选课概念总
- 机器学习——疫情分析.zip
- 国科大 模式识别与机器学习 2018-201
- 国科大-2017-2018模式识别与机器学习期
- Hadoop + Spark 大数据巨量分析与机器学
- 决策树来实现泰坦尼克生存情况
- 中国科学院大学2016机器学习试卷答案
- 国科大模式识别与机器学习2015-2016试
- 人工神经网络及其应用含代码
- 人工神经网络水果识别
评论
共有 条评论