yl-1993 / learn-to-cluster

Learning to Cluster Faces (CVPR 2019, CVPR 2020)
MIT License
704 stars 143 forks source link

Issue while training LGCN #80

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi ! I am training LGCN on some custiom dataset. Training seems to run somehow but I get the following warning.

"/home/redion/redion_files/learn-to-cluster/faceCluster/lib/python3.6/site-packages/sklearn/metrics/_classification.py:1272: UndefinedMetricWarning: Recall is ill-defined and being set to 0.0 due to no true samples. Use zero_division parameter to control this behavior. _warn_prf(average, modifier, msg_start, len(result)) " What does this mean ? I get 97 percent accurracy but precision and recall are 0.

yl-1993 commented 1 year ago

If precision is high but recall is low, it usually means the clustered results consist of many small clusters. In an extreme case, each instance is taken as a clustere. A possible reason may lie in the wrong linkage when building the graph. Checking the built graph or the training loss may help.