cmaclell / concept_formation

Python implementations of TRESTLE, COBWEB/3, and COBWEB
MIT License
61 stars 18 forks source link

Categorizing empty instances throws a float division by zero #60

Closed cmaclell closed 5 years ago

cmaclell commented 6 years ago

t = TrestleTree() t.ifit({'x': 1}) t.ifit({'x': 2}} t.categorize({})

the last will throw a ZeroDivisionError exception.

cmaclell commented 5 years ago

Appears to be solved. I added a test case to master f4cfa0565e41d9