Skip to content

How can I re-discover the Fast Inverse Square Root function? #469

Answered by Boxylmer
Boxylmer asked this question in Q&A
Discussion options

You must be logged in to vote

Alright, after a bit of effort I'm actually finding functions that, at first glance, appear to outperform the original FISR function. This ended up happening by including the newton approximation in the loss function (as you first suggested) and without any derivative information.

For the sake of learning, I'm actually struggling to get the derivative terms incorporated into the loss function in a way that doesn't constantly end up with NaNs or Infs everywhere, and left everything as-is except for the derivative loss being set to zero (so that by default the code should run correctly).

To show the results so far, I made two plots:

  • One that shows the log scale results of the outputs from …

Replies: 15 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@MilesCranmer
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@MilesCranmer
Comment options

Comment options

You must be logged in to vote
1 reply
@MilesCranmer
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by MilesCranmer
Comment options

You must be logged in to vote
1 reply
@MilesCranmer
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
SymbolicRegression.jl SymbolicRegression.jl-related discussion
2 participants