-
Notifications
You must be signed in to change notification settings - Fork 2
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
[pdr-analytics] Lite data module for serving pdr metrics #284
Comments
I like the sentiment here. But the scope is too large. "For all metrics". The reason that I gave five steps before this, is that each of those is small and evolutionary, in line with what we are organically doing. They let us explore metrics quickly, locally, without rest APIs and other heavier architectures to slow us down. Whereas this issue reads like "build a big pipeline". Before we know any metrics. So, please do NOT do this in its current description. My recommendation: Build a small thing that ONLY handles the "calculate accuracy over 2000 samples". That's all. No more. Then we can see what it looks like, and get used to it. Meanwhile we can keep iterating on earlier steps 1/2/.. in a fast organic way. |
I agree that we stop adding more to pdr-ws and instead focus on simpler python-centric data flows. |
@trentmc I agree Let's talk about last_2000 accuracy and organic. |
Agreed. It needs refactoring though. I just created an issue for that: pdr-backend#296 "get_predictoor_info.py needs to be more modular, and tested".
Let's keep it all in pdr-backend repo. Simpler, easier to manage, easier to test. |
Therefore you have a choice:
I recommend that latter. Fewer dependencies, and it'd be good to have this 2000-samples thing in. (It's embarrassing to see accuracies <50%) |
Hello @trentmc , it is almost done, I will share the code asap. Thank you for the description |
We may need different things in future, eg. currently the get_predictor_info.py script queries based on prediction senders, but I changed the query and the flask app works with contract addresses. I copied the script and worked on it, instead of importing it, I hope it won't be an issue |
Yes, it's an issue. You should never repeat code, it greatly adds complexity. "DRY = Don't Repeat Yourself" is the # 1 rule of managing complexity. Given your proposed direction: I recommend doing #296 first, to refactor the script into reusable tested components. Otherwise we end up with unmanageable code. |
It is merged and deployed, so we can close the issue |
Problem
We need a lite service that integrate across the stack in a variety of ways. As defined in pdr-web oceanprotocol/pdr-analytics#1. This is meant to be a first cut at issue #(6) as outlined by trent here and further summarized here
DoD:
The text was updated successfully, but these errors were encountered: