Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bench: Cleanup unused code #2496

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions bench/bench.ml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ let benchmark () =
let results = Analyze.merge ols instances results in
results

let nothing _ = Ok ()

type 'a result = (string, 'a) Hashtbl.t

type 'a results = (string, 'a result) Hashtbl.t
Expand All @@ -93,12 +91,6 @@ let json_of_ols ols =
| Some estimates -> `List (List.map (fun x -> `Float x) estimates)
| None -> `List []

let json_of_string_ols ols =
match ols with
| Some [x] -> `Float x
| Some estimates -> `List (List.map (fun x -> `Float x) estimates)
| None -> `List []

let json_of_ols_results ?name (results : Bechamel.Analyze.OLS.t results) :
Yojson.Safe.t =
let metrics_by_test = process_results results in
Expand Down
Loading