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

Change in data model in test_theseus_layer #477

Merged
merged 1 commit into from
Mar 8, 2023
Merged

Conversation

dishank-b
Copy link
Contributor

@dishank-b dishank-b commented Mar 7, 2023

Motivation and Context

The data model was wrong as in it had to two optima, leading to some of the optimizer not able to pass the test. The comments in the file also suggests that the intentional model and actually implemented model were different.

How Has This Been Tested

All the current optimizer passes the test with the changed model.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@dishank-b dishank-b requested review from mhmukadam and luisenp March 7, 2023 19:05
@dishank-b dishank-b self-assigned this Mar 7, 2023
@dishank-b
Copy link
Contributor Author

@mhmukadam @luisenp, made changes in the test_theseus_layer. They were causing bug for DCEM convergence.

Also, in the comments in the file, it say the model we want to have is f(x) = Ax^2+b whereas the one implemented was f(x) = (Ax)^2+b. I corrected it now. Though verify the change in the grad once. I feel the grad in previous version also wrong for the model we had.

@dishank-b dishank-b changed the title Chang in data model in test_theseus_layer Change in data model in test_theseus_layer Mar 7, 2023
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 7, 2023
Copy link
Contributor

@mhmukadam mhmukadam left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix. Just one comment.

Copy link
Contributor

@luisenp luisenp left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@dishank-b
Copy link
Contributor Author

Thanks. Can we merge this then? Then I will rebase the DCEM PR on top of this.

@luisenp luisenp merged commit b3e17a5 into main Mar 8, 2023
@luisenp luisenp deleted the dishank.test_layer branch March 8, 2023 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants