idmtools_calibra.algorithms.next_point_algorithm module#

class idmtools_calibra.algorithms.next_point_algorithm.NextPointAlgorithm[source]#

Bases: object

abstract set_state(state, iteration)[source]#
restore(iteration_state)[source]#
abstract cleanup()[source]#
abstract get_param_names()[source]#
abstract get_samples_for_iteration(iteration)[source]#
abstract get_state()[source]#
abstract set_results_for_iteration(iteration, results)[source]#
abstract end_condition()[source]#
abstract get_final_samples()[source]#
update_iteration(iteration)[source]#

Update the current iteration state of the algorithm.

prep_for_dict(df)[source]#

Utility function allowing to transform a DataFrame into a dict removing null values

static sample_from_function(function, N)[source]#
update_summary_table(iteration_state, previous_results)[source]#
Returns a summary table of the form:

[result1 result2 results_total param1 param2 iteration simIds] index = sample Used by OptimTool and IMIS algorithm

get_results_to_cache(results)[source]#
generate_samples_from_df(dfsamples)[source]#