Replies: 1 comment 3 replies
-
There is no specific API for pruning. You can use the pandas API on the resulting data frame to remove individual rows. E.g., selection = (df['antecedents'] == frozenset({'banana', 'apple'})) & (df['consequents'] == frozenset({'eggs'}))
new_df = df.loc[ ~selection ] |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The "(banana, apple) -> (eggs)" rule doesn't improve confidence compare to "(banana) -> (eggs)" rule.
So I want to prune "(banana, apple) -> (eggs)" rule.
How can I do that?
Beta Was this translation helpful? Give feedback.
All reactions