Skip to content
Snippets Groups Projects
Commit 20cd0fcf authored by Martin Beseda's avatar Martin Beseda
Browse files

FIX: added data-set normalization to the example net_test_1 to prevent 'nan'...

FIX: added data-set normalization to the example net_test_1 to prevent 'nan' results returned by Gradient descent method.
parent 243bdb3a
No related branches found
No related tags found
No related merge requests found
......@@ -141,5 +141,10 @@ int main() {
net.randomize_parameters();
optimize_via_gradient_descent( net, mse );
/* Normalize data to prevent 'nan' results */
ds.normalize();
net.randomize_parameters();
optimize_via_gradient_descent(net, mse);
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment