Commits

Anonymous committed 44aa767

hidoi bug: w = w + tau * x, not tau*w

  • Participants
  • Parent commits cf6c0af

Comments (0)

Files changed (1)

   let rec test_ w =
     try
       let sign,x = parse_line (input_line input_in) in
-      Vector.print_vector x;
-      Vector.print_vector w;
       let y_bar = judge w x in
       let tau = f_tau x (loss y_bar sign) in
       update_result r y_bar sign;
-      Printf.printf "(y_bar sign)=(%d, %d)\n" y_bar sign;
       test_ (Vector.add w (Vector.s_prod tau x))
     with
 	End_of_file ->