338 Commits

Author SHA1 Message Date
Conner Fromknecht 99efa7a9f3 Fixed catalyst tests except example tests 2017-06-19 14:43:10 -07:00
Scott Sanderson be4e1b975d TEST: Add test for window_safe propagation. 2017-06-08 10:59:56 -04:00
Scott Sanderson 1e4a094fec Merge pull request #1833 from quantopian/labelarray-map
Add support for relabeling classifiers.
2017-06-07 17:57:18 -07:00
Scott Sanderson 61feedbd16 TST: Add test for missing values in relabel. 2017-06-07 18:21:13 -04:00
Scott Sanderson 3b8a6b543e BUG: Fix NoneType comparisons in PY3. 2017-06-07 18:21:03 -04:00
Scott Sanderson 5b9d5fecfb ENH: Add relabel method to string classifiers.
- Adds a `map` method to `LabelArray` that maps a unary function over
  the categories of a LabelArray, shrinking the underyling codes if
  possible.

- Adds a new `.relabel` method to string-dtype classifiers that maps a
  unary function over the unique elements of the underlying LabelArray.
  This is useful for things like cleaning noisy label data.
2017-06-07 13:14:12 -04:00
Ana Ruelas 092951470a DOC: Fix invalid sphinx sections 2017-06-05 15:52:57 -04:00
Ana Ruelas a88df2be0d ENH: Add run_chunked_pipeline method to PipelineEngine 2017-06-02 16:48:09 -04:00
Ana Ruelas bdd1f158a3 ENH: Add function for running pipelines in chunks 2017-06-02 16:47:55 -04:00
Richard Frank 955862b4b3 TST: Use fixture's trading env for FakeDataPortal or TradingAlgo
to avoid a new trading env needing to download data unnecessarily
2017-05-18 11:55:48 -04:00
Scott Sanderson 22df0a9cb9 MAINT/STY: Upgrade flake8 and fix new failures. 2017-05-15 11:45:04 -04:00
Maya Tydykov 497708d86e BUG: address pandas normalization bug on non-sorted DT index 2017-04-04 17:00:32 -04:00
Andrew Daniels 43d6004cff ENH: Adds StaticSids pipeline filter (#1717)
Useful for avoiding the need to create Asset objects when sids are
easier to use.

This is based off the existing implementation of StaticAssets, and
StaticAssets is now implemented as a wrapper around StaticSids.
2017-03-22 14:28:54 -04:00
Maya Tydykov f4455179d4 Merge pull request #1710 from quantopian/sort-pipeline-data-on-asofdate
Sort pipeline data on asofdate
2017-03-15 14:40:11 -04:00
Maya Tydykov 6e4060fc4f BUG: sort data on asof_date to resolve ts conflicts
MAINT: fix arg default and update docstring
2017-03-15 14:10:58 -04:00
Ana Ruelas b4e97bc9d8 TST: Add tests for winsorize factor 2017-03-07 17:14:27 -05:00
Ana Ruelas 309ec73faa ENH: Add winsorize factor 2017-03-06 14:08:28 -05:00
Maya Tydykov 382eef0e3d BUG: fix loader bug for 1 day 2017-02-15 16:44:45 -05:00
Maya Tydykov b1cae1b76a Merge pull request #1661 from quantopian/optionally-apply-deltas-adjustments
Optionally apply deltas adjustments
2017-01-31 15:40:43 -05:00
Maya Tydykov 5a9e91b567 TST: add arg to test assertion 2017-01-31 15:19:05 -05:00
Maya Tydykov 66d1a0ce78 TST: add test cases for int and object dispatching 2017-01-31 09:43:39 -05:00
Maya Tydykov 185e7a13f8 ENH: add Int64Overwrite and dispatching for it
BUG: column value should be float

DOC: update docs
2017-01-31 09:43:37 -05:00
Maya Tydykov 750837c5f8 MAINT: determine core loader overwrite types dynamically
TST: update test to reflect adjustment mapping change
2017-01-31 09:43:34 -05:00
Maya Tydykov 51eb11fbc9 BUG: make the events loader handle empty raw data
TST: add test case for empty raw events data

BUG: update for python compatibility

MAINT: Simplify assertion for empty events case.

DOC: Add comments on indexer unpacking.

MAINT: move some config to test method
2017-01-19 12:00:49 -05:00
Kathryn Glowinski 5025101d37 Adjustments to Component Dfs (#1620)
* ENH: SQLiteAdjustmentReader can return DF versions of tables.
2016-12-27 13:44:17 -05:00
Richard Frank 6c04f30eca MAINT: Removed unnecessary override 2016-12-20 11:57:26 -05:00
Joe Jevnik a5423083bf ENH: Allow custom chunks iterators for attach_pipeline 2016-12-15 19:58:19 -05:00
Joe Jevnik d52d6eddff BUG: fix blaze pipeline queries for asof_date 2016-12-01 14:35:59 -05:00
Scott Sanderson 4210a2f80f MAINT: Tweaks/cleanups in technical.py.
- Use `expect_bounded` to check inputs.
- Add tests for expected failures from `MACDSignal`.
- Use `float64` instead of `float` in a few places.  This prevents
  diverging behavior on 32-bit systems.
- Docstring edits.
2016-11-28 13:02:40 -05:00
Scott Sanderson c05635333e STY: Put whitespace between operators. 2016-11-28 12:57:03 -05:00
Scott Sanderson 52958a0340 TEST: Use parameter_space for randomized tests.
- Use a RandomState with a seed so that we have repeatible results.
- Use `randint` instead of `random_integers.` `random_integers` is
  deprecated.
- Use `parameter_space` to test multiple period lengths.
2016-11-28 12:57:03 -05:00
Ana Ruelas 3363237123 ENH: Add MACDSignal, test with random input 2016-11-23 11:43:29 -05:00
Ana Ruelas 435d5acd14 TST: Add test for annualized volatility factor 2016-11-21 14:24:28 -05:00
Ana Ruelas 10f5cc2cbb ENH: Actually use rolling windows for EWMA in MACD 2016-11-21 14:24:28 -05:00
Maya Tydykov 757e1c6367 ENH: allow estimates to be split-adjusted.
This modificaiton to the estimates loader allows the caller to pass
in an equity pricing loader which can then be used to get split data
for sids. That split data is then used to do point-in-time adjustments
of estimates data.

TST: add test for multiple estimates columns

TST: add test for multiple datasets requesting different columns

TST: add blaze versions for all next/previous tests
2016-11-18 09:39:54 -05:00
Scott Sanderson 1b9b3c1a29 MAINT: Rename SpecificAssets to StaticAssets.
This better reflects the intended usage of accepting a fixed set of
predetermined assets.
2016-11-01 11:01:36 -04:00
Joe Jevnik dd191f4ab2 STY: cleanup 2016-10-28 15:04:18 -04:00
Scott Sanderson bb2d25e67c ENH: Allow windows of NumericalExpression.
If all the inputs to an expr are window-safe, then the expr is itself
window-safe.
2016-10-28 15:04:18 -04:00
Scott Sanderson 582c44a4aa TEST: Add more populate_initial_workspace tests.
- Tests different pipeline lengths and window lengths.
- Tests a term that depends on a window of a term that's been
  precomputed.
2016-10-28 15:04:18 -04:00
Joe Jevnik d07f133579 STY: remove unused imports and method, clean up docs 2016-10-28 15:04:18 -04:00
Joe Jevnik af3e1016a0 TST: add tests for postprocess and to_workspace_value 2016-10-28 15:04:18 -04:00
Joe Jevnik bae4088cc0 ENH: cleanup branch based on feedback 2016-10-28 15:04:18 -04:00
Joe Jevnik 0123bb8a97 ENH: prune the graph based on the initial workspace 2016-10-28 15:04:18 -04:00
Joe Jevnik e3e4ad2735 ENH: update aliasedmixin repr 2016-10-28 15:04:18 -04:00
Joe Jevnik c8e40a3736 ENH: Make aliases filters, factors, and classifiers to give them their methods 2016-10-28 15:04:18 -04:00
Scott Sanderson 13c8139d45 WIP: Add Alias expression. 2016-10-28 15:04:18 -04:00
Joe Jevnik 67b35168db ENH: provide a hook for prepopulating the initial workspace 2016-10-28 15:04:18 -04:00
Maya Tydykov e1f008edcd TST: update adjustment tests - add gaps between sids
TST: add a seed for permuting
2016-10-21 16:53:56 -04:00
Eddie Hebert a1a99dd9aa MAINT: Limit perspective offset.
Limit the perspective offset to 1. There is a possibility that if a
consumer of the AdjustedArrayWindow does not fetch adjustments between
the end of the data window and the vantage points beyond the end of the
window.

Until that case has a solution, e.g. having the consumer of the
AdjustedArrayWindow include the perspective offset when calculating the
query for adjustments, limit the offsets to 1.
2016-10-17 15:08:11 -04:00
Scott Sanderson 0244f03411 DOC: Fix typo in comment. 2016-10-17 14:23:39 -04:00