1. Oliver Gu
  2. libsvm-ocaml


Oliver Gu  committed 4ee08e0

Fixed compilation error. Need to prefix sscanf with Scanf module under core.109.10.00.

  • Participants
  • Parent commits 2be9ae7
  • Branches master

Comments (0)

Files changed (1)

File examples/svm_cli.ml

View file
  • Ignore whitespace
 let read_scale_parameters file =
   let conv_line line =
-    sscanf line "%d %g %g" (fun _index min max -> min, max)
+    Scanf.sscanf line "%d %g %g" (fun _index min max -> min, max)
   In_channel.with_file file ~f:(fun ic ->
     match In_channel.input_line ic with
     | None -> failwith "no data"
     | Some line ->
-      let lower, upper = sscanf line "%g %g" Tuple2.create in
+      let lower, upper = Scanf.sscanf line "%g %g" Tuple2.create in
       let lines = In_channel.input_lines ic in
       let min_feats, max_feats =
         List.map lines ~f:conv_line