Skip to content

Commit ce75945

Browse files
committed
cleanup
1 parent fb3354e commit ce75945

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

src/smtml/feature_extraction.ml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -492,34 +492,3 @@ let cmd directory output_csv =
492492
match Rresult.R.join res with
493493
| Error (`Msg m) -> Fmt.failwith "%s" m
494494
| Ok () -> Fmt.pr "Done writing to %a\n%!" Fpath.pp output_csv
495-
496-
(* let cmd directory output_csv =
497-
let directory = Fpath.to_string directory in
498-
let output_csv = Fpath.to_string output_csv in
499-
let entries = read_marshalled_file directory in
500-
let oc = open_out output_csv in
501-
502-
(* en-tête CSV *)
503-
output_string oc (String.concat "," final_names ^ "\n");
504-
505-
List.iter
506-
(fun (solver_name, exprs, model, t) ->
507-
if not (List.is_empty exprs) then
508-
let feats = extract_feats_wtime exprs t in
509-
let row =
510-
List.map
511-
(fun name ->
512-
if String.equal name "solver" then solver_name
513-
else if String.equal name "model" then Bool.to_string model
514-
else
515-
let count = StringMap.find_def0 name feats in
516-
string_of_int count )
517-
final_names
518-
in
519-
let row = String.concat "," row ^ "\n" in
520-
(* Fmt.epr "pp row: %s@." row; *)
521-
output_string oc row )
522-
entries;
523-
524-
close_out oc;
525-
Fmt.pr "Done writing to %s\n%!" output_csv *)

0 commit comments

Comments
 (0)