close allclear allclcload x.txt; load y.txt; inputs = x';targets = y; % 创建一个模式识别网络(两层BP网络),同时给出中间层神经元的个数,这里使用20hiddenLayerSize = 20;net = patternnet(hiddenLayerSize); % 对数据进行预处理,这里使用了归一化函数(一般不用修改)% For a list of all processing functions type: help nn
最近在学习tf的神经网络算法,十多年没有学习过数学了,本来高中数学的基础,已经彻底还给数学老师了.所以我把各种函数.公式和推导当做黑盒子来用,理解他们能做到什么效果,至于他们是如何做到的,暂时不去深究,最多知道哪个公式的效果会比哪个更适合哪个场合. BP网络应该是最入门级的算法了. #用伪代码描述下大概如此 # 单层BP x = tf.placeholder(tf.float32,[None,256]) y = tf.placeholder(tf.float32,[None,10]) w = t
%% Machine Learning Online Class - Exercise 4 Neural Network Learning % Instructions % ------------ % % This file contains code that helps you get started on the % linear exercise. You will need to complete the following functions % in this exericse:
先贴几个链接: http://blog.csdn.net/abcjennifer/article/details/7639681 Rachel-Zhang的 http://blog.csdn.net/manji_lee/article/details/8922474 David G. Lowe的两篇标志性的文章分别叫 Object recognition from local scale-invariant features 和 Distinctive Image Features from
背景 最近处理行为学数据和fMRI数据,主要使用MATLAB.有一些常用的代码被自己重复使用,所以在此记录,以便于随时调取使用. 1.PVT原生mat文件→txt文件 遇到在处理一些被试的PVT数据时,有一些数据被存为原生的mat文件.因此需要使用以下代码得到txt文件. close all; clear all; clc; filename = [01,02,03,04,05,06,07,08,09,10,11,12]; for m = 1:12 if m < 10 fid=fopen(['0