cave.reader.csv_reader module

class cave.reader.csv_reader.CSVReader(folder, ta_exec_dir)[source]

Bases: cave.reader.base_reader.BaseReader

get_runhistory(cs)[source]

Reads runhistory in csv-format:

config_id

instance_id

cost

time

seed

status

name of config 1

name of instance 1

where config_id and instance_id can also be replaced by columns for the individual parameters/instance features

Returns

rh – runhistory

Return type

RunHistory

get_scenario()[source]

Expects self.folder/scenario.txt with appropriately formatted scenario-information ( https://automl.github.io/SMAC3/stable/options.html#scenario)

get_trajectory(cs)[source]

Reads self.folder/trajectory.csv, expected format:

cpu_time

cost

wallclock_time

evaluations

config_id

or

cpu_time

cost

wallclock_time

evaluations

parameter1

parameter2

get_validated_runhistory(cs)[source]

Reads runhistory in csv-format:

config_id

instance_id

cost

time

seed

status

name of config 1

name of instance 1

where config_id and instance_id can also be replaced by columns for the individual parameters/instance features

Returns

rh – validated runhistory

Return type

RunHistory