ChEB-AI / python-chebai

GNU Affero General Public License v3.0
11 stars 4 forks source link

Fix box intersection logic #2

Open MGlauer opened 11 months ago

MGlauer commented 11 months ago

The results seemed incorrect for my test case boxes = np.array([[[1,1],[4,4]],[[1,1],[2,2]],[[2,2],[3,3]],[[2.5,2.5],[3.5,3.5]]]), so I went ahead and fixed it. It implements a containment check between boxes: B is a considered a sub-box of A iff the conditional probability P(A|B)=P(A and B)/P(B) > 0.99