ex-7: fixed some errors
This commit is contained in:
parent
59fba30c12
commit
e3fcd83f37
@ -95,7 +95,7 @@ int main(int argc, char **argv) {
|
||||
* dataset to get an approximate
|
||||
* solution in `iter` iterations.
|
||||
*/
|
||||
// fputs("# Perceptron \n\n", stderr);
|
||||
fputs("# Perceptron \n\n", stderr);
|
||||
w = percep_train(signal, noise, opts.iter, &cut);
|
||||
}
|
||||
else {
|
||||
@ -107,7 +107,6 @@ int main(int argc, char **argv) {
|
||||
/* Print the results of the method
|
||||
* selected: weights and threshold.
|
||||
*/
|
||||
fprintf(stderr, "\n* i: %d\n", opts.iter);
|
||||
fprintf(stderr, "* w: [%.3f, %.3f]\n",
|
||||
gsl_vector_get(w, 0),
|
||||
gsl_vector_get(w, 1));
|
||||
|
Loading…
Reference in New Issue
Block a user