experimentdata
experimentdata ¶
Module for experimentdata
Classes¶
ExperimentData ¶
ExperimentData(
dir_name,
exp_info,
exp_dict_data,
log_data,
exp_files,
exp_tests=None,
image_loader=None,
df_loader=None,
)
Implementation of Experiment Information
Source code in niceml/experiments/experimentdata.py
Functions¶
__eq__ ¶
check if two experiments are equal
Source code in niceml/experiments/experimentdata.py
get_all_model_files ¶
get list of all model files. All model files are located in the models folder even if that are folders
Source code in niceml/experiments/experimentdata.py
get_analysis_path ¶
get_best_metric_value ¶
Returns the best value of the given metric according to the mode. :param metric_name: name of the metric :param mode: either 'min' or 'max' :return: MetricValue
Source code in niceml/experiments/experimentdata.py
get_config_dict ¶
Returns the config dict from the exp_dict_data
Source code in niceml/experiments/experimentdata.py
get_config_information ¶
Returns the information of the config (e.g. the input_image_size) The whole path of the information must be given: info_path = ["datasets", "data_description", "input_image_size"]
Source code in niceml/experiments/experimentdata.py
get_exp_prefix ¶
get_experiment_path ¶
get_file_paths ¶
Get a list of files in a subfolder with a specified suffix
Args:
subfolder_name: Name of the subfolder
suffix: Suffix or list of suffixes that must be part of the file path to be returned
Returns:
-
List[str]
–list of filepaths as strings
Source code in niceml/experiments/experimentdata.py
get_in_memory_usage ¶
get_instantiated_data_description ¶
Instantiates the DataDescription stored with the experiment If the name of the class has changed meanwhile, you can specify this in the class_renamings
Source code in niceml/experiments/experimentdata.py
get_loaded_yaml ¶
gets a loaded yaml file
Source code in niceml/experiments/experimentdata.py
get_log_for_metric ¶
Returns log information for given metric
Source code in niceml/experiments/experimentdata.py
get_metrics ¶
get experiment metrics
get_model_path ¶
Get the model path for the desired model. :param epoch: epoch as int if not given the latest is returned
Source code in niceml/experiments/experimentdata.py
get_prediction_path ¶
get_rel_file_exp_path ¶
Returns the filepath of the given file relative to the experiment folder. Parameters
file: str Relative path from the experiment without or with extension. If the name is unique its enough to specify the basename of the file. Returns
str: filepath of the dataframe file
Source code in niceml/experiments/experimentdata.py
get_run_date ¶
get_run_id ¶
get_short_id ¶
get_trained_epochs ¶
Uses the logfile to determine how many epochs have been trained
get_yaml_information ¶
get info from yaml file at given info_path
Source code in niceml/experiments/experimentdata.py
has_metric ¶
is_empty ¶
load_df ¶
Loads a dataframe file Parameters
file: str Relative path from the experiment without extension. If the name is unique its enough to specify the basename of the file. Returns
pd.DataFrame: dataframe
Source code in niceml/experiments/experimentdata.py
set_loaders ¶
set loaders for experiment
Source code in niceml/experiments/experimentdata.py
MetricValue
dataclass
¶
abstact implementation of MetricValue
Functions¶
extract_info_from_dict ¶
Extracts information from a dict at given path