openml.runs
.initialize_model_from_trace¶
- openml.runs.initialize_model_from_trace(run_id: int, repeat: int, fold: int, iteration: int | None = None) Any ¶
Initialize a model based on the parameters that were set by an optimization procedure (i.e., using the exact same parameter settings)
- Parameters:
- run_idint
The Openml run_id. Should contain a trace file, otherwise a OpenMLServerException is raised
- repeatint
The repeat nr (column in trace file)
- foldint
The fold nr (column in trace file)
- iterationint
The iteration nr (column in trace file). If None, the best (selected) iteration will be searched (slow), according to the selection criteria implemented in OpenMLRunTrace.get_selected_iteration
- Returns:
- model