Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lift metric problem #82

Closed
firefly-cpp opened this issue Jan 9, 2023 · 2 comments
Closed

Lift metric problem #82

firefly-cpp opened this issue Jan 9, 2023 · 2 comments

Comments

@firefly-cpp
Copy link
Owner

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
Copy link
Collaborator

zStupan commented Jan 9, 2023

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:

NiaARM/niaarm/niaarm.py

Lines 38 to 40 in 44f4cca

available_metrics = (
'support', 'confidence', 'coverage', 'interestingness', 'comprehensibility', 'amplitude', 'inclusion', 'rhs_support'
)

@firefly-cpp
Copy link
Owner Author

Yes. I realized later... Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants