elliptic_toolkit.log_parser module
- elliptic_toolkit.log_parser.trim_hyperparameter_results(df)[source]
Return a DataFrame with only columns that have more than one unique value.
- elliptic_toolkit.log_parser.parse_search_cv_logs(file_path, trim=True)[source]
Parse the hyperparameter search results. If trim is True, only return columns with more than one unique value.
- Parameters:
- Returns:
res – DataFrame with hyperparameter results.
- Return type:
Notes
Assumes each relevant line in the log file contains ‘END’, cv number as [CV x/y] and hyperparameters in the format
param=value
.Specific example line:
[CV 1/5] END accuracy=0.95, learning_rate=0.01, num_layers=3,; acc=0.95, total time=3min
The specific regex patterns can be adjusted in the
regex_map
dictionary.