Hi, I'm trying to predict stock values(in this case, the closing value). In the end I want to achieve the same result as this example, Example
I will use the "close price" and its corresponding date, but I cannot figure out how to use "input" and "target" and what they mean.
% This script assumes these variables are defined:
x = simplefitInput; // t = simplefitTargets; % Create a Fitting Network
hiddenLayerSize = 10; net = fitnet(hiddenLayerSize,trainFcn); % setup Division of Data for Training, Validation, Testing
net.divideParam.trainRatio = 70/100; net.divideParam.valRatio = 15/100; net.divideParam.testRatio = 15/100; % Train the Network
[net,tr] = train(net,x); % Test the Network
y = net(x); e = gsubtract(t,y); performance = perform(net,t,y) % View the Network
%view(net)
If understand it correctly, x is the input of the system. But what is t ? So Im wondering: What kind of values do I give to x and t ?
Best Answer