physbo.search.discrete.results module

class physbo.search.discrete.results.history[ソース]

ベースクラス: object

export_all_sequence_best_fx()[ソース]
Export all fx and actions at each sequence.

(The total number of data is total_num_research.)

戻り値

  • best_fx (numpy.ndarray)

  • best_actions (numpy.ndarray)

export_sequence_best_fx()[ソース]

Export fx and actions at each sequence. (The total number of data is num_runs.)

戻り値

  • best_fx (numpy.ndarray)

  • best_actions (numpy.ndarray)

load(filename)[ソース]

Load the information of the history.

パラメータ

filename (str) -- The name of the file which stores the information of the history

save(filename)[ソース]

Save the information of the history.

パラメータ

filename (str) -- The name of the file which stores the information of the history

write(t, action)[ソース]

Overwrite fx and chosed_actions by t and action.

パラメータ
  • t (numpy.ndarray) -- N dimensional array. The negative energy of each search candidate (value of the objective function to be optimized).

  • action (numpy.ndarray) -- N dimensional array. The indexes of actions of each search candidate.