Mavryk_benchmark.Codegentype solution = {map : float Free_variable.Map.t;scores_list : ((string * Namespace.t) * Inference.scores) list;}val get_codegen_destination : Registration.model_info -> string optionget_codegen_destinations model_info will return the generated code destination in which given model is used
val solution_encoding : solution Mavryk_base.TzPervasives.Data_encoding.tval pp_solution : Stdlib.Format.formatter -> solution -> unitval load_solution : string -> solutionLoad a solution form a binary or JSON file
val save_solution : solution -> string -> unitSave the given solution to binary and JSON files
val codegen :
Model.packed_model ->
solution ->
Costlang.transform ->
Namespace.t ->
codeBuild the cost function codes of the specified model
val codegen_models :
(Namespace.t * Registration.model_info) list ->
solution ->
Costlang.transform ->
(string option * code) listcodegen_models models solution transform generates the cost function codes of multiple models.
val comment : string list -> codeMake a comment
Make a toplevel module (an .ml file) from the given list of codes
val pp_code : Stdlib.Format.formatter -> code -> unitval pp_module : Stdlib.Format.formatter -> module_ -> unitval get_name_of_code : code -> string optionGet the function name of code if it has
module Parser : sig ... end