资源简介
machine-learning-ex3(编程作业:多元分类与神经网络)吴恩达机器学习
代码片段和文件信息
function [h display_array] = displayData(X example_width)
%DISPLAYDATA Display 2D data in a nice grid
% [h display_array] = DISPLAYDATA(X example_width) displays 2D data
% stored in X in a nice grid. It returns the figure handle h and the
% displayed array if requested.
% Set example_width automatically if not passed in
if ~exist(‘example_width‘ ‘var‘) || isempty(example_width)
example_width = round(sqrt(size(X 2)));
end
% Gray Image
colormap(gray);
% Compute rows cols
[m n] = size(X);
example_height = (n / example_width);
% Compute number of items to display
display_rows = floor(sqrt(m));
display_cols = ceil(m / display_rows);
% Between images padding
pad = 1;
% Setup blank display
display_array = - ones(pad + display_rows * (example_height + pad) ...
pad + display_cols * (example_width + pad));
% Copy each example into a patch on the display array
curr_ex = 1;
for j = 1:display_rows
for i = 1:display_cols
if curr_ex > m
break;
end
% Copy the patch
% Get the max value of the patch
max_val = max(abs(X(curr_ex :)));
display_array(pad + (j - 1) * (example_height + pad) + (1:example_height) ...
pad + (i - 1) * (example_width + pad) + (1:example_width)) = ...
reshape(X(curr_ex :) example_height example_width) / max_val;
curr_ex = curr_ex + 1;
end
if curr_ex > m
break;
end
end
% Display Image
h = imagesc(display_array [-1 1]);
% Do not show axis
axis image off
drawnow;
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1502 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\displayData.m
文件 3838 2018-10-21 09:53 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\ex3.m
文件 7511764 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\ex3data1.mat
文件 79592 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\ex3weights.mat
文件 3015 2018-10-21 12:04 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\ex3_nn.m
文件 8749 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\fmincg.m
文件 1624 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib\jsonlab\AUTHORS.txt
文件 3862 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib\jsonlab\ChangeLog.txt
文件 881 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib\jsonlab\jsonopt.m
文件 1551 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib\jsonlab\LICENSE_BSD.txt
文件 18732 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib\jsonlab\loadjson.m
文件 15574 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib\jsonlab\loadubjson.m
文件 771 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib\jsonlab\mergestruct.m
文件 19369 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib\jsonlab\README.txt
文件 17462 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib\jsonlab\savejson.m
文件 16123 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib\jsonlab\saveubjson.m
文件 1094 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib\jsonlab\varargin2struct.m
文件 1195 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib\makeValidFieldName.m
文件 5562 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib\submitWithConfiguration.m
文件 2801 2018-10-20 08:15 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lrCostFunction.m
文件 3256 2018-10-20 10:32 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\oneVsAll.m
文件 1324 2018-10-21 11:52 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\predict.m
文件 1764 2018-10-21 11:20 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\predictOneVsAll.m
文件 137 2018-10-19 11:56 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\sigmoid.m
文件 1567 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\submit.m
文件 810219 2018-10-21 12:05 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3.pdf
目录 0 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib\jsonlab
目录 0 2017-03-13 18:40 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3\lib
目录 0 2018-10-21 12:05 machine-learning-ex3(编程作业:多元分类与神经网络)\ex3
目录 0 2018-10-20 09:01 machine-learning-ex3(编程作业:多元分类与神经网络)
............此处省略3个文件信息
相关资源
- 斯坦福ML公开课笔记13-15
- 中科大机器学习读书报告
- Interpretable Machine Learning(可解释机器
- 知识图谱在司法领内的尝试与应用
- 模式识别与机器学习 中文(最新)
- 台大教授 李宏毅 《一天搞懂深度学习
- 机器学习 Tom M. Mitchell 非扫描版 完整
- 机器学习实战 带完整书签 中文版 p
- 数据挖掘实用机器学习技术 Data Mini
- 斯坦福 CS229 机器学习讲义中文版 1~
- Mastering Machine Learning with R 2nd Edition-
- Advances in Financial Machine Learning-Wiley(
- 模式识别与机器学习中文版.pdf
- 机器学习实战数据集
- 机器学习算法-名企历年校招面试笔试
- Andrew ng机器学习课程笔记带标签
- 2018新书 深入浅出数据科学 全彩中文
- 基于机器学习的Pm2.5图像分析及估计
- Introduction to Time Series and Forecasting.pd
- 手写数字训练样本集
- 机器学习知识学习总结.pdf
- 机器学习个人笔记完整版v5.29-A4打印版
- coursera机器学习每周测验完整版,包括
- 斯坦福机器学习课后答案和个人笔记
- 机器学习中文版PDF
- Spark机器学习.pdf
- 机器学习-白板推导系列-前17讲笔记
- 机器学习实战 中文文字版.zip
- PRML模式识别与机器学习
- 机器学习PPT65306
评论
共有 条评论