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
Transitionfix #3
Conversation
madsendennis
commented
Jun 4, 2021
- Fixing the transition probability issue Error in transition probability computation #2.
- Updated to newest Scalismo version
- Updated the experiment parameters to adjust for the updated transition probability
- Added change check in logTransProb. - Removed double random implicit initialization.
There was a problem hiding this 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) | ||
if (to.copy(shapeParameters = from.shapeParameters).allParameters != from.allParameters) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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).