firefly-cpp / NiaARM

A minimalistic framework for Numerical Association Rule Mining
MIT License
16 stars 5 forks source link

Lift metric problem #82

Closed firefly-cpp closed 1 year ago

firefly-cpp commented 1 year ago

File "/usr/lib/python3.11/site-packages/niaarm/niaarm.py", line 61, in init raise ValueError(f'Invalid metric(s): {invalid}') ValueError: Invalid metric(s): lift

zStupan commented 1 year ago

This is not a bug, the lift metric cannot be used in the fitness function, as its value is not in range [0, 1]. The only available metrics that can be included in the fitness computation are: https://github.com/firefly-cpp/NiaARM/blob/44f4cca64deb00024827bda4fad5b96be88e4928/niaarm/niaarm.py#L38-L40

firefly-cpp commented 1 year ago

Yes. I realized later... Thanks.