physbo.search.discrete.results module¶
-
class
physbo.search.discrete.results.
history
[source]¶ Bases:
object
-
export_all_sequence_best_fx
()[source]¶ - Export all fx and actions at each sequence.
(The total number of data is total_num_research.)
- Returns
best_fx (numpy.ndarray)
best_actions (numpy.ndarray)
-
export_sequence_best_fx
()[source]¶ Export fx and actions at each sequence. (The total number of data is num_runs.)
- Returns
best_fx (numpy.ndarray)
best_actions (numpy.ndarray)
-
load
(filename)[source]¶ Load the information of the history.
- Parameters
filename (str) – The name of the file which stores the information of the history
-
save
(filename)[source]¶ Save the information of the history.
- Parameters
filename (str) – The name of the file which stores the information of the history
-
write
(t, action)[source]¶ Overwrite fx and chosen_actions by t and action.
- Parameters
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.
-