Skip to content
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

Refactor timeseries.py #262

Merged
merged 10 commits into from
Dec 23, 2015
Merged

Refactor timeseries.py #262

merged 10 commits into from
Dec 23, 2015

Conversation

twiecki
Copy link
Contributor

@twiecki twiecki commented Dec 18, 2015

Quite a large refactoring.

  • Put risk metrics to beginning of timeseries.py (unfortunately this, and the remove of old code mess up the diff).
  • Add list of all risk metrics that can be computed just on returns and those which require factor returns.
  • Removal of portfolio code that I think should go somewhere else and did not look like production code.
  • Deprecate out_of_sample_vs_in_sample_returns_kde() and stability_of_timeseries().
  • Remove statsmodels and scikits-learn dependencies. Closes Remove scikits-learn and statsmodels dependencies #232.

These changes are required for #261.

CC @llllllllll, @a-campbell, @justinlent

* Put risk metrics to beginning of timeseries.py
* Add list of all risk metrics that can be computed just on returns and those which require factor returns.
* Deprecate out_of_sample_vs_in_sample_returns_kde() and stability_of_timeseries().
* Remove statsmodels and scikits-learn dependencies. Closes #232.
@twiecki twiecki mentioned this pull request Dec 18, 2015
@twiecki twiecki modified the milestone: 0.4 release Dec 21, 2015
@twiecki
Copy link
Contributor Author

twiecki commented Dec 21, 2015

@llllllllll Would love your input on this. If you're swamped with other things no worries and I'll just go ahead without you.

@@ -31,6 +28,9 @@
from .interesting_periods import PERIODS


#####################################
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This indicates to me that we should split this into a risk.py module here or pull the non-risk metric code into another module.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I actually started doing that already but backtracked because it wasn't clear that e.g. the rolling statistics shouldn't also go in there.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would either split this or kill the comment. If the distinction is not clear now then I am not sure the comment helps.

@twiecki twiecki force-pushed the refactor_timeseries.py branch 3 times, most recently from 2b18292 to 913f92e Compare December 22, 2015 14:45
@twiecki twiecki force-pushed the refactor_timeseries.py branch from 913f92e to 8ed4186 Compare December 22, 2015 14:47
@twiecki
Copy link
Contributor Author

twiecki commented Dec 22, 2015

@llllllllll Thanks for the great review. I addressed all issues.

@twiecki twiecki force-pushed the refactor_timeseries.py branch 2 times, most recently from d604210 to 596dd86 Compare December 22, 2015 18:37
twiecki added a commit that referenced this pull request Dec 23, 2015
@twiecki twiecki merged commit 8a73d48 into master Dec 23, 2015
@twiecki twiecki deleted the refactor_timeseries.py branch December 23, 2015 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants