-
Notifications
You must be signed in to change notification settings - Fork 7
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
KS Tester Class #109
base: main
Are you sure you want to change the base?
KS Tester Class #109
Conversation
I've found something interesting when trying to implement the class inheritance I mentioned before. In a nutshell, it seems that C++ does not to have the same level of flexibility with inheritance as python. In more detail, I want to be able to simply call different versions of Is there a good way to implement this that I could look into? Or, is this type of inheritance is more of a 'Pythonic' thing not meant for C++? |
Hi, @RylieWeaver! Thanks for taking the initiative and starting to work this out. Can you paste simple example code here showing what you tried to do in C++? It's fine if the code doesn't compile. I'm just trying to understand intent. |
Yes, I would say this is the key part:
All-in-all, I would want it to look like this:
This way, I can pass through the kwargs and the only difference for how an instance would be executed would be how it calculates true_pdf and observed_pdf. |
@rileyjmurray Oops, forgot to tag you here originally and been pretty busy the last 2 weeks. In any case, let me know if you think this type of inheritance is well-suited to C++. If not, we can talk about the next thing for me to take on. I have been thinking about FFT-based sketching in particular. Also, congrats on the release! And thanks for the shoutout. |
Hi @RylieWeaver, thanks for the ping. I'm scrambling with deadlines for the end of Sandia's fiscal year. Rest assured I haven't forgotten about this PR, or your broader interest in the project! Michael Mahoney has someone in his lab who's started work on SRHTs. If you're looking for something "functional" to work on (as opposed to testing infrastructure), I'd like to recommend exposing dedicated functions for sparse matrix-vector multiply (SPMV). I allude to this as something that's useful in the context of |
@rileyjmurray Hey, thanks! Not a worry, it was the past two weeks for me haha. I'll look into that and get back when I've got questions. |
Attempting to implement a KolmogorovSmirnovTester class, which will
(1) Mainly allow us to abstract away different function names for each distribution's 'observed_pdf' and
(2) Give a good framework for other types of tests to be done in the future as '______Tester'