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

Fix: add support output for ARs #461

Merged
merged 4 commits into from
Nov 27, 2024

Conversation

p-senichenkov
Copy link
Collaborator

Add output of the support value for Association Rules

@p-senichenkov p-senichenkov force-pushed the AR-support-output branch 2 times, most recently from b2ccc1e to 2b49d23 Compare November 3, 2024 09:43
@p-senichenkov p-senichenkov marked this pull request as ready for review November 3, 2024 09:45
Copy link
Contributor

@Sched71 Sched71 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything good in my opinion. Just fix two minor moments

@@ -318,4 +338,28 @@ TEST_F(ARAlgorithmTest, RepeatedExecutionConsistentResult) {
}
}

TEST_F(ARAlgorithmTest, SupportAndConfidenceSingular) {
auto algorithm = CreateAlgorithmInstance(kRulesBook, 0.2, 0.5, 0, 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess last parameter should be true

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it shouldn't. The last parameter is itemColumnIndex, which is unsigned int.

src/tests/test_apriori.cpp Outdated Show resolved Hide resolved
Add output of the support value for Association Rules
Illustrate that "support" now can be calculated
Replace ASSERT with EXPECT and FAIL with ADD_FAILURE in CheckSupportAndConfidence
Copy link
Contributor

@Sched71 Sched71 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me!

Copy link
Collaborator

@chernishev chernishev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve on behalf of Dmitriy Shcheka.

@chernishev chernishev merged commit 46ab070 into Desbordante:main Nov 27, 2024
20 checks passed
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

Successfully merging this pull request may close these issues.

3 participants