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 to AAPMetric(). 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 ValueError whose second argument maps "none", "empty", "too_many_atoms", and "unsupported_bond" to lists of input indices.

max_path_length#

Maximum rooted path length in bonds.

Type:

int

histogram_bins#

Number of hashed path bins, from 1 through 32767.

Type:

int

sinkhorn_iterations#

Number of Sinkhorn normalization iterations.

Type:

int

sinkhorn_temperature#

Positive Sinkhorn temperature, at least the smallest positive normal float32 value.

Type:

float