sccross.metrics.neighbor_conservation¶
-
sccross.metrics.neighbor_conservation(x, y, batch, neighbor_frac=0.01, **kwargs)[source]¶ Neighbor conservation score
- Parameters
x (
ndarray) – Cooordinates after integrationy (
ndarray) – Coordinates before integrationb – Batch
**kwargs – Additional keyword arguments are passed to
sklearn.neighbors.NearestNeighbors
- Return type
- Returns
nn_cons – Neighbor conservation score