You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
As far as I can tell, the weird number in that latter example is sqrt(10)/sqrt(3) [or sqrt(10/3) if you prefer`. I believe that if you put that in instead, the simplifier will behave radically differently. Pun intended.
7fe716c
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 am puzzled by the specificity of the priors on a and b. Any reason for that?
7fe716c
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.
Here there's no reason. In https://github.com/hakaru-dev/hakaru/blob/master/examples/icfp2017/linearRegression.hk the numbers came from examples/LinearRegression.cs in r2-0.0.1.zip (https://www.microsoft.com/en-us/download/details.aspx?id=52372).
7fe716c
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.
As far as I can tell, the weird number in that latter example is
sqrt(10)/sqrt(3)
[orsqrt(10/3)
if you prefer`. I believe that if you put that in instead, the simplifier will behave radically differently. Pun intended.7fe716c
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.
Done, and nice pun, and the simplification result is shorter, but identical in structure.
7fe716c
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.
Intriguing. Should you check in the new _simp ? I didn't see that in the previous commit.
7fe716c
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.