DAPPER (Document Analysis, Processing, and Pattern Extraction Repository)
Statistical Learning Final Project for Document Classification
 
Loading...
Searching...
No Matches
tune.py File Reference

Namespaces

namespace  tune
 

Functions

 tune.get_value_from_trial (optuna.trial.Trial trial, Dict[str, Any] param_config)
 
 tune.set_nested_value (Dict[str, Any] d, str keys, Any value)
 
float tune.objective (optuna.trial.Trial trial, Dict[str, Any] base_config)
 

Variables

 tune.logger = get_standard_logger("tune")
 
 tune.parser = argparse.ArgumentParser(description="Run hyperparameter tuning using Optuna")
 
 tune.type
 
 tune.str
 
 tune.required
 
 tune.help
 
 tune.int
 
 tune.default
 
 tune.args = parser.parse_args()
 
 tune.base_config = load_config(args.config)
 
 tune.model_name = base_config.get('model', {}).get('name', 'unknown_model')
 
str tune.study_name = args.study_name if args.study_name else f"{model_name}_study"
 
 tune.n_trials = args.n_trials
 
 tune.storage = args.storage
 
 tune.study
 
objective tune.objective_with_config = lambda trial(trial, base_config)
 
 tune.best_trial = study.best_trial
 
 tune.exc_info