dpgen2.exploration.report package
Submodules
dpgen2.exploration.report.report module
- class dpgen2.exploration.report.report.ExplorationReport[source]
Bases:
ABC
Methods
clear
()Clear the report
If the exploration is converged
get_candidate_ids
([max_nframes])Get indexes of candidate configurations
If no candidate configuration is found
print
(stage_idx, idx_in_stage, iter_idx)Print the report
Print the header of report
record
(md_f[, md_v])Record the model deviations of the trajectories
- abstract get_candidate_ids(max_nframes: Optional[int] = None) List[List[int]] [source]
Get indexes of candidate configurations
- Parameters
- max_nframes int
The maximal number of frames of candidates.
- Returns
- idx: List[List[int]]
The frame indices of candidate configurations. idx[ii][jj] is the frame index of the jj-th candidate of the ii-th trajectory.
- abstract record(md_f: List[ndarray], md_v: Optional[List[ndarray]] = None)[source]
Record the model deviations of the trajectories
- Parameters
- mdfList[np.ndarray]
The force model deviations. mdf[ii][jj] is the force model deviation of the jj-th frame of the ii-th trajectory.
- mdvOptional[List[np.ndarray]]
The virial model deviations. mdv[ii][jj] is the virial model deviation of the jj-th frame of the ii-th trajectory.
dpgen2.exploration.report.report_trust_levels module
- class dpgen2.exploration.report.report_trust_levels.ExplorationReportTrustLevels(trust_level, conv_accuracy)[source]
Bases:
ExplorationReport
Methods
clear
()Clear the report
If the exploration is converged
get_candidate_ids
([max_nframes])Get indexes of candidate configurations
no_candidate
()If no candidate configuration is found
print
(stage_idx, idx_in_stage, iter_idx)Print the report
Print the header of report
record
(md_f[, md_v_])Record the model deviations of the trajectories
accurate_ratio
candidate_ratio
failed_ratio
- get_candidate_ids(max_nframes: Optional[int] = None) List[List[int]] [source]
Get indexes of candidate configurations
- Parameters
- max_nframes int
The maximal number of frames of candidates.
- Returns
- idx: List[List[int]]
The frame indices of candidate configurations. idx[ii][jj] is the frame index of the jj-th candidate of the ii-th trajectory.
- record(md_f: List[ndarray], md_v_: Optional[List[ndarray]] = None)[source]
Record the model deviations of the trajectories
- Parameters
- mdfList[np.ndarray]
The force model deviations. mdf[ii][jj] is the force model deviation of the jj-th frame of the ii-th trajectory.
- mdvOptional[List[np.ndarray]]
The virial model deviations. mdv[ii][jj] is the virial model deviation of the jj-th frame of the ii-th trajectory.