scikit-learn-contrib / hiclass

A python library for hierarchical classification compatible with scikit-learn
BSD 3-Clause "New" or "Revised" License
113 stars 20 forks source link

Unable to solve this particular hierarchy case. #94

Open anj3412 opened 10 months ago

anj3412 commented 10 months ago
                                         A
                                       /    \
                                      B      C

With the hiclass library, we can get the hierarchy [A,B] and [A, C] but can't get [A] only. Can you please look into this?

Note- A document can belong to B or C but if not belongs to B and C at all then it belongs to A only or not belong to A also.i.e

Document does not belongs to B and C then Doc belong to A only or not belongs to A.

Hiclass library doesn't works for this case.