Estimator for Generalized Score Distibution's Distibution's parameters using OpenCL for accelerating calculation on GPI.
pip install -r requirements.txt
- Script takes
scores.csv
file andgsd_prob_grid
in pandas or numpy format as input - output file will be a csv file with results decribed by values
- idx - index of sample
- psi - estimated mean (rating)
- rho - estimated variance
- log_likelihood - logarithm of likelihood value
- While
main.py
is implementation with timers and debug prints, the same can be achieved with one simple functiongsdest.start()
inside another code that takes only samples and grid files as input and handles everything else:import gsdest gsdest.start()
Optimize finding max likelihood loop to be less badDONE- Manage memory to not allocate too much in VRAM
Manage input values not to use default filesDONERefactor main to functionsDONEMake normal logger instead of simple printsDONE