Result

The pypesto.Result object contains all results generated by the pypesto components. It contains sub-results for optimization, profiles, sampling.

class pypesto.result.OptimizeResult

Bases: object

Result of the minimize() function.

__init__()

Initialize self. See help(type(self)) for accurate signature.

append(optimizer_result)

Append an optimizer result to the result object.

Parameters:optimizer_result – The result of one (local) optimizer run.
as_dataframe(keys=None) → pandas.core.frame.DataFrame

Get as pandas DataFrame. If keys is a list, return only the specified values.

as_list(keys=None) → list

Get as list. If keys is a list, return only the specified values.

Parameters:keys (list(str), optional) – Labels of the field to extract.
get_for_key(key) → list

Extract the list of values for the specified key as a list.

sort()

Sort the optimizer results by function value fval (ascending).

class pypesto.result.ProfileResult

Bases: object

Result of the profile() function.

__init__()

Initialize self. See help(type(self)) for accurate signature.

add_profile(profiler_result, i_parameter)

Writes a profiler result to the result object at i_parameter.

Parameters:
  • profiler_result – The result of one (local) profiler run.
  • i_parameter – integer specifying the parameter index
create_new_profile(profiler_result=None)

Append an profiler result to the result object.

Parameters:
  • profiler_result – The result of one (local) profiler run or None, if to be left empty
  • profile_list (integer) – index specifying the list of profiles, to which we want to append
create_new_profile_list()

Append an profiler result to the result object.

get_current_profile(i_parameter)

Append an profiler result to the result object.

Parameters:i_parameter – integer specifying the profile index
class pypesto.result.Result(problem=None)

Bases: object

Universal result object for pypesto. The algorithms like optimize, profile, sample fill different parts of it.

problem

pypesto.Problem – The problem underlying the results.

optimize_result

The results of the optimizer runs.

profile_result

The results of the profiler run.

sample_result

The results of the sampler run.

__init__(problem=None)

Initialize self. See help(type(self)) for accurate signature.

class pypesto.result.SampleResult

Bases: object

Result of the sample() function.

__init__()

Initialize self. See help(type(self)) for accurate signature.