Feedback and improvements welcome.
I grabbed the Pipeline custom factor posted by Praveen Bhushan here:
https://www.quantopian.com/posts/piotroskis-f-score-algorithm
Note that the output of the factor is put through this function, with WIN_LIMIT = 0.0:
def preprocess(a):
a = np.nan_to_num(a - np.nanmean(a))
a = winsorize(a, limits=[WIN_LIMIT,WIN_LIMIT])
return preprocessing.scale(a)