Skip to content

Instantly share code, notes, and snippets.

@Wolfy42
Wolfy42 / ci_4_3.m
Created June 9, 2011 13:18 — forked from fdomig/ci_4_3.m
CI 4_3
%%%
% Feed forward with back propagation algorithm
%
% @param X ... all possible inputs
% @param Y ... all expected outputs
% @param T ... the network topology
% @param l ... the iteration limit for the error min. func.
% @returns W ... the optimal weight matrix
% @returns Ev ... the error dynamic vector
%%
@Wolfy42
Wolfy42 / ci_4_3.m
Created June 9, 2011 11:27 — forked from fdomig/ci_4_3.m
CI 4_3
%%%
% Feed forward with back propagation algorithm
%
% @param X ... all possible inputs
% @param Y ... all expected outputs
% @param T ... the network topology
% @param l ... the iteration limit for the error min. func.
% @returns W ... the optimal weight matrix
% @returns Ev ... the error dynamic vector
%%
@Wolfy42
Wolfy42 / ci_4_3.m
Created June 9, 2011 09:54
CI 4_3
clear all;
function y_i = ForwardProp(W, T, X)
n = length(T);
y_i = [X, zeros(1,n-length(X))];
for j= 3:n
s = 0;
for i = 1:n
if (T(i,j) == 1)
s = s + W(i,j)*y_i(i);