machine leanring 笔记 octave命令笔记
来源于coursea 的公开课
A*B 一般意义的矩阵相乘
A.*B矩阵各位相乘
A.^2 A矩阵的每个数平方
1./A 对A矩阵的各位取倒
.表示对每一项都如此操作
log (A)
exp(A)
abs(A)
-A th
v+ones(length(v),1) add vector of all ones to v
or v+1
A' is a transpose
max(A) max vluae of a
[max,ind]=max(a) the first are the value,and the second is index
a<3 comparsion for each element in matrix
fina(a<3) tell me which element is less than 3
magic function return a magic matrix
sum(A)
prod meand product (乘积 )
ceil(A)
floor()
max(rand(3),rand())
max(a,[],1) max of each colom
max(a,[],2) max of each row
A(:) every element in a vector
sum(A,1) sum of 1 colum of Ai
sum(A,2) sum of each row of A
flipud(A) A的山下颠倒
plot(x,y) 以第一个为横轴,第二个为纵轴绘图
hold on
plot(x,y,'r') 追加内容
xlebel("")
ylebel("")
title("")
print -dpng "my.png" save as a file in png format
figure(1);plot (t,y1) 分割子图
axis([0.5 1 -1 1]) x range form 0.5 to 1 t range from -1 to 1
clf clear the figure
imagicesc(A) 生成彩色块图
colorbar 彩色边栏对应图
colormap gray 灰白度图 使用 colormap("list“) look for what's avaliable
zero(n,m) return a matrix that nXm elemetary are the 0
for i=1:10,
code
end;
indecse=1:10
for i=indecs the same as above
exit
quit
function y=mfunc(x)
y=x^2
addpath('d:\ml')
function [y1,y2]=mcun1(x)
return multipule values
好像必须用单引号
theta regularition 时候不考虑theta0 ;
nn grad 的时候 g(Z1) 我第一次将 A2带入g得不到正确的结果
When training neural networks, it is important to randomly initialize the parameters for symmetry breaking
2One effective strategy for choosing init is to base it on the number of units in the network. A good choice of init is init = √6/(√Lin+Lout), where Lin = sl and Lout = sl+1 are the number of units in the layers adjacent to Θ(l
mu = mean(X);
X_norm = bsxfun(@minus, X, mu);
sigma = std(X_norm);
X_norm = bsxfun(@rdivide, X_norm, sigma);
bsxfun 函数的作用
plot 函数只在vector相等时画图 不相等会报错,也不绘图。
machine leanring 笔记 octave命令笔记的更多相关文章
- Linux 常用命令笔记
Linux 常用命令笔记 1. locate locate:用来定位文件的位置,如:locate a.txt 但是这个命令有延迟,也就是新建的文件不一定能搜索到,如果非要找到新建的文件可以使用 upd ...
- memcached学习笔记——存储命令源码分析下篇
上一篇回顾:<memcached学习笔记——存储命令源码分析上篇>通过分析memcached的存储命令源码的过程,了解了memcached如何解析文本命令和mencached的内存管理机制 ...
- memcached学习笔记——存储命令源码分析上篇
原创文章,转载请标明,谢谢. 上一篇分析过memcached的连接模型,了解memcached是如何高效处理客户端连接,这一篇分析memcached源码中的process_update_command ...
- MOOS学习笔记3——命令行
MOOS学习笔记3--命令行 例程 /** * @code A simple example showing how to use a comms client问问怎么样 */ #include &q ...
- Linux常用命令 笔记
Linux常用命令 笔记 一.文件处理命令 1. ls命令:显示目录文件 -a 显示所有文件,包括隐藏文件.(all) ...
- 《linux就该这么学》第三节课 第二节命令笔记
命令笔记 (随笔原创,借鉴请修改) linux系统中一切都是文件 2.4 系统状态的命令: ifconfig : 查看系统网卡信息,包括网卡名称,ip地址,掩码,mac地址,收到数据包大 ...
- 【山外笔记-SVN命令】svnlook命令详解
本文打印版问文件下载地址 [山外笔记-SVN命令]svnlook命令详解-打印版.pdf 一.命令简介 svnlook是检验Subversion版本库不同方面的命令行工具,不会对版本库有任何修改,只是 ...
- 【山外笔记-SVN命令】svn命令详解
本文打印版文件下载地址 [山外笔记-SVN命令]svn命令详解-打印版.pdf 一.命令简介 svn命令用于Subversion命令行客户端,执行svn相关的操作. 二.命令语法 1.svn语法: ( ...
- [读书笔记]C#学习笔记八:StringBuilder与String详解及参数传递问题剖析
前言 上次在公司开会时有同事分享windebug的知识, 拿的是string字符串Concat拼接 然后用while(true){}死循环的Demo来讲解.其中有提及string操作大量字符串效率低下 ...
随机推荐
- 停掉Linux固定的进程
ps -ef | grep php 查看进程ID,和信息 kill -s 9 1827 相关命令 ps -ef , ps -aux , pgrep php ,
- JS中两个感叹号!!的意义
var foo = true; console.log(!foo); // false console.log(!!foo); // true 两个 !! 就是 非非 如果值为boolean值 两个感 ...
- Disconf
通常我们会做如下配置:(disconf 2.6.21) <!-- 一次扫描 --> <bean id="disconfMgrBean" class="c ...
- Django 之 ForeignKey、ManyToMany的访问方式
1.ForeignKey 情况I: from django.db import models class Blog(models.Model): pass class Entry(models.Mod ...
- [转]云计算研究必备——精典Google论文
Google云计算技术奠定其在业界的领先地位,收集经典云计算技术公开文章供大家研究学习: 01)GFS-The Google File System 02) Bigtable - A Distribu ...
- [转载]《民航科技》2012年4月专家论坛:程延松《关于中国民航SWIM框架及技术实现探讨》
专家介绍:程延松,现任成都民航空管发展有限公司总经理,理学博士,高级工程师,长期从事空管技术研究和产品研发工作,作为课题负责人,参与了国家863计划.国家科技支撑计划.国家空管委重点课题.民航局重点课 ...
- ZAM 3D 制作3D动画字幕 用于Xaml导出
原地址-> http://www.cnblogs.com/yk250/p/5662788.html 介绍:对经常使用Blend做动画的人来说,ZAM 3D 也很好上手,专业制作3D素材的XAML ...
- 初识ios自动化(一)
Appium进行自动化测试有两个好处: 1. Appium在不同平台中使用了标准的自动化APIs,所以在跨平台时,不需要重新编译或者修改自己的应用. 2. Appium支持Selenium WebDr ...
- 《JS高程》中的正则的复杂模式的总结
复杂模式: *分组: var reDogDog=/dogdog/g;---------------var reDogDog=/(dog){2}/g; *引用:(注意带括号和不带括号) var sMat ...
- cs107
基本类型:bool,char,short,int,long,float,double 对于char,short,int,long: 多字节类型赋值给少字节类型,对低字节的细节感兴趣,位模式拷贝. 少字 ...