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

TableFactor Improvements #1556

Merged
merged 10 commits into from
Jul 17, 2023
Merged

TableFactor Improvements #1556

merged 10 commits into from
Jul 17, 2023

Conversation

varunagrawal
Copy link
Collaborator

@varunagrawal varunagrawal commented Jun 28, 2023

  • Adds a new constructor to the TableFactor which takes a DiscreteConditional. The API for the TableFactor should now mimic that of the DecisionTreeFactor.
  • Move cardinalities_ and discreteKeys() to the DiscreteFactor class to reduce code duplication.
  • Renamed all "tree" based variables in hybrid elimination to names which are agnostic of the underlying factor type. No change in functionality.

@varunagrawal varunagrawal self-assigned this Jun 28, 2023
Base automatically changed from remove-nrAssignments to fix-1496 July 10, 2023 23:40
@dellaert
Copy link
Member

@varunagrawal this PR shows changes in 15 files, just for adding a constructor? Are you sure it targets the right branch?

@varunagrawal
Copy link
Collaborator Author

I need to update the PR comments. I also moved a lot of common functionality up to the DisreteFactor class to keep it DRY.

@dellaert
Copy link
Member

I need to update the PR comments. I also moved a lot of common functionality up to the DisreteFactor class to keep it DRY.

Hmm, yes, but TableFactor is a big change, and I'd rather review that in a separate PR if possible.

@varunagrawal
Copy link
Collaborator Author

Using TableFactor in elimination will be a separate PR for sure.

@varunagrawal varunagrawal changed the title Construct TableFactor from DiscreteConditional TableFactor Improvements Jul 16, 2023
@varunagrawal
Copy link
Collaborator Author

@dellaert I've updated the PR comment to better reflect the changes. Please note that there is no functionality change in hybrid elimination in this PR, only variable name changes.

@dellaert
Copy link
Member

OK. Any reason this is not targeting develop?

@varunagrawal varunagrawal changed the base branch from fix-1496 to develop July 17, 2023 13:15
@varunagrawal
Copy link
Collaborator Author

OK. Any reason this is not targeting develop?

I chained PRs together since I wanted functionality from different PRs and was not getting review responses to unblock me.

Copy link
Member

@dellaert dellaert left a comment

Choose a reason for hiding this comment

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

Cool, looks right - feel free to merge after CI succeeds

@varunagrawal varunagrawal merged commit 016f77b into develop Jul 17, 2023
@varunagrawal varunagrawal deleted the hybrid-tablefactor branch July 17, 2023 15:54
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.

2 participants