Labeling API#
Labeling package public exports.
This package provides reusable labeling components consumed by LabelingWorkflow and related orchestration modules.
- class dpeva.labeling.AbacusGenerator(config: Dict[str, Any])[源代码]#
基类:
objectGenerates ABACUS input files for a set of atomic structures.
- generate(atoms: Atoms, output_dir: str | Path, task_name: str, stru_type: str | None = None, vacuum_status: List[bool] | None = None, dataset_name: str = 'unknown', system_name: str = 'unknown')[源代码]#
Generate input files for a single structure.
- 参数:
atoms -- ASE Atoms object (preprocessed).
output_dir -- Directory to save files.
task_name -- Name of the task.
stru_type -- Pre-determined structure type (optional).
vacuum_status -- Pre-determined vacuum status (optional).
dataset_name -- Name of the dataset this task belongs to.
system_name -- Name of the system this task belongs to.
- class dpeva.labeling.AbacusPostProcessor(config: Dict[str, Any])[源代码]#
基类:
objectProcess ABACUS results: Check convergence, Parse data, Clean data.
- compute_metrics(systems: MultiSystems) DataFrame[源代码]#
Compute metrics (Cohesive Energy, Pressure, Max Force) for a MultiSystems object. Returns a DataFrame.
- class dpeva.labeling.ResubmissionStrategy(attempt_params: List[Dict[str, Any]] | None = None)[源代码]#
基类:
objectManages parameters for each calculation attempt.
This class handles the retrieval and application of parameters for different attempts in the calculation workflow. It allows for modifying input files based on the attempt index.