mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-09 11:50:09 +08:00
Classifiers are computations that represent grouping keys. They can be used in conjuction with normalization functions like ``zscore`` or ``demean`` to perform normalizations over subsets of a dataset. Notable changes: - Added ``demean()`` and ``zscore()`` methods to ``Factor``. - Added a classifier versions of ``Latest`` and ``CustomTermMixin``. The .latest attribute of int64 dataset columns no produces a classifier by default. - Added ``Everything``, a classifier that maps all data to the same value. - Added ``zipline.lib.normalize``, which implements a naive, pure-Python grouped normalize function. This will likely be moved to Cython in a subsequent PR.
10 lines
180 B
Python
10 lines
180 B
Python
from .classifier import Classifier, CustomClassifier, Everything
|
|
from latest import Latest
|
|
|
|
__all__ = [
|
|
'Classifier',
|
|
'CustomClassifier',
|
|
'Everything',
|
|
'Latest',
|
|
]
|