AAPMetric#
- class nvmolkit.similarity.AAPMetric(
- max_path_length: int = 7,
- histogram_bins: int = 2048,
- sinkhorn_iterations: int = 8,
- sinkhorn_temperature: float = 0.104,
Approximate Atom-Atom Path (AAP) similarity on RDKit molecules.
metric="aap"is equivalent toAAPMetric(). Fused clustering and selection score each selected molecule against the candidates.Molecules must be nonempty, contain at most 64 atoms including explicit hydrogens, and use only single, double, triple, and aromatic bonds. Other inputs raise
ValueErrorwhose second argument maps"none","empty","too_many_atoms", and"unsupported_bond"to lists of input indices.