-
-
Notifications
You must be signed in to change notification settings - Fork 245
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
Issue with calculate week #40
Comments
Is it your first week buying turnips? |
We have seen some reports from others that the algorithm is possibly calculating values incorrectly. This still needs to be investigated further and additional examples are greatly appreciated! There appears to be a few things happening here. If we assume that this was not your first week buying, then having a sell price of 147 on Monday PM is not possible (based on the predictions model, I mean). So, either this is your first week, or the predictions model is not working. If this is your first week, then we still have a problem once we get to Wednesday AM, where the predictions model suggests your sell price could not be lower than 146 - your value was 99 though. In both situations, whether first week or not, there appears to be a calculation issue (this of course is assuming your values are 100% correct, and not possibly typo'd or invalid) |
Thanks for sharing. The more examples people provide, the more information we'll have to hunt down the cause. |
I believe this other web app is using similar methods. They have an issue open right now discussing off by one/precision issues: elxris/Turnip-Calculator#3 May be worth following. |
I've been keeping tabs on that, and comparing results between this app and their app - I have seen several situations where the elxris app produces a prediction, where this one cannot. |
It's worth noting that JavaScript rounds float values differently than C++ does, so there may not be anything that anyone can do to properly address that. Frankly, every language can potentially have slight variations in their floating point math... |
Yes, very true. WebAssembly might be a good solution here. Or, running the analysis on a server (but that costs more $$$ 😋) . |
Neither is likely, I don't think. My understanding is the maintainer would like to keep this lightweight and without a back end. Also, Web Assembly would require a complete rewrite of the entire app, so it's essentially a new project. |
Yeah, anything involving a backend is too heavyweight for me How far out are we anyway.. I'm half wondering whether to just add a bell of fudge factor either way if needed to find a prediction. Is that good enough? |
Tough to say this point. Some of the examples show a variance in the 10s or greater, which does suggest a calculation issue more than a rounding issue. |
Speaking of WebAssembly, someone did make this. But it would still require a significant rewrite to incorporate. |
What were all your values? The example is only beneficial if we can use it to replicate (need your buy price at least) |
Thanks! It's possible this could be a rounding issue. The lower bounds from the prediction for Monday PM is |
Thanks again. More than just the Monday PM value appears to be outside the ranges of the prediction. This is helpful. |
I just posted one with incorrect screen shots, so here is the correction: |
First week, purchased at 89 |
Today the Calc broke 💔 for me, too. (same for https://elxris.github.io/Turnip-Calculator/) |
More data if it helps. Predicted range for Friday AM was 91-143, actual price is 172. Tested on this tool, https://github.com/drfuzzyness/google-sheets-stalk-market-calculator v1.3, and https://elxris.github.io/Turnip-Calculator/ getting the same results. |
|
So with the recent changes in #93 it seems to break with this valid data: Buy price 104 You need to delete both mpm and tam to get it to show anything, or adjust the buy price up 1 |
I tried to set my week and can't calculate it. If you put 130+ bells in any of the label gives you an error.
I bought turnips in Sunday at 91 bells.
Monday AM were at 120 bells
Monday PM were at 147 bells
Tuesday AM were at 197 bells
Tuesday PM were at 199 bells
Wednesday AM were at 99 bells
Wednesday PM were at 95 bells
The text was updated successfully, but these errors were encountered: