frrsa
frrsa copied to clipboard
speed up & refactor fitting/scoring.py
Speed up and possibly fuse both functions.
Suggestions:
- if score_type=='pearson':
- use
np.corrcoef
to replace at least one for-loop (in case ofscoring
when multioutput & evaluating alphas: first change order of for-loops to then replace the then inner for-loop over targets)
- use
- if score_type!='pearson':
- use some sort of
mapfunc
- use some sort of
- use numba/etc for remaining for-loop