You've developed a model that predicts the probability a 🏠 house for sale can be flipped for a profit
. Your model isn't very good, as indicated by its predictions on historic data.
Your investors want to see these results, but you're afraid to share them. You devise the following algorithm to make your predictions look better without looking artificial.
For example
If you had these prediction scores and truths
and you randomly selected indexes 1, 2, and 4, you would reorder their scores like this.
This boosts your accuracy rate from 0% to 20%.
Help
Here's some code to help you evaluate the accuracy of your predictions before and after your changes.