quantopian / alphalens

Performance analysis of predictive (alpha) stock factors
http://quantopian.github.io/alphalens
Apache License 2.0
3.2k stars 1.12k forks source link

BUG: factor_rank_autocorrelation infers turnover period in calendar... #324

Closed luca-s closed 5 years ago

luca-s commented 5 years ago

…space while periods could have different time space

quantile_turnover is affected by the same bug

closes Issue #323

twiecki commented 5 years ago

So this removes the ability to pass in anything more fine-grained than days? That's quite a hefty price-tag for fixing that edge case.

luca-s commented 5 years ago

No, don't worry. I didn't change the Alphalens behaviour. Due to the code change I noticed the are few test cases, which I created some time ago, that fail but also they don't make sense. Since it took some time to figure that out, I made sure the functions in utils reise now an exception when they receive a wrong parameter type.

luca-s commented 5 years ago

Just to be more detailed, the three tests were wrong for the following reason: