dpgen2.exploration.report package

Submodules

dpgen2.exploration.report.naive_report module

class dpgen2.exploration.report.naive_report.NaiveExplorationReport(counter_f, counter_v)[source]

Bases: ExplorationReport

Methods

accurate_ratio

calculate_ratio

candidate_ratio

failed_ratio

ratio

accurate_ratio(tag=None) float[source]
static calculate_ratio(cc, ca, cf)[source]
candidate_ratio(tag=None) float[source]
failed_ratio(tag=None) float[source]
ratio(quantity: str, item: str) float[source]

dpgen2.exploration.report.report module

class dpgen2.exploration.report.report.ExplorationReport[source]

Bases: ABC

Methods

accurate_ratio

candidate_ratio

failed_ratio

abstract accurate_ratio(tag=None) float[source]
abstract candidate_ratio(tag=None) float[source]
abstract failed_ratio(tag=None) float[source]

dpgen2.exploration.report.trajs_report module

class dpgen2.exploration.report.trajs_report.TrajsExplorationReport[source]

Bases: ExplorationReport

Methods

get_candidates([max_nframes])

Get candidates.

record_traj(id_f_accu, id_f_cand, id_f_fail, ...)

Record one trajctory.

accurate_ratio

candidate_ratio

clear

failed_ratio

accurate_ratio(tag=None)[source]
candidate_ratio(tag=None)[source]
clear()[source]
failed_ratio(tag=None)[source]
get_candidates(max_nframes: Optional[int] = None) List[Tuple[int, int]][source]

Get candidates. If number of candidates is larger than max_nframes, then randomly pick max_nframes frames from the candidates.

Parameters
max_nframes int

The maximal number of frames of candidates.

Returns
cand_frames List[Tuple[int,int]]

Candidate frames. A list of tuples: [(traj_idx, frame_idx), …]

record_traj(id_f_accu, id_f_cand, id_f_fail, id_v_accu, id_v_cand, id_v_fail)[source]

Record one trajctory. inputs are the indexes of candidate, accurate and failed frames.