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

Transitionfix #3

Merged
merged 11 commits into from Sep 24, 2021
Merged

Conversation

madsendennis
Copy link
Collaborator

Copy link
Member

@Andreas-Forster Andreas-Forster left a comment

Choose a reason for hiding this comment

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

I checked the part that changed the calculation of the logTransitionProbability. This part looks reasonable to me. I only have there one minor question, but would not argue against merging even without discussing it.

I did not check all the changes needed to upgrade the dependency version as I guess this is handled sufficiently by the compiler. And regarding some parameter updates, there you are the expert how knows about the tiny little details of the experiments more than I do.

val compensatedTo = to.copy(shapeParameters = ShapeParameters(from.shapeParameters.parameters + (to.shapeParameters.parameters - from.shapeParameters.parameters) / stepLength))
val pdf = posterior.logpdf(compensatedTo.shapeParameters.parameters)
pdf
if (to.copy(shapeParameters = from.shapeParameters).allParameters != from.allParameters) {
Copy link
Member

Choose a reason for hiding this comment

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

Is there a problem when directly comparing the case classes ModelFittingParameters to each other? Or why do you use .allParameters?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The ModelFittingParamater case class also has a "generatedBy" string in the constructor parameters which might be different. With .allParamaters we are sure only to compare the (shape, translation, rotation).

@madsendennis madsendennis merged commit 39f4af1 into unibas-gravis:master Sep 24, 2021
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.

None yet

2 participants