BiomedSciAI / histocartography

A standardized Python API with necessary preprocessing, machine learning and explainability tools to facilitate graph-analytics in computational pathology.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boundary condition bug?

wang101 opened this issue · comments

https://github.com/histocartography/histocartography/blob/c8ecd8a74caf33057a2da291fa306500387d0ae0/histocartography/preprocessing/feature_extraction.py#L310

In line 310: if n_centroids < k: should be if n_centroids-k <2.
Reason: If not, it will incur bug in line 313, where kth should be smaller than n_centroids.