SYMBOL INDEX (2158 symbols across 185 files) FILE: abupy/AlphaBu/ABuPickBase.py class AbuPickTimeWorkBase (line 19) | class AbuPickTimeWorkBase(six.with_metaclass(ABCMeta, AbuParamBase)): method fit (line 23) | def fit(self, *args, **kwargs): method init_sell_factors (line 32) | def init_sell_factors(self, *args, **kwargs): method init_buy_factors (line 39) | def init_buy_factors(self, *args, **kwargs): class AbuPickStockWorkBase (line 46) | class AbuPickStockWorkBase(six.with_metaclass(ABCMeta, AbuParamBase)): method fit (line 50) | def fit(self, *args, **kwargs): method init_stock_pickers (line 59) | def init_stock_pickers(self, *args, **kwargs): FILE: abupy/AlphaBu/ABuPickStockExecute.py function do_pick_stock_work (line 21) | def do_pick_stock_work(choice_symbols, benchmark, capital, stock_pickers): function do_pick_stock_thread_work (line 38) | def do_pick_stock_thread_work(choice_symbols, benchmark, capital, stock_... FILE: abupy/AlphaBu/ABuPickStockMaster.py class AbuPickStockMaster (line 25) | class AbuPickStockMaster(object): method do_pick_stock_with_process (line 29) | def do_pick_stock_with_process(cls, capital, benchmark, stock_pickers,... method do_pick_stock_with_process_mix_thread (line 103) | def do_pick_stock_with_process_mix_thread(cls, capital, benchmark, sto... FILE: abupy/AlphaBu/ABuPickStockWorker.py class AbuPickStockWorker (line 23) | class AbuPickStockWorker(AbuPickStockWorkBase): method __init__ (line 26) | def __init__(self, capital, benchmark, kl_pd_manager, choice_symbols=N... method __str__ (line 42) | def __str__(self): method init_stock_pickers (line 48) | def init_stock_pickers(self, stock_pickers): method fit (line 82) | def fit(self): FILE: abupy/AlphaBu/ABuPickTimeExecute.py class EFitError (line 29) | class EFitError(Enum): function _do_pick_time_work (line 46) | def _do_pick_time_work(capital, buy_factors, sell_factors, kl_pd, benchm... function do_symbols_with_same_factors (line 81) | def do_symbols_with_same_factors(target_symbols, benchmark, buy_factors,... function do_symbols_with_diff_factors (line 166) | def do_symbols_with_diff_factors(target_symbols, benchmark, factor_dict,... FILE: abupy/AlphaBu/ABuPickTimeMaster.py class AbuPickTimeMaster (line 26) | class AbuPickTimeMaster(object): method do_symbols_with_same_factors_process (line 30) | def do_symbols_with_same_factors_process(cls, target_symbols, benchmar... FILE: abupy/AlphaBu/ABuPickTimeWorker.py class AbuPickTimeWorker (line 34) | class AbuPickTimeWorker(AbuPickTimeWorkBase): method __init__ (line 37) | def __init__(self, cap, kl_pd, benchmark, buy_factors, sell_factors): method __str__ (line 66) | def __str__(self): method enable_task_pg (line 72) | def enable_task_pg(self): method _week_task (line 79) | def _week_task(self, today): method _month_task (line 99) | def _month_task(self, today): method _day_task (line 120) | def _day_task(self, today): method _task_attached_sell (line 143) | def _task_attached_sell(self, today, how): method _task_attached_ps (line 166) | def _task_attached_ps(self, today, is_week): method _task_loop (line 172) | def _task_loop(self, today): method fit (line 208) | def fit(self, *args, **kwargs): method init_sell_factors (line 247) | def init_sell_factors(self, sell_factors): method init_buy_factors (line 277) | def init_buy_factors(self, buy_factors): method filter_long_task_factors (line 308) | def filter_long_task_factors(self): FILE: abupy/BetaBu/ABuAtrPosition.py class AbuAtrPosition (line 23) | class AbuAtrPosition(AbuPositionBase): method fit_position (line 29) | def fit_position(self, factor_object): method _init_self (line 51) | def _init_self(self, **kwargs): FILE: abupy/BetaBu/ABuKellyPosition.py class AbuKellyPosition (line 11) | class AbuKellyPosition(AbuPositionBase): method fit_position (line 14) | def fit_position(self, factor_object): method _init_self (line 29) | def _init_self(self, **kwargs): FILE: abupy/BetaBu/ABuPositionBase.py class AbuPositionBase (line 33) | class AbuPositionBase(six.with_metaclass(ABCMeta, MarketMixin)): method __init__ (line 36) | def __init__(self, kl_pd_buy, factor_name, symbol_name, bp, read_cash,... method __str__ (line 59) | def __str__(self): method _init_self (line 70) | def _init_self(self, **kwargs): method fit_position (line 75) | def fit_position(self, factor_object): FILE: abupy/BetaBu/ABuPtPosition.py class AbuPtPosition (line 13) | class AbuPtPosition(AbuPositionBase): method fit_position (line 24) | def fit_position(self, factor_object): method _init_self (line 46) | def _init_self(self, **kwargs): FILE: abupy/CheckBu/ABuChecker.py class _NoInstances (line 21) | class _NoInstances(six.with_metaclass(ABCMeta, type)): method __call__ (line 24) | def __call__(cls, *args, **kwargs): class FuncChecker (line 28) | class FuncChecker(six.with_metaclass(ABCMeta, _NoInstances)): method check_iscallable (line 32) | def check_iscallable(func): class ArgChecker (line 41) | class ArgChecker(six.with_metaclass(ABCMeta, _NoInstances)): method check_type (line 45) | def check_type(*ty_args, **ty_kwargs): method check_bound (line 75) | def check_bound(*bd_args, **bd_kwargs): method _check_default (line 90) | def _check_default(check_no, *names, **_unused): method check_hasdefault (line 126) | def check_hasdefault(*names, **_unused): method check_nodefault (line 138) | def check_nodefault(*names, **_unused): method check_hasargs (line 150) | def check_hasargs(func): method check_haskwargs (line 173) | def check_haskwargs(func): method check_subset (line 195) | def check_subset(*ss_args, **ss_kwargs): class ReturnChecker (line 225) | class ReturnChecker(six.with_metaclass(ABCMeta, _NoInstances)): method check_type (line 229) | def check_type(*types, **_unused): method check_bound (line 253) | def check_bound(*bounds, **_unused): method check_subset (line 270) | def check_subset(*ss_args, **_unused): FILE: abupy/CheckBu/ABuChecks.py class CheckError (line 19) | class CheckError(six.with_metaclass(ABCMeta, TypeError)): function bound_check (line 24) | def bound_check(bound): function bound_valid_and_check (line 51) | def bound_valid_and_check(bound): function subset_check (line 74) | def subset_check(subset): function type_check (line 92) | def type_check(arg_ty): FILE: abupy/CheckBu/ABuFuncUtil.py class ArgNoDefault (line 25) | class ArgNoDefault(six.with_metaclass(ABCMeta, TypeError)): function get_func_name (line 30) | def get_func_name(func): function get_arg_defaults (line 43) | def get_arg_defaults(func): function check_bind (line 59) | def check_bind(func, *args, **kwargs): function bind_partial (line 91) | def bind_partial(func, *args, **kwargs): FILE: abupy/CheckBu/ABuProcessor.py function arg_process (line 24) | def arg_process(*arg_funcs, **kwarg_funcs): function return_process (line 53) | def return_process(*funcs, **_unused): function _apply_funcs (line 77) | def _apply_funcs(return_vals, funcs): FILE: abupy/CoreBu/ABu.py function run_loop_back (line 27) | def run_loop_back(read_cash, buy_factors, sell_factors, stock_picks=None... function run_kl_update (line 137) | def run_kl_update(n_folds=2, start=None, end=None, market=None, n_jobs=1... function store_abu_result_tuple (line 185) | def store_abu_result_tuple(abu_result_tuple, n_folds=None, store_type=ES... function load_abu_result_tuple (line 199) | def load_abu_result_tuple(n_folds=None, store_type=EStoreAbu.E_STORE_NOR... function gen_buy_from_chinese (line 214) | def gen_buy_from_chinese(*args, **kwargs): FILE: abupy/CoreBu/ABuBase.py class FreezeAttrMixin (line 22) | class FreezeAttrMixin(object): method _freeze (line 25) | def _freeze(self): method __setattr__ (line 29) | def __setattr__(self, key, value): class PickleStateMixin (line 35) | class PickleStateMixin(object): method __getstate__ (line 47) | def __getstate__(self): method __setstate__ (line 56) | def __setstate__(self, state): method pick_extend_work (line 100) | def pick_extend_work(self): method unpick_extend_work (line 104) | def unpick_extend_work(self, state): class AbuParamBase (line 109) | class AbuParamBase(object): method get_params (line 113) | def get_params(cls): method _filter_attr (line 126) | def _filter_attr(self, user): method to_dict (line 136) | def to_dict(self, user=True): method to_series (line 140) | def to_series(self, user=True): method __str__ (line 144) | def __str__(self): FILE: abupy/CoreBu/ABuDeprecated.py class AbuDeprecated (line 11) | class AbuDeprecated(object): method __init__ (line 14) | def __init__(self, tip_info=''): method __call__ (line 18) | def __call__(self, obj): method _decorate_class (line 26) | def _decorate_class(self, cls): method _decorate_fun (line 48) | def _decorate_fun(self, fun): method _update_doc (line 66) | def _update_doc(self, func_doc): FILE: abupy/CoreBu/ABuEnv.py function str_is_cn (line 109) | def str_is_cn(a_str): class EMarketSourceType (line 206) | class EMarketSourceType(Enum): class EMarketTargetType (line 236) | class EMarketTargetType(Enum): class EMarketSubType (line 260) | class EMarketSubType(Enum): class EMarketDataSplitMode (line 318) | class EMarketDataSplitMode(Enum): class EMarketDataFetchMode (line 329) | class EMarketDataFetchMode(Enum): function enable_example_env_ipython (line 356) | def enable_example_env_ipython(show_log=True, check_cn=True): function disable_example_env_ipython (line 403) | def disable_example_env_ipython(show_log=True): class EDataCacheType (line 415) | class EDataCacheType(Enum): function init_logging (line 491) | def init_logging(): function init_plot_set (line 530) | def init_plot_set(): FILE: abupy/CoreBu/ABuEnvProcess.py function add_process_env_sig (line 20) | def add_process_env_sig(func): class AbuEnvProcess (line 61) | class AbuEnvProcess(object): method __init__ (line 64) | def __init__(self): method register_module (line 78) | def register_module(self): method copy_process_env (line 102) | def copy_process_env(self): method __str__ (line 118) | def __str__(self): FILE: abupy/CoreBu/ABuFixes.py function _parse_version (line 24) | def _parse_version(version_string): function as_bytes (line 98) | def as_bytes(s): function lru_cache (line 112) | def lru_cache(maxsize=100): function combinations_with_replacement (line 128) | def combinations_with_replacement(iterable, r): class partial (line 149) | class partial(object): method __init__ (line 150) | def __init__(self, func, *args, **keywords): method __call__ (line 156) | def __call__(self, *args, **keywords): function check_random_state (line 193) | def check_random_state(seed): class KFold (line 224) | class KFold(object): method __init__ (line 230) | def __init__(self, n, n_folds=3, shuffle=False, random_state=None): method __iter__ (line 260) | def __iter__(self): method _iter_test_masks (line 268) | def _iter_test_masks(self): method _empty_mask (line 274) | def _empty_mask(self): method _iter_test_indices (line 277) | def _iter_test_indices(self): method __repr__ (line 288) | def __repr__(self): method __len__ (line 298) | def __len__(self): function array_equal (line 332) | def array_equal(a1, a2): function rankdata (line 348) | def rankdata(a, method='average'): FILE: abupy/CoreBu/ABuParallel.py function delayed (line 39) | def delayed(function): class Parallel (line 57) | class Parallel(object): method __init__ (line 60) | def __init__(self, n_jobs=1, backend='multiprocessing', verbose=0, method __call__ (line 75) | def __call__(self, iterable): function run_in_thread (line 101) | def run_in_thread(func, *args, **kwargs): function run_in_subprocess (line 114) | def run_in_subprocess(func, *args, **kwargs): FILE: abupy/CoreBu/ABuPdHelper.py function __pd_object_covert_start (line 54) | def __pd_object_covert_start(iter_obj): function _pd_object_covert (line 70) | def _pd_object_covert(func): function _pd_rolling (line 88) | def _pd_rolling(pd_object, pd_object_cm, how, *args, **kwargs): function _pd_ewm (line 130) | def _pd_ewm(pd_object, pd_object_cm, how, *args, **kwargs): function _pd_expanding (line 169) | def _pd_expanding(pd_object, pd_object_cm, how, *args, **kwargs): function pd_resample (line 212) | def pd_resample(pd_object, rule, *args, **kwargs): FILE: abupy/CoreBu/ABuStore.py class AbuResultTuple (line 17) | class AbuResultTuple(namedtuple('AbuResultTuple', method __repr__ (line 32) | def __repr__(self): class EStoreAbu (line 40) | class EStoreAbu(Enum): function dump_custom_abu_index_csv (line 60) | def dump_custom_abu_index_csv(custom_name, custom_desc): function dump_custom_ump_index_csv (line 91) | def dump_custom_ump_index_csv(custom_name, ump_unique, is_main_ump, cust... function _load_custom_index (line 124) | def _load_custom_index(*paths): function load_custom_abu_index (line 131) | def load_custom_abu_index(): function load_custom_ump_index (line 136) | def load_custom_ump_index(): function _del_custom_index (line 141) | def _del_custom_index(custom_name, *paths): function del_custom_abu_index (line 151) | def del_custom_abu_index(custom_name): function del_custom_ump_index (line 156) | def del_custom_ump_index(custom_name): function _cache_abu_result_path (line 161) | def _cache_abu_result_path(n_folds, store_type, custom_name): function store_abu_result_tuple (line 199) | def store_abu_result_tuple(abu_result_tuple, n_folds=None, store_type=ES... function load_abu_result_tuple (line 222) | def load_abu_result_tuple(n_folds=None, store_type=EStoreAbu.E_STORE_NOR... function delete_abu_result_tuple (line 248) | def delete_abu_result_tuple(n_folds=None, store_type=EStoreAbu.E_STORE_N... function store_abu_result_out_put (line 274) | def store_abu_result_out_put(abu_result_tuple, show_log=True): FILE: abupy/CrawlBu/ABuXqApi.py class IndustryUrl (line 50) | class IndustryUrl(object): method __init__ (line 51) | def __init__(self, market, **kwargs): method init_base_url (line 57) | def init_base_url(self): method url (line 68) | def url(self): class StockListUrl (line 75) | class StockListUrl(IndustryUrl): method init_base_url (line 76) | def init_base_url(self): function test (line 87) | def test(): FILE: abupy/CrawlBu/ABuXqCrawl.py function __crawl_stock_parallel (line 33) | def __crawl_stock_parallel(market, url): function __crawl_stock_info_parallel (line 50) | def __crawl_stock_info_parallel(market, symbols, process): function hq_nav (line 56) | def hq_nav(): function crawl_stock_code (line 68) | def crawl_stock_code(markets=('CN', 'HK', 'US')): function crawl_stock_info (line 87) | def crawl_stock_info(markets): function ensure_symbol (line 112) | def ensure_symbol(symbol): function update_all (line 164) | def update_all(markets=('US', 'CN', 'HK')): function query_symbol_info (line 171) | def query_symbol_info(symbol): FILE: abupy/CrawlBu/ABuXqCrawlImp.py function _bs4_html (line 24) | def _bs4_html(content): function _xpath (line 34) | def _xpath(content): class BaseXQCrawlBrower (line 45) | class BaseXQCrawlBrower(six.with_metaclass(ABCMeta, object)): method __init__ (line 50) | def __init__(self, base_url): method _crawl_imp (line 65) | def _crawl_imp(self, *args, **kwargs): method get (line 68) | def get(self, url): method content (line 72) | def content(self): method crawl (line 75) | def crawl(self, *args, **kwargs): method __enter__ (line 91) | def __enter__(self): method __exit__ (line 94) | def __exit__(self, exc_type, exc_val, exc_tb): method _scroll_to_bottom (line 97) | def _scroll_to_bottom(self, element): class BaseHQCrawlBrower (line 102) | class BaseHQCrawlBrower(BaseXQCrawlBrower): method _crawl_imp (line 103) | def _crawl_imp(self, *args, **kwargs): method __init__ (line 106) | def __init__(self, url): class NavHQCrawlBrower (line 111) | class NavHQCrawlBrower(BaseHQCrawlBrower): method _crawl_imp (line 112) | def _crawl_imp(self, *args, **kwargs): method __init__ (line 115) | def __init__(self): class StockListCrawlBrower (line 119) | class StockListCrawlBrower(BaseHQCrawlBrower): method _ensure_max_page_size (line 120) | def _ensure_max_page_size(self): method _curr_page_counts (line 135) | def _curr_page_counts(self): method _curr_total_page (line 140) | def _curr_total_page(self): method _curr_page_items (line 152) | def _curr_page_items(self): method _goto_next_page (line 163) | def _goto_next_page(self): method _crawl_imp (line 171) | def _crawl_imp(self, *args, **kwargs): method __init__ (line 191) | def __init__(self, url): function _parse_nav (line 195) | def _parse_nav(content): class StockInfoListBrower (line 225) | class StockInfoListBrower(BaseXQCrawlBrower): method __init__ (line 226) | def __init__(self, market, symbols): method __exit__ (line 232) | def __exit__(self, exc_type, exc_val, exc_tb): method _parse_stock_info (line 237) | def _parse_stock_info(self): method _crawl_imp (line 280) | def _crawl_imp(self, *args, **kwargs): FILE: abupy/CrawlBu/ABuXqFile.py function map_stock_list_rom (line 32) | def map_stock_list_rom(market): function map_stock_list (line 36) | def map_stock_list(market): function map_cache_stock_info (line 40) | def map_cache_stock_info(market, symbol): function save_cache_stock_info (line 51) | def save_cache_stock_info(stock_info, market, symbol): function exist_stock_info (line 57) | def exist_stock_info(market, symbol): function read_stock_symbol_list (line 61) | def read_stock_symbol_list(market): function read_stock_symbol_name (line 65) | def read_stock_symbol_name(market, symbol): function error_stock_info (line 71) | def error_stock_info(market, symbol, error_info): function read_all_error_stock_info_symbol (line 84) | def read_all_error_stock_info_symbol(): function query_a_stock (line 92) | def query_a_stock(market, symbol): function _create_a_column (line 97) | def _create_a_column(info, columns, size): function merge_stock_info_to_stock_list (line 109) | def merge_stock_info_to_stock_list(market=('US', 'HK', 'CN')): function del_columns (line 136) | def del_columns(df, columns): function drop_nuisance (line 142) | def drop_nuisance(df): function fix_xq_columns_name (line 149) | def fix_xq_columns_name(): FILE: abupy/DLBu/ABuDLImgStd.py function std_img_from_root_dir (line 35) | def std_img_from_root_dir(root_dir, a_ext): function covert_to_jpeg (line 61) | def covert_to_jpeg(org_img, dst_img=None): function find_img_by_ext (line 74) | def find_img_by_ext(ext, root_dir): function change_to_real_type (line 95) | def change_to_real_type(img_list): FILE: abupy/DLBu/ABuDLTVSplit.py function train_val_split (line 21) | def train_val_split(train_path, n_folds=10): FILE: abupy/ExtBu/empyrical/_version.py function get_versions (line 20) | def get_versions(): FILE: abupy/ExtBu/empyrical/stats.py function _adjust_returns (line 47) | def _adjust_returns(returns, adjustment_factor): function annualization_factor (line 66) | def annualization_factor(period, annualization): function cum_returns (line 105) | def cum_returns(returns, starting_value=0): function cum_returns_final (line 155) | def cum_returns_final(returns, starting_value=0): function array_wrap (line 185) | def array_wrap(arg_name, _not_specified=object()): function nancumsum (line 220) | def nancumsum(a, axis=None, dtype=None): function aggregate_returns (line 267) | def aggregate_returns(returns, convert_to): function max_drawdown (line 302) | def max_drawdown(returns): function annual_return (line 330) | def annual_return(returns, period=DAILY, annualization=None): function annual_volatility (line 373) | def annual_volatility(returns, period=DAILY, alpha=2.0, function calmar_ratio (line 413) | def calmar_ratio(returns, period=DAILY, annualization=None): function omega_ratio (line 462) | def omega_ratio(returns, risk_free=0.0, required_return=0.0, function sharpe_ratio (line 516) | def sharpe_ratio(returns, risk_free=0, period=DAILY, annualization=None): function sortino_ratio (line 568) | def sortino_ratio(returns, required_return=0, period=DAILY, function downside_risk (line 620) | def downside_risk(returns, required_return=0, period=DAILY, function information_ratio (line 672) | def information_ratio(returns, factor_returns): function _aligned_series (line 706) | def _aligned_series(*many_series): function alpha_beta (line 727) | def alpha_beta(returns, factor_returns, risk_free=0.0, period=DAILY, function alpha_beta_aligned (line 771) | def alpha_beta_aligned(returns, factor_returns, risk_free=0.0, period=DA... function alpha (line 817) | def alpha(returns, factor_returns, risk_free=0.0, period=DAILY, function alpha_aligned (line 862) | def alpha_aligned(returns, factor_returns, risk_free=0.0, period=DAILY, function beta (line 918) | def beta(returns, factor_returns, risk_free=0.0): function beta_aligned (line 946) | def beta_aligned(returns, factor_returns, risk_free=0.0): function stability_of_timeseries (line 989) | def stability_of_timeseries(returns): function tail_ratio (line 1019) | def tail_ratio(returns): function cagr (line 1051) | def cagr(returns, period=DAILY, annualization=None): FILE: abupy/ExtBu/funcsigs.py function formatannotation (line 31) | def formatannotation(annotation, base_module=None): function _get_user_defined_method (line 39) | def _get_user_defined_method(cls, method_name, *nested): function signature (line 55) | def signature(obj): class _void (line 179) | class _void(object): class _empty (line 183) | class _empty(object): class _ParameterKind (line 187) | class _ParameterKind(int): method __new__ (line 188) | def __new__(self, *args, **kwargs): method __str__ (line 193) | def __str__(self): method __repr__ (line 196) | def __repr__(self): class Parameter (line 207) | class Parameter(object): method __init__ (line 237) | def __init__(self, name, kind, default=_empty, annotation=_empty, method name (line 267) | def name(self): method default (line 271) | def default(self): method annotation (line 275) | def annotation(self): method kind (line 279) | def kind(self): method replace (line 282) | def replace(self, name=_void, kind=_void, annotation=_void, method __str__ (line 304) | def __str__(self): method __repr__ (line 328) | def __repr__(self): method __hash__ (line 332) | def __hash__(self): method __eq__ (line 336) | def __eq__(self, other): method __ne__ (line 343) | def __ne__(self, other): class BoundArguments (line 347) | class BoundArguments(object): method __init__ (line 364) | def __init__(self, signature, arguments): method signature (line 369) | def signature(self): method args (line 373) | def args(self): method kwargs (line 401) | def kwargs(self): method __hash__ (line 431) | def __hash__(self): method __eq__ (line 435) | def __eq__(self, other): method __ne__ (line 440) | def __ne__(self, other): class Signature (line 444) | class Signature(object): method __init__ (line 474) | def __init__(self, parameters=None, return_annotation=_empty, method from_function (line 513) | def from_function(cls, func): method parameters (line 586) | def parameters(self): method return_annotation (line 593) | def return_annotation(self): method replace (line 596) | def replace(self, parameters=_void, return_annotation=_void): method __hash__ (line 611) | def __hash__(self): method __eq__ (line 615) | def __eq__(self, other): method __ne__ (line 645) | def __ne__(self, other): method _bind (line 648) | def _bind(self, args, kwargs, partial=False): method bind (line 776) | def bind(self, *args, **kwargs): method bind_partial (line 783) | def bind_partial(self, *args, **kwargs): method __str__ (line 790) | def __str__(self): FILE: abupy/ExtBu/futures/_base.py class Error (line 45) | class Error(Exception): class CancelledError (line 49) | class CancelledError(Error): class TimeoutError (line 53) | class TimeoutError(Error): class _Waiter (line 57) | class _Waiter(object): method __init__ (line 59) | def __init__(self): method add_result (line 63) | def add_result(self, future): method add_exception (line 66) | def add_exception(self, future): method add_cancelled (line 69) | def add_cancelled(self, future): class _AsCompletedWaiter (line 72) | class _AsCompletedWaiter(_Waiter): method __init__ (line 75) | def __init__(self): method add_result (line 79) | def add_result(self, future): method add_exception (line 84) | def add_exception(self, future): method add_cancelled (line 89) | def add_cancelled(self, future): class _FirstCompletedWaiter (line 94) | class _FirstCompletedWaiter(_Waiter): method add_result (line 97) | def add_result(self, future): method add_exception (line 101) | def add_exception(self, future): method add_cancelled (line 105) | def add_cancelled(self, future): class _AllCompletedWaiter (line 109) | class _AllCompletedWaiter(_Waiter): method __init__ (line 112) | def __init__(self, num_pending_calls, stop_on_exception): method _decrement_pending_calls (line 118) | def _decrement_pending_calls(self): method add_result (line 124) | def add_result(self, future): method add_exception (line 128) | def add_exception(self, future): method add_cancelled (line 135) | def add_cancelled(self, future): class _AcquireFutures (line 139) | class _AcquireFutures(object): method __init__ (line 142) | def __init__(self, futures): method __enter__ (line 145) | def __enter__(self): method __exit__ (line 149) | def __exit__(self, *args): function _create_and_install_waiters (line 153) | def _create_and_install_waiters(fs, return_when): function as_completed (line 174) | def as_completed(fs, timeout=None): function wait (line 235) | def wait(fs, timeout=None, return_when=ALL_COMPLETED): class Future (line 284) | class Future(object): method __init__ (line 287) | def __init__(self): method _invoke_callbacks (line 297) | def _invoke_callbacks(self): method __repr__ (line 304) | def __repr__(self): method cancel (line 321) | def cancel(self): method cancelled (line 340) | def cancelled(self): method running (line 345) | def running(self): method done (line 350) | def done(self): method __get_result (line 355) | def __get_result(self): method add_done_callback (line 362) | def add_done_callback(self, fn): method result (line 379) | def result(self, timeout=None): method exception_info (line 410) | def exception_info(self, timeout=None): method exception (line 443) | def exception(self, timeout=None): method set_running_or_notify_cancel (line 463) | def set_running_or_notify_cancel(self): method set_result (line 503) | def set_result(self, result): method set_exception_info (line 516) | def set_exception_info(self, exception, traceback): method set_exception (line 531) | def set_exception(self, exception): class Executor (line 538) | class Executor(object): method submit (line 541) | def submit(self, fn, *args, **kwargs): method map (line 552) | def map(self, fn, *iterables, **kwargs): method shutdown (line 590) | def shutdown(self, wait=True): method __enter__ (line 603) | def __enter__(self): method __exit__ (line 606) | def __exit__(self, exc_type, exc_val, exc_tb): FILE: abupy/ExtBu/futures/process.py function _python_exit (line 73) | def _python_exit(): class _WorkItem (line 88) | class _WorkItem(object): method __init__ (line 89) | def __init__(self, future, fn, args, kwargs): class _ResultItem (line 95) | class _ResultItem(object): method __init__ (line 96) | def __init__(self, work_id, exception=None, result=None): class _CallItem (line 101) | class _CallItem(object): method __init__ (line 102) | def __init__(self, work_id, fn, args, kwargs): function _process_worker (line 108) | def _process_worker(call_queue, result_queue): function _add_call_item_to_queue (line 137) | def _add_call_item_to_queue(pending_work_items, function _queue_management_worker (line 174) | def _queue_management_worker(executor_reference, function _check_system_limits (line 242) | def _check_system_limits(): class ProcessPoolExecutor (line 265) | class ProcessPoolExecutor(_base.Executor): method __init__ (line 266) | def __init__(self, max_workers=None): method _start_queue_management_thread (line 297) | def _start_queue_management_thread(self): method _adjust_process_count (line 315) | def _adjust_process_count(self): method submit (line 324) | def submit(self, fn, *args, **kwargs): method shutdown (line 343) | def shutdown(self, wait=True): FILE: abupy/ExtBu/futures/thread.py function _python_exit (line 32) | def _python_exit(): class _WorkItem (line 43) | class _WorkItem(object): method __init__ (line 44) | def __init__(self, future, fn, args, kwargs): method run (line 50) | def run(self): function _worker (line 62) | def _worker(executor_reference, work_queue): class ThreadPoolExecutor (line 84) | class ThreadPoolExecutor(_base.Executor): method __init__ (line 85) | def __init__(self, max_workers): method submit (line 98) | def submit(self, fn, *args, **kwargs): method _adjust_thread_count (line 111) | def _adjust_thread_count(self): method shutdown (line 127) | def shutdown(self, wait=True): FILE: abupy/ExtBu/joblib/_compat.py function with_metaclass (line 18) | def with_metaclass(meta, *bases): FILE: abupy/ExtBu/joblib/_memory_helpers.py function _get_normal_name (line 12) | def _get_normal_name(orig_enc): function _detect_encoding (line 23) | def _detect_encoding(readline): function open_py_source (line 96) | def open_py_source(filename): FILE: abupy/ExtBu/joblib/_parallel_backends.py class ParallelBackendBase (line 21) | class ParallelBackendBase(with_metaclass(ABCMeta)): method effective_n_jobs (line 25) | def effective_n_jobs(self, n_jobs): method apply_async (line 43) | def apply_async(self, func, callback=None): method configure (line 46) | def configure(self, n_jobs=1, parallel=None, **backend_args): method terminate (line 55) | def terminate(self): method compute_batch_size (line 58) | def compute_batch_size(self): method batch_completed (line 62) | def batch_completed(self, batch_size, duration): method get_exceptions (line 65) | def get_exceptions(self): method abort_everything (line 69) | def abort_everything(self, ensure_ready=True): class SequentialBackend (line 94) | class SequentialBackend(ParallelBackendBase): method effective_n_jobs (line 101) | def effective_n_jobs(self, n_jobs): method apply_async (line 107) | def apply_async(self, func, callback=None): class PoolManagerMixin (line 115) | class PoolManagerMixin(object): method effective_n_jobs (line 118) | def effective_n_jobs(self, n_jobs): method terminate (line 130) | def terminate(self): method apply_async (line 137) | def apply_async(self, func, callback=None): method abort_everything (line 141) | def abort_everything(self, ensure_ready=True): class AutoBatchingMixin (line 149) | class AutoBatchingMixin(object): method compute_batch_size (line 166) | def compute_batch_size(self): method batch_completed (line 212) | def batch_completed(self, batch_size, duration): class ThreadingBackend (line 229) | class ThreadingBackend(PoolManagerMixin, ParallelBackendBase): method configure (line 239) | def configure(self, n_jobs=1, parallel=None, **backend_args): class MultiprocessingBackend (line 250) | class MultiprocessingBackend(PoolManagerMixin, AutoBatchingMixin, method effective_n_jobs (line 262) | def effective_n_jobs(self, n_jobs): method configure (line 290) | def configure(self, n_jobs=1, parallel=None, **backend_args): method terminate (line 315) | def terminate(self): class ImmediateResult (line 322) | class ImmediateResult(object): method __init__ (line 323) | def __init__(self, batch): method get (line 328) | def get(self): class SafeFunction (line 332) | class SafeFunction(object): method __init__ (line 339) | def __init__(self, func): method __call__ (line 342) | def __call__(self, *args, **kwargs): class FallbackToBackend (line 356) | class FallbackToBackend(Exception): method __init__ (line 359) | def __init__(self, backend): FILE: abupy/ExtBu/joblib/disk.py function disk_used (line 18) | def disk_used(path): function memstr_to_bytes (line 34) | def memstr_to_bytes(text): function mkdirp (line 48) | def mkdirp(d): function rm_subdirs (line 64) | def rm_subdirs(path, onerror=None): FILE: abupy/ExtBu/joblib/format_stack.py function safe_repr (line 42) | def safe_repr(value): function eq_repr (line 71) | def eq_repr(value, repr=safe_repr): function uniq_stable (line 76) | def uniq_stable(elems): function fix_frame_records_filenames (line 98) | def fix_frame_records_filenames(records): function _fixed_getframes (line 119) | def _fixed_getframes(etb, context=1, tb_offset=0): function _format_traceback_lines (line 155) | def _format_traceback_lines(lnum, index, lines, lvals=None): function format_records (line 184) | def format_records(records): # , print_globals=False): function format_exc (line 331) | def format_exc(etype, evalue, etb, context=5, tb_offset=0): function format_outer_frames (line 380) | def format_outer_frames(context=5, stack_start=None, stack_end=None, FILE: abupy/ExtBu/joblib/func_inspect.py function get_func_code (line 21) | def get_func_code(func): function _clean_win_chars (line 77) | def _clean_win_chars(string): function get_func_name (line 91) | def get_func_name(func, resolv_alias=True, win_characters=True): function getfullargspec (line 160) | def getfullargspec(func): function _signature_str (line 186) | def _signature_str(function_name, arg_spec): function _function_called_str (line 196) | def _function_called_str(function_name, args, kwargs): function filter_args (line 207) | def filter_args(func, ignore_lst, args=(), kwargs=dict()): function format_signature (line 319) | def format_signature(func, *args, **kwargs): function format_call (line 345) | def format_call(func, args, kwargs, object_name="Memory"): FILE: abupy/ExtBu/joblib/hashing.py class _ConsistentSet (line 26) | class _ConsistentSet(object): method __init__ (line 30) | def __init__(self, set_sequence): class _MyHash (line 44) | class _MyHash(object): method __init__ (line 47) | def __init__(self, *args): class Hasher (line 51) | class Hasher(Pickler): method __init__ (line 56) | def __init__(self, hash_name='md5'): method hash (line 66) | def hash(self, obj, return_digest=True): method save (line 77) | def save(self, obj): method memoize (line 96) | def memoize(self, obj): method save_global (line 107) | def save_global(self, obj, name=None, pack=struct.pack): method _batch_setitems (line 139) | def _batch_setitems(self, items): method save_set (line 153) | def save_set(self, set_items): class NumpyHasher (line 160) | class NumpyHasher(Hasher): method __init__ (line 164) | def __init__(self, hash_name='md5', coerce_mmap=False): method save (line 184) | def save(self, obj): function hash (line 245) | def hash(obj, hash_name='md5', coerce_mmap=False): FILE: abupy/ExtBu/joblib/logger.py function _squeeze_time (line 23) | def _squeeze_time(t): function format_time (line 34) | def format_time(t): function short_format_time (line 39) | def short_format_time(t): function pformat (line 47) | def pformat(obj, indent=0, depth=3): class Logger (line 63) | class Logger(object): method __init__ (line 67) | def __init__(self, depth=3): method warn (line 76) | def warn(self, msg): method debug (line 79) | def debug(self, msg): method format (line 83) | def format(self, obj, indent=0): class PrintTime (line 92) | class PrintTime(object): method __init__ (line 96) | def __init__(self, logfile=None, logdir=None): method __call__ (line 133) | def __call__(self, msg='', total=False): FILE: abupy/ExtBu/joblib/memory.py function extract_first_line (line 56) | def extract_first_line(func_code): class JobLibCollisionWarning (line 69) | class JobLibCollisionWarning(UserWarning): function _get_func_fullname (line 74) | def _get_func_fullname(func): function _cache_key_to_dir (line 84) | def _cache_key_to_dir(cachedir, func, argument_hash): function _load_output (line 100) | def _load_output(output_dir, func_name, timestamp=None, metadata=None, class MemorizedResult (line 144) | class MemorizedResult(Logger): method __init__ (line 170) | def __init__(self, cachedir, func, argument_hash, method get (line 200) | def get(self): method clear (line 207) | def clear(self): method __repr__ (line 211) | def __repr__(self): method __reduce__ (line 220) | def __reduce__(self): class NotMemorizedResult (line 225) | class NotMemorizedResult(object): method __init__ (line 232) | def __init__(self, value): method get (line 236) | def get(self): method clear (line 242) | def clear(self): method __repr__ (line 246) | def __repr__(self): method __getstate__ (line 256) | def __getstate__(self): method __setstate__ (line 259) | def __setstate__(self, state): class NotMemorizedFunc (line 267) | class NotMemorizedFunc(object): method __init__ (line 279) | def __init__(self, func): method __call__ (line 282) | def __call__(self, *args, **kwargs): method call_and_shelve (line 285) | def call_and_shelve(self, *args, **kwargs): method __reduce__ (line 288) | def __reduce__(self): method __repr__ (line 291) | def __repr__(self): method clear (line 297) | def clear(self, warn=True): class MemorizedFunc (line 305) | class MemorizedFunc(Logger): method __init__ (line 343) | def __init__(self, func, cachedir, ignore=None, mmap_mode=None, method _cached_call (line 402) | def _cached_call(self, args, kwargs): method call_and_shelve (line 461) | def call_and_shelve(self, *args, **kwargs): method __call__ (line 482) | def __call__(self, *args, **kwargs): method __reduce__ (line 485) | def __reduce__(self): method format_signature (line 493) | def format_signature(self, *args, **kwargs): method format_call (line 498) | def format_call(self, *args, **kwargs): method _get_argument_hash (line 507) | def _get_argument_hash(self, *args, **kwargs): method _get_output_dir (line 512) | def _get_output_dir(self, *args, **kwargs): method _get_func_dir (line 523) | def _get_func_dir(self, mkdir=True): method _hash_func (line 532) | def _hash_func(self): method _write_func_code (line 537) | def _write_func_code(self, filename, func_code, first_line): method _check_previous_func_code (line 566) | def _check_previous_func_code(self, stacklevel=2): method clear (line 654) | def clear(self, warn=True): method call (line 667) | def call(self, *args, **kwargs): method _persist_output (line 687) | def _persist_output(self, output, dir): method _persist_input (line 699) | def _persist_input(self, output_dir, duration, args, kwargs, method load_output (line 753) | def load_output(self, output_dir): method __repr__ (line 772) | def __repr__(self): class Memory (line 783) | class Memory(Logger): method __init__ (line 796) | def __init__(self, cachedir, mmap_mode=None, compress=False, verbose=1): method cache (line 832) | def cache(self, func=None, ignore=None, verbose=None, method clear (line 879) | def clear(self, warn=True): method eval (line 887) | def eval(self, func, *args, **kwargs): method __repr__ (line 904) | def __repr__(self): method __reduce__ (line 910) | def __reduce__(self): FILE: abupy/ExtBu/joblib/my_exceptions.py class JoblibException (line 12) | class JoblibException(Exception): method __init__ (line 14) | def __init__(self, *args): method __repr__ (line 28) | def __repr__(self): class TransportableException (line 40) | class TransportableException(JoblibException): method __init__ (line 45) | def __init__(self, message, etype): class WorkerInterrupt (line 53) | class WorkerInterrupt(Exception): function _mk_exception (line 63) | def _mk_exception(exception, name=None): function _mk_common_exceptions (line 91) | def _mk_common_exceptions(): FILE: abupy/ExtBu/joblib/numpy_pickle.py class NumpyArrayWrapper (line 34) | class NumpyArrayWrapper(object): method __init__ (line 64) | def __init__(self, subclass, shape, order, dtype, allow_mmap=False): method write_array (line 72) | def write_array(self, array, pickler): method read_array (line 94) | def read_array(self, unpickler): method read_mmap (line 148) | def read_mmap(self, unpickler): method read (line 165) | def read(self, unpickler): class NumpyPickler (line 200) | class NumpyPickler(Pickler): method __init__ (line 218) | def __init__(self, fp, protocol=None): method _create_array_wrapper (line 236) | def _create_array_wrapper(self, array): method save (line 247) | def save(self, obj): class NumpyUnpickler (line 283) | class NumpyUnpickler(Unpickler): method __init__ (line 302) | def __init__(self, filename, file_handle, mmap_mode=None): method load_build (line 319) | def load_build(self): function dump (line 352) | def dump(value, filename, compress=0, protocol=None, cache_size=None): function _unpickle (line 496) | def _unpickle(fobj, filename="", mmap_mode=None): function load (line 529) | def load(filename, mmap_mode=None): FILE: abupy/ExtBu/joblib/numpy_pickle_compat.py function hex_str (line 13) | def hex_str(an_int): function asbytes (line 18) | def asbytes(s): function read_zfile (line 29) | def read_zfile(file_handle): function write_zfile (line 62) | def write_zfile(file_handle, data, compress=1): class NDArrayWrapper (line 79) | class NDArrayWrapper(object): method __init__ (line 86) | def __init__(self, filename, subclass, allow_mmap=True): method read (line 92) | def read(self, unpickler): class ZNDArrayWrapper (line 115) | class ZNDArrayWrapper(NDArrayWrapper): method __init__ (line 130) | def __init__(self, filename, init_args, state): method read (line 136) | def read(self, unpickler): class ZipNumpyUnpickler (line 149) | class ZipNumpyUnpickler(Unpickler): method __init__ (line 154) | def __init__(self, filename, file_handle, mmap_mode=None): method _open_pickle (line 167) | def _open_pickle(self, file_handle): method load_build (line 170) | def load_build(self): function load_compatibility (line 193) | def load_compatibility(filename): FILE: abupy/ExtBu/joblib/numpy_pickle_utils.py function _detect_compressor (line 68) | def _detect_compressor(fileobj): function _buffered_read_file (line 100) | def _buffered_read_file(fobj): function _buffered_write_file (line 111) | def _buffered_write_file(fobj): function _read_fileobject (line 125) | def _read_fileobject(fileobj, filename, mmap_mode=None): function _write_fileobject (line 214) | def _write_fileobject(filename, compress=("zlib", 3)): class BinaryZlibFile (line 247) | class BinaryZlibFile(io.BufferedIOBase): method __init__ (line 272) | def __init__(self, filename, mode="rb", compresslevel=9): method close (line 313) | def close(self): method closed (line 340) | def closed(self): method fileno (line 344) | def fileno(self): method seekable (line 349) | def seekable(self): method readable (line 353) | def readable(self): method writable (line 358) | def writable(self): method _check_not_closed (line 365) | def _check_not_closed(self): method _check_can_read (line 374) | def _check_can_read(self): method _check_can_write (line 379) | def _check_can_write(self): method _check_can_seek (line 384) | def _check_can_seek(self): method _fill_buffer (line 394) | def _fill_buffer(self): method _read_all (line 418) | def _read_all(self, return_data=True): method _read_block (line 434) | def _read_block(self, n_bytes, return_data=True): method read (line 462) | def read(self, size=-1): method readinto (line 477) | def readinto(self, b): method write (line 485) | def write(self, data): method _rewind (line 504) | def _rewind(self): method seek (line 512) | def seek(self, offset, whence=0): method tell (line 554) | def tell(self): class BinaryGzipFile (line 561) | class BinaryGzipFile(BinaryZlibFile): function _read_bytes (line 584) | def _read_bytes(fp, size, error_template="ran out of data"): FILE: abupy/ExtBu/joblib/parallel.py function get_active_backend (line 56) | def get_active_backend(): function parallel_backend (line 68) | def parallel_backend(backend, n_jobs=-1, **backend_params): class BatchedCalls (line 123) | class BatchedCalls(object): method __init__ (line 126) | def __init__(self, iterator_slice): method __call__ (line 130) | def __call__(self): method __len__ (line 133) | def __len__(self): function cpu_count (line 140) | def cpu_count(): function _verbosity_filter (line 150) | def _verbosity_filter(index, verbose): function delayed (line 169) | def delayed(function, check_pickle=True): class BatchCompletionCallBack (line 195) | class BatchCompletionCallBack(object): method __init__ (line 206) | def __init__(self, dispatch_timestamp, batch_size, parallel): method __call__ (line 211) | def __call__(self, out): function register_parallel_backend (line 223) | def register_parallel_backend(name, factory, make_default=False): function effective_n_jobs (line 245) | def effective_n_jobs(n_jobs=-1): class Parallel (line 272) | class Parallel(Logger): method __init__ (line 469) | def __init__(self, n_jobs=1, backend=None, verbose=0, timeout=None, method __enter__ (line 527) | def __enter__(self): method __exit__ (line 532) | def __exit__(self, exc_type, exc_value, traceback): method _initialize_backend (line 536) | def _initialize_backend(self): method _effective_n_jobs (line 546) | def _effective_n_jobs(self): method _terminate_backend (line 551) | def _terminate_backend(self): method _dispatch (line 555) | def _dispatch(self, batch): method dispatch_next (line 574) | def dispatch_next(self): method dispatch_one_batch (line 586) | def dispatch_one_batch(self, iterator): method _print (line 611) | def _print(self, msg, msg_args): method print_progress (line 624) | def print_progress(self): method retrieve (line 667) | def retrieve(self): method __call__ (line 721) | def __call__(self, iterable): method __repr__ (line 782) | def __repr__(self): FILE: abupy/ExtBu/joblib/pool.py function _get_backing_memmap (line 79) | def _get_backing_memmap(a): function has_shareable_memory (line 96) | def has_shareable_memory(a): function _strided_from_memmap (line 101) | def _strided_from_memmap(filename, dtype, mode, offset, order, shape, st... function _reduce_memmap_backed (line 120) | def _reduce_memmap_backed(a, m): function reduce_memmap (line 156) | def reduce_memmap(a): class ArrayMemmapReducer (line 170) | class ArrayMemmapReducer(object): method __init__ (line 194) | def __init__(self, max_nbytes, temp_folder, mmap_mode, verbose=0, method __call__ (line 206) | def __call__(self, a): class CustomizablePickler (line 265) | class CustomizablePickler(Pickler): method __init__ (line 287) | def __init__(self, writer, reducers=None, protocol=HIGHEST_PROTOCOL): method register (line 302) | def register(self, type, reduce_func): class CustomizablePicklingQueue (line 315) | class CustomizablePicklingQueue(object): method __init__ (line 332) | def __init__(self, context, reducers=None): method __getstate__ (line 342) | def __getstate__(self): method __setstate__ (line 347) | def __setstate__(self, state): method empty (line 352) | def empty(self): method _make_methods (line 355) | def _make_methods(self): class PicklingPool (line 393) | class PicklingPool(Pool): method __init__ (line 410) | def __init__(self, processes=None, forward_reducers=None, method _setup_queues (line 422) | def _setup_queues(self): function delete_folder (line 432) | def delete_folder(folder_path): class MemmapingPool (line 441) | class MemmapingPool(PicklingPool): method __init__ (line 513) | def __init__(self, processes=None, temp_folder=None, max_nbytes=1e6, method terminate (line 602) | def terminate(self): FILE: abupy/ExtBu/joblib/testing.py function warnings_to_stdout (line 15) | def warnings_to_stdout(): function assert_raises_regex (line 35) | def assert_raises_regex(expected_exception, expected_regexp, function check_subprocess_call (line 54) | def check_subprocess_call(cmd, timeout=1, stdout_regex=None, FILE: abupy/ExtBu/odict.py class OrderedDict (line 23) | class OrderedDict(dict): method __init__ (line 35) | def __init__(self, *args, **kwds): method __setitem__ (line 51) | def __setitem__(self, key, value, dict_setitem=dict.__setitem__): method __delitem__ (line 61) | def __delitem__(self, key, dict_delitem=dict.__delitem__): method __iter__ (line 70) | def __iter__(self): method __reversed__ (line 78) | def __reversed__(self): method clear (line 86) | def clear(self): method popitem (line 98) | def popitem(self, last=True): method keys (line 123) | def keys(self): method values (line 127) | def values(self): method items (line 131) | def items(self): method iterkeys (line 135) | def iterkeys(self): method itervalues (line 139) | def itervalues(self): method iteritems (line 144) | def iteritems(self): method update (line 149) | def update(*args, **kwds): method pop (line 184) | def pop(self, key, default=__marker): method setdefault (line 197) | def setdefault(self, key, default=None): method __repr__ (line 204) | def __repr__(self, _repr_running={}): method __reduce__ (line 217) | def __reduce__(self): method copy (line 227) | def copy(self): method fromkeys (line 232) | def fromkeys(cls, iterable, value=None): method __eq__ (line 242) | def __eq__(self, other): method __ne__ (line 251) | def __ne__(self, other): method viewkeys (line 256) | def viewkeys(self): method viewvalues (line 260) | def viewvalues(self): method viewitems (line 264) | def viewitems(self): FILE: abupy/ExtBu/six.py class X (line 55) | class X(object): method __len__ (line 56) | def __len__(self): function _add_doc (line 69) | def _add_doc(func, doc): function _import_module (line 74) | def _import_module(name): class _LazyDescr (line 80) | class _LazyDescr(object): method __init__ (line 82) | def __init__(self, name): method __get__ (line 85) | def __get__(self, obj, tp): class MovedModule (line 93) | class MovedModule(_LazyDescr): method __init__ (line 95) | def __init__(self, name, old, new=None): method _resolve (line 104) | def _resolve(self): class MovedAttribute (line 108) | class MovedAttribute(_LazyDescr): method __init__ (line 110) | def __init__(self, name, old_mod, new_mod, old_attr=None, new_attr=None): method _resolve (line 128) | def _resolve(self): class _MovedItems (line 134) | class _MovedItems(types.ModuleType): class Module_six_moves_urllib_parse (line 202) | class Module_six_moves_urllib_parse(types.ModuleType): class Module_six_moves_urllib_error (line 230) | class Module_six_moves_urllib_error(types.ModuleType): class Module_six_moves_urllib_request (line 247) | class Module_six_moves_urllib_request(types.ModuleType): class Module_six_moves_urllib_response (line 293) | class Module_six_moves_urllib_response(types.ModuleType): class Module_six_moves_urllib_robotparser (line 311) | class Module_six_moves_urllib_robotparser(types.ModuleType): class Module_six_moves_urllib (line 326) | class Module_six_moves_urllib(types.ModuleType): function add_move (line 338) | def add_move(move): function remove_move (line 343) | def remove_move(name): function advance_iterator (line 385) | def advance_iterator(it): function callable (line 393) | def callable(obj): function get_unbound_function (line 398) | def get_unbound_function(unbound): function get_unbound_function (line 405) | def get_unbound_function(unbound): function create_bound_method (line 408) | def create_bound_method(func, obj): class Iterator (line 411) | class Iterator(object): method next (line 413) | def next(self): function iterkeys (line 429) | def iterkeys(d, **kw): function itervalues (line 433) | def itervalues(d, **kw): function iteritems (line 437) | def iteritems(d, **kw): function iterlists (line 441) | def iterlists(d, **kw): function b (line 447) | def b(s): function u (line 449) | def u(s): function int2byte (line 453) | def int2byte(i): function b (line 465) | def b(s): function u (line 467) | def u(s): function byte2int (line 471) | def byte2int(bs): function indexbytes (line 473) | def indexbytes(buf, i): function iterbytes (line 475) | def iterbytes(buf): function reraise (line 488) | def reraise(tp, value, tb=None): function exec_ (line 498) | def exec_(_code_, _globs_=None, _locs_=None): function print_ (line 516) | def print_(*args, **kwargs): function with_metaclass (line 564) | def with_metaclass(meta, *bases): function add_metaclass (line 568) | def add_metaclass(metaclass): FILE: abupy/FactorBuyBu/ABuBuyFactorWrap.py class AbuLeastPolyWrap (line 15) | class AbuLeastPolyWrap(object): method __call__ (line 18) | def __call__(self, cls): FILE: abupy/FactorBuyBu/ABuFactorBuyBase.py class BuyCallMixin (line 28) | class BuyCallMixin(object): method buy_type_str (line 35) | def buy_type_str(self): method expect_direction (line 40) | def expect_direction(self): class BuyPutMixin (line 45) | class BuyPutMixin(object): method buy_type_str (line 53) | def buy_type_str(self): method expect_direction (line 58) | def expect_direction(self): class AbuFactorBuyBase (line 63) | class AbuFactorBuyBase(six.with_metaclass(ABCMeta, AbuParamBase)): method __init__ (line 73) | def __init__(self, capital, kl_pd, combine_kl_pd, benchmark, **kwargs): method _position_class_init (line 109) | def _position_class_init(self, **kwargs): method _slippage_class_init (line 142) | def _slippage_class_init(self, **kwargs): method _other_kwargs_init (line 148) | def _other_kwargs_init(self, **kwargs): method __str__ (line 205) | def __str__(self): method make_buy_order (line 213) | def make_buy_order(self, day_ind=-1): method make_ump_block_decision (line 243) | def make_ump_block_decision(self, ml_feature_dict): method make_buy_order_ml_feature (line 254) | def make_buy_order_ml_feature(self, day_ind): method _init_self (line 263) | def _init_self(self, **kwargs): method read_fit_day (line 267) | def read_fit_day(self, today): method buy_tomorrow (line 286) | def buy_tomorrow(self): method buy_today (line 294) | def buy_today(self): method _fit_pick_stock (line 302) | def _fit_pick_stock(self, today, pick_array): method fit_ps_week (line 315) | def fit_ps_week(self, today): method fit_ps_month (line 319) | def fit_ps_month(self, today): method fit_day (line 324) | def fit_day(self, today): method past_today_kl (line 328) | def past_today_kl(self, today, past_day_cnt): method past_today_one_month (line 340) | def past_today_one_month(self, today): method past_today_one_week (line 345) | def past_today_one_week(self, today): method past_today_one_year (line 350) | def past_today_one_year(self, today): method _deprecated_kwargs_init (line 355) | def _deprecated_kwargs_init(self, **kwargs): method _do_kelly_deprecated (line 361) | def _do_kelly_deprecated(self, **kwargs): class AbuFactorBuyTD (line 382) | class AbuFactorBuyTD(AbuFactorBuyBase): method read_fit_day (line 385) | def read_fit_day(self, today): method _init_self (line 414) | def _init_self(self, **kwargs): method fit_day (line 418) | def fit_day(self, today): class AbuFactorBuyXD (line 423) | class AbuFactorBuyXD(AbuFactorBuyBase): method read_fit_day (line 426) | def read_fit_day(self, today): method buy_tomorrow (line 451) | def buy_tomorrow(self): method buy_today (line 461) | def buy_today(self): method _init_self (line 470) | def _init_self(self, **kwargs): method fit_day (line 477) | def fit_day(self, today): FILE: abupy/FactorBuyBu/ABuFactorBuyBreak.py class AbuFactorBuyBreak (line 17) | class AbuFactorBuyBreak(AbuFactorBuyBase, BuyCallMixin): method _init_self (line 20) | def _init_self(self, **kwargs): method fit_day (line 27) | def fit_day(self, today): class AbuFactorBuyXDBK (line 47) | class AbuFactorBuyXDBK(AbuFactorBuyXD, BuyCallMixin): method fit_day (line 49) | def fit_day(self, today): class AbuFactorBuyPutBreak (line 62) | class AbuFactorBuyPutBreak(AbuFactorBuyBase, BuyPutMixin): method _init_self (line 65) | def _init_self(self, **kwargs): method fit_day (line 72) | def fit_day(self, today): class AbuFactorBuyPutXDBK (line 91) | class AbuFactorBuyPutXDBK(AbuFactorBuyXD, BuyPutMixin): method fit_day (line 93) | def fit_day(self, today): FILE: abupy/FactorBuyBu/ABuFactorBuyDM.py class AbuDoubleMaBuy (line 24) | class AbuDoubleMaBuy(AbuFactorBuyXD, BuyCallMixin): method _init_self (line 27) | def _init_self(self, **kwargs): method _dynamic_calc_fast (line 68) | def _dynamic_calc_fast(self, today): method _dynamic_calc_slow (line 110) | def _dynamic_calc_slow(self, today): method fit_month (line 184) | def fit_month(self, today): method fit_day (line 197) | def fit_day(self, today): FILE: abupy/FactorBuyBu/ABuFactorBuyDemo.py class AbuSDBreak (line 23) | class AbuSDBreak(AbuFactorBuyXD, BuyCallMixin): method _init_self (line 26) | def _init_self(self, **kwargs): method fit_month (line 37) | def fit_month(self, today): method fit_day (line 65) | def fit_day(self, today): class AbuTwoDayBuy (line 76) | class AbuTwoDayBuy(AbuFactorBuyTD, BuyCallMixin): method _init_self (line 79) | def _init_self(self, **kwargs): method fit_day (line 83) | def fit_day(self, today): class AbuWeekMonthBuy (line 100) | class AbuWeekMonthBuy(AbuFactorBuyBase, BuyCallMixin): method _init_self (line 103) | def _init_self(self, **kwargs): method fit_day (line 107) | def fit_day(self, today): class AbuFactorBuyBreakUmpDemo (line 116) | class AbuFactorBuyBreakUmpDemo(AbuFactorBuyBreak): method make_ump_block_decision (line 119) | def make_ump_block_decision(self, ml_feature_dict): class AbuFactorBuyBreakReocrdHitDemo (line 141) | class AbuFactorBuyBreakReocrdHitDemo(AbuFactorBuyBreak): method make_ump_block_decision (line 144) | def make_ump_block_decision(self, ml_feature_dict): class AbuFactorBuyBreakHitPredictDemo (line 168) | class AbuFactorBuyBreakHitPredictDemo(AbuFactorBuyBreak): method _init_self (line 176) | def _init_self(self, **kwargs): method make_ump_block_decision (line 185) | def make_ump_block_decision(self, ml_feature_dict): class AbuBTCDayBuy (line 210) | class AbuBTCDayBuy(AbuFactorBuyBase, BuyCallMixin): method _init_self (line 218) | def _init_self(self, **kwargs): method fit_day (line 238) | def fit_day(self, today): method make_btc_today (line 261) | def make_btc_today(self, sib_btc): method similar_predict (line 312) | def similar_predict(self, today_date): FILE: abupy/FactorBuyBu/ABuFactorBuyTrend.py class AbuUpDownTrend (line 19) | class AbuUpDownTrend(AbuFactorBuyXD, BuyCallMixin): method _init_self (line 22) | def _init_self(self, **kwargs): method fit_day (line 37) | def fit_day(self, today): class AbuUpDownGolden (line 57) | class AbuUpDownGolden(AbuUpDownTrend, BuyCallMixin): method fit_day (line 60) | def fit_day(self, today): class AbuDownUpTrend (line 83) | class AbuDownUpTrend(AbuFactorBuyXD, BuyCallMixin): method _init_self (line 86) | def _init_self(self, **kwargs): method fit_day (line 102) | def fit_day(self, today): FILE: abupy/FactorBuyBu/ABuFactorBuyWD.py class AbuFactorBuyWD (line 16) | class AbuFactorBuyWD(AbuFactorBuyTD, BuyCallMixin): method _init_self (line 25) | def _init_self(self, **kwargs): method fit_month (line 42) | def fit_month(self, today): method fit_day (line 48) | def fit_day(self, today): method _make_buy_date (line 57) | def _make_buy_date(self, last_kl): FILE: abupy/FactorSellBu/ABuFactorAtrNStop.py class AbuFactorAtrNStop (line 16) | class AbuFactorAtrNStop(AbuFactorSellBase): method _init_self (line 19) | def _init_self(self, **kwargs): method support_direction (line 37) | def support_direction(self): method fit_day (line 41) | def fit_day(self, today, orders): FILE: abupy/FactorSellBu/ABuFactorCloseAtrNStop.py class AbuFactorCloseAtrNStop (line 21) | class AbuFactorCloseAtrNStop(AbuFactorSellBase): method _init_self (line 24) | def _init_self(self, **kwargs): method support_direction (line 33) | def support_direction(self): method fit_day (line 37) | def fit_day(self, today, orders): FILE: abupy/FactorSellBu/ABuFactorPreAtrNStop.py class AbuFactorPreAtrNStop (line 20) | class AbuFactorPreAtrNStop(AbuFactorSellBase): method _init_self (line 23) | def _init_self(self, **kwargs): method support_direction (line 32) | def support_direction(self): method fit_day (line 36) | def fit_day(self, today, orders): FILE: abupy/FactorSellBu/ABuFactorSellBase.py class ESupportDirection (line 25) | class ESupportDirection(Enum): class AbuFactorSellBase (line 31) | class AbuFactorSellBase(six.with_metaclass(ABCMeta, AbuParamBase)): method __init__ (line 38) | def __init__(self, capital, kl_pd, combine_kl_pd, benchmark, **kwargs): method __str__ (line 67) | def __str__(self): method read_fit_day (line 73) | def read_fit_day(self, today, orders): method sell_tomorrow (line 95) | def sell_tomorrow(self, order): method sell_today (line 103) | def sell_today(self, order): method _init_self (line 112) | def _init_self(self, **kwargs): method fit_day (line 117) | def fit_day(self, today, orders): method support_direction (line 122) | def support_direction(self): method make_sell_order (line 126) | def make_sell_order(self, order, day_ind): method make_ump_block_decision (line 150) | def make_ump_block_decision(self, ml_feature_dict): method make_sell_order_ml_feature (line 161) | def make_sell_order_ml_feature(self, day_ind): class AbuFactorSellXD (line 177) | class AbuFactorSellXD(AbuFactorSellBase): method _init_self (line 180) | def _init_self(self, **kwargs): method read_fit_day (line 187) | def read_fit_day(self, today, orders): method support_direction (line 206) | def support_direction(self): method fit_day (line 210) | def fit_day(self, today, orders): FILE: abupy/FactorSellBu/ABuFactorSellBreak.py class AbuFactorSellBreak (line 16) | class AbuFactorSellBreak(AbuFactorSellBase): method _init_self (line 19) | def _init_self(self, **kwargs): method support_direction (line 27) | def support_direction(self): method fit_day (line 31) | def fit_day(self, today, orders): class AbuFactorSellXDBK (line 43) | class AbuFactorSellXDBK(AbuFactorSellXD): method support_direction (line 46) | def support_direction(self): method fit_day (line 50) | def fit_day(self, today, orders): FILE: abupy/FactorSellBu/ABuFactorSellDM.py class AbuDoubleMaSell (line 17) | class AbuDoubleMaSell(AbuFactorSellXD): method _init_self (line 20) | def _init_self(self, **kwargs): method support_direction (line 41) | def support_direction(self): method fit_day (line 45) | def fit_day(self, today, orders): FILE: abupy/FactorSellBu/ABuFactorSellNDay.py class AbuFactorSellNDay (line 16) | class AbuFactorSellNDay(AbuFactorSellBase): method _init_self (line 19) | def _init_self(self, **kwargs): method support_direction (line 25) | def support_direction(self): method fit_day (line 29) | def fit_day(self, today, orders): FILE: abupy/IndicatorBu/ABuNDAtr.py function _calc_atr_from_ta (line 30) | def _calc_atr_from_ta(high, low, close, time_period=14): function _calc_atr_from_pd (line 51) | def _calc_atr_from_pd(high, low, close, time_period=14): function atr14 (line 91) | def atr14(high, low, close): function atr21 (line 103) | def atr21(high, low, close): function atr14_min (line 115) | def atr14_min(high, low, close): function atr14_max (line 130) | def atr14_max(high, low, close): function atr21_min (line 145) | def atr21_min(high, low, close): function atr21_max (line 160) | def atr21_max(high, low, close): function plot_atr_from_klpd (line 175) | def plot_atr_from_klpd(kl_pd, with_points=None, with_points_ext=None, **... function plot_atr_from_order (line 187) | def plot_atr_from_order(order, date_ext=120, **kwargs): function plot_atr (line 197) | def plot_atr(high, low, close, kl_index, with_points=None, with_points_e... FILE: abupy/IndicatorBu/ABuNDBase.py class ECalcType (line 21) | class ECalcType(Enum): function plot_from_order (line 43) | def plot_from_order(plot_nd_func, order, date_ext, **kwargs): FILE: abupy/IndicatorBu/ABuNDBoll.py function _calc_boll_from_ta (line 30) | def _calc_boll_from_ta(prices, time_period=20, nb_dev=2): function _calc_boll_from_pd (line 52) | def _calc_boll_from_pd(prices, time_period=20, nb_dev=2): function plot_boll_from_klpd (line 77) | def plot_boll_from_klpd(kl_pd, with_points=None, with_points_ext=None, *... function plot_boll_from_order (line 88) | def plot_boll_from_order(order, date_ext=120, **kwargs): function plot_boll (line 98) | def plot_boll(prices, kl_index, with_points=None, with_points_ext=None, ... FILE: abupy/IndicatorBu/ABuNDMa.py class EMACalcType (line 28) | class EMACalcType(Enum): function _calc_ma_from_ta (line 37) | def _calc_ma_from_ta(prices, time_period=10, from_calc=EMACalcType.E_MA_... function _calc_ma_from_pd (line 56) | def _calc_ma_from_pd(prices, time_period=10, from_calc=EMACalcType.E_MA_... function calc_ma_from_prices (line 74) | def calc_ma_from_prices(prices, time_period=10, min_periods=None, from_c... function plot_ma_from_order (line 98) | def plot_ma_from_order(order, date_ext=120, **kwargs): function plot_ma_from_klpd (line 108) | def plot_ma_from_klpd(kl_pd, with_points=None, with_points_ext=None, **k... function plot_ma (line 123) | def plot_ma(prices, kl_index, time_period, from_calc=EMACalcType.E_MA_MA, FILE: abupy/IndicatorBu/ABuNDMacd.py function _calc_macd_from_ta (line 30) | def _calc_macd_from_ta(price, fast_period=12, slow_period=26, signal_per... function _calc_macd_from_pd (line 50) | def _calc_macd_from_pd(price, fast_period=12, slow_period=26, signal_per... function plot_macd_from_klpd (line 78) | def plot_macd_from_klpd(kl_pd, with_points=None, with_points_ext=None, *... function plot_macd_from_order (line 89) | def plot_macd_from_order(order, date_ext=120, **kwargs): function plot_macd (line 99) | def plot_macd(prices, kl_index, with_points=None, with_points_ext=None, FILE: abupy/IndicatorBu/ABuNDRsi.py function _calc_rsi_from_ta (line 36) | def _calc_rsi_from_ta(prices, time_period=14): function _calc_rsi_from_pd (line 51) | def _calc_rsi_from_pd(prices, time_period=14): function plot_rsi_from_order (line 86) | def plot_rsi_from_order(order, date_ext=120, **kwargs): function plot_rsi_from_klpd (line 96) | def plot_rsi_from_klpd(kl_pd, with_points=None, with_points_ext=None, **... function plot_rsi (line 109) | def plot_rsi(prices, kl_index, with_points=None, with_points_ext=None, w... FILE: abupy/MLBu/ABuML.py class _EMLScoreType (line 41) | class _EMLScoreType(Enum): class EMLFitType (line 52) | class EMLFitType(Enum): function entry_wrapper (line 70) | def entry_wrapper(support=(EMLFitType.E_FIT_CLF, EMLFitType.E_FIT_REG, E... class AbuML (line 115) | class AbuML(object): method create_test_fiter (line 119) | def create_test_fiter(cls): method load_ttn_raw_df (line 174) | def load_ttn_raw_df(cls): method create_test_more_fiter (line 188) | def create_test_more_fiter(cls): method __init__ (line 341) | def __init__(self, x, y, df, fiter_type=EMLFitType.E_FIT_AUTO): method is_supervised_learning (line 362) | def is_supervised_learning(self): method echo_info (line 370) | def echo_info(self, fiter=None): method get_fiter (line 399) | def get_fiter(self): method cross_val_accuracy_score (line 445) | def cross_val_accuracy_score(self, cv=10, **kwargs): method cross_val_prob_accuracy_score (line 463) | def cross_val_prob_accuracy_score(self, pb_threshold, cv=10, show=True... method cross_val_silhouette_score (line 696) | def cross_val_silhouette_score(self, cv=10, **kwargs): method cross_val_mean_squared_score (line 720) | def cross_val_mean_squared_score(self, cv=10, **kwargs): method cross_val_roc_auc_score (line 739) | def cross_val_roc_auc_score(self, cv=10, **kwargs): method feature_selection (line 759) | def feature_selection(self, show=True, **kwargs): method importances_coef_pd (line 831) | def importances_coef_pd(self, **kwargs): method train_test_split_xy (line 896) | def train_test_split_xy(self, test_size=0.1, random_state=0, **kwargs): method train_test_split_df (line 967) | def train_test_split_df(self, test_size=0.1, random_state=0, **kwargs): method fit (line 983) | def fit(self, **kwargs): method fit_transform (line 1014) | def fit_transform(self, **kwargs): method predict (line 1048) | def predict(self, x, pre_fit=True, **kwargs): method predict_proba (line 1075) | def predict_proba(self, x, pre_fit=True, **kwargs): method predict_proba_threshold (line 1102) | def predict_proba_threshold(self, x, threshold, default_ret, pre_fit=T... method _predict_callback (line 1162) | def _predict_callback(self, callback, x, pre_fit=True, **kwargs): method search_match_neg_threshold (line 1200) | def search_match_neg_threshold(self, accuracy_match=0, effect_rate_mat... method search_match_pos_threshold (line 1244) | def search_match_pos_threshold(self, accuracy_match=0, effect_rate_mat... method plot_learning_curve (line 1288) | def plot_learning_curve(self, **kwargs): method plot_graphviz_tree (line 1312) | def plot_graphviz_tree(self, **kwargs): method plot_visualize_tree (line 1346) | def plot_visualize_tree(self, use_pca=True, **kwargs): method plot_decision_function (line 1370) | def plot_decision_function(self, use_pca=True, **kwargs): method plot_roc_estimator (line 1394) | def plot_roc_estimator(self, pos_label=None, **kwargs): method plot_confusion_matrices (line 1414) | def plot_confusion_matrices(self, **kwargs): method bagging_classifier_best (line 1434) | def bagging_classifier_best(self, **kwargs): method bagging_regressor_best (line 1460) | def bagging_regressor_best(self, **kwargs): method adaboost_regressor_best (line 1485) | def adaboost_regressor_best(self, **kwargs): method adaboost_classifier_best (line 1511) | def adaboost_classifier_best(self, **kwargs): method random_forest_classifier_best (line 1538) | def random_forest_classifier_best(self, **kwargs): method random_forest_regressor_best (line 1565) | def random_forest_regressor_best(self, **kwargs): method xgb_classifier_best (line 1593) | def xgb_classifier_best(self, **kwargs): method xgb_regressor_best (line 1619) | def xgb_regressor_best(self, **kwargs): method decision_tree_classifier_best (line 1647) | def decision_tree_classifier_best(self, **kwargs): method decision_tree_regressor_best (line 1673) | def decision_tree_regressor_best(self, **kwargs): method knn_classifier_best (line 1699) | def knn_classifier_best(self, **kwargs): method _confusion_matrix_with_report (line 1725) | def _confusion_matrix_with_report(self, y_true, y_predict, labels=None): method _decomposition_2x (line 1751) | def _decomposition_2x(self, x, use_pca): method _do_cross_val_score (line 1813) | def _do_cross_val_score(self, x, y, cv, scoring): FILE: abupy/MLBu/ABuMLBinsCs.py function show_orders_hist (line 22) | def show_orders_hist(df, feature_columns, show=True, only_hist=True, sho... FILE: abupy/MLBu/ABuMLCreater.py class AbuMLCreater (line 57) | class AbuMLCreater(object): method __init__ (line 60) | def __init__(self): method __str__ (line 78) | def __str__(self): method pca_decomposition (line 85) | def pca_decomposition(self, assign=True, **kwargs): method kmean_cluster (line 105) | def kmean_cluster(self, assign=True, **kwargs): method hmm_gaussian (line 124) | def hmm_gaussian(self, assign=True, **kwargs): method _estimators_prarms_best (line 151) | def _estimators_prarms_best(self, create_func, x, y, param_grid, assig... method bagging_classifier (line 184) | def bagging_classifier(self, assign=True, base_estimator=DecisionTreeC... method bagging_classifier_best (line 211) | def bagging_classifier_best(self, x, y, param_grid=None, assign=True, ... method bagging_regressor (line 241) | def bagging_regressor(self, assign=True, base_estimator=DecisionTreeRe... method bagging_regressor_best (line 269) | def bagging_regressor_best(self, x, y, param_grid=None, assign=True, n... method adaboost_regressor (line 299) | def adaboost_regressor(self, assign=True, base_estimator=DecisionTreeR... method adaboost_regressor_best (line 326) | def adaboost_regressor_best(self, x, y, param_grid=None, assign=True, ... method adaboost_classifier (line 358) | def adaboost_classifier(self, assign=True, base_estimator=DecisionTree... method adaboost_classifier_best (line 383) | def adaboost_classifier_best(self, x, y, param_grid=None, assign=True,... method xgb_regressor (line 415) | def xgb_regressor(self, assign=True, **kwargs): method xgb_regressor_best (line 442) | def xgb_regressor_best(self, x, y, param_grid=None, assign=True, n_job... method xgb_classifier (line 474) | def xgb_classifier(self, assign=True, **kwargs): method xgb_classifier_best (line 503) | def xgb_classifier_best(self, x, y, param_grid=None, assign=True, n_jo... method random_forest_regressor (line 534) | def random_forest_regressor(self, assign=True, **kwargs): method random_forest_regressor_best (line 556) | def random_forest_regressor_best(self, x, y, param_grid=None, assign=T... method random_forest_classifier (line 587) | def random_forest_classifier(self, assign=True, **kwargs): method random_forest_classifier_best (line 609) | def random_forest_classifier_best(self, x, y, param_grid=None, assign=... method svc (line 640) | def svc(self, assign=True, **kwargs): method decision_tree_regressor (line 662) | def decision_tree_regressor(self, assign=True, **kwargs): method decision_tree_regressor_best (line 685) | def decision_tree_regressor_best(self, x, y, param_grid=None, assign=T... method decision_tree_classifier (line 717) | def decision_tree_classifier(self, assign=True, **kwargs): method decision_tree_classifier_best (line 740) | def decision_tree_classifier_best(self, x, y, param_grid=None, assign=... method knn_classifier (line 772) | def knn_classifier(self, assign=True, **kwargs): method knn_classifier_best (line 795) | def knn_classifier_best(self, x, y, param_grid=None, assign=True, n_jo... method logistic_classifier (line 827) | def logistic_classifier(self, assign=True, **kwargs): method linear_regression (line 849) | def linear_regression(self, assign=True, **kwargs): method polynomial_regression (line 871) | def polynomial_regression(self, assign=True, degree=2, **kwargs): method onevsone_classifier (line 888) | def onevsone_classifier(self, assign=False, **kwargs): method onevsreset_classifier (line 904) | def onevsreset_classifier(self, assign=False, **kwargs): FILE: abupy/MLBu/ABuMLExecute.py function run_silhouette_cv_estimator (line 43) | def run_silhouette_cv_estimator(estimator, x, n_folds=10): function run_prob_cv_estimator (line 77) | def run_prob_cv_estimator(estimator, x, y, n_folds=10): function run_cv_estimator (line 130) | def run_cv_estimator(estimator, x, y, n_folds=10): function plot_learning_curve (line 173) | def plot_learning_curve(estimator, x, y, cv=5, n_jobs=1, function graphviz_tree (line 259) | def graphviz_tree(estimator, features, x, y): function visualize_tree (line 305) | def visualize_tree(estimator, x, y, boundaries=True): function plot_decision_boundary (line 383) | def plot_decision_boundary(pred_func, x, y): function plot_roc_estimator (line 414) | def plot_roc_estimator(estimator, x, y, pos_label=None): function plot_confusion_matrices (line 521) | def plot_confusion_matrices(estimator, x, y, n_folds=10): FILE: abupy/MLBu/ABuMLGrid.py function _scoring_grid (line 31) | def _scoring_grid(estimator, scoring): function grid_search_init_kwargs (line 63) | def grid_search_init_kwargs(estimator, x, y, param_name, param_range, cv... function grid_search_mul_init_kwargs (line 151) | def grid_search_mul_init_kwargs(estimator, x, y, param_grid, cv=10, n_jo... function grid_search_init_n_estimators (line 256) | def grid_search_init_n_estimators(estimator, x, y, n_estimators_range=No... function grid_search_init_max_depth (line 291) | def grid_search_init_max_depth(estimator, x, y, max_depth_range=None, cv... function grid_search_init_n_neighbors (line 322) | def grid_search_init_n_neighbors(estimator, x, y, n_neighbors_range=None... function grid_search_init_n_components (line 354) | def grid_search_init_n_components(estimator, x, y, n_components_range=No... FILE: abupy/MLBu/ABuMLPd.py class AbuMLPd (line 24) | class AbuMLPd(six.with_metaclass(ABCMeta, object)): method __init__ (line 27) | def __init__(self, **kwarg): method make_xy (line 42) | def make_xy(self, **kwarg): method __getattr__ (line 50) | def __getattr__(self, item): method __call__ (line 61) | def __call__(self): class ClosePredict (line 70) | class ClosePredict(AbuMLPd): method make_xy (line 79) | def make_xy(self, **kwarg): function test_close_predict (line 107) | def test_close_predict(): class BtcBigWaveClf (line 158) | class BtcBigWaveClf(AbuMLPd): method __init__ (line 164) | def __init__(self, **kwarg): method make_xy (line 172) | def make_xy(self, **kwarg): method btc_siblings_df (line 240) | def btc_siblings_df(self, btc_raw): FILE: abupy/MarketBu/ABuDataBase.py class SupportMixin (line 19) | class SupportMixin(object): method _support_market (line 22) | def _support_market(self): method check_support (line 27) | def check_support(self, symbol=None, rs=True): class BaseMarket (line 59) | class BaseMarket(object): method __init__ (line 70) | def __init__(self, symbol): method req_time (line 80) | def req_time(self): method _fix_kline_pd_se (line 86) | def _fix_kline_pd_se(cls, kl_df, n_folds, start=None, end=None): method _fix_kline_pd_zero (line 114) | def _fix_kline_pd_zero(cls, kl_df): class StockBaseMarket (line 145) | class StockBaseMarket(six.with_metaclass(ABCMeta, BaseMarket)): method minute (line 149) | def minute(self, *args, **kwargs): method kline (line 154) | def kline(self, n_folds=2, start=None, end=None): method _fix_kline_pd (line 159) | def _fix_kline_pd(cls, kl_df, n_folds, start=None, end=None): class FuturesBaseMarket (line 164) | class FuturesBaseMarket(six.with_metaclass(ABCMeta, BaseMarket)): method kline (line 168) | def kline(self, n_folds=2, start=None, end=None): method _fix_kline_pd (line 173) | def _fix_kline_pd(cls, kl_df, n_folds, start=None, end=None): class TCBaseMarket (line 180) | class TCBaseMarket(six.with_metaclass(ABCMeta, BaseMarket)): method kline (line 184) | def kline(self, n_folds=2, start=None, end=None): method minute (line 189) | def minute(self, *args, **kwargs): method _fix_kline_pd (line 194) | def _fix_kline_pd(cls, kl_df, n_folds, start=None, end=None): FILE: abupy/MarketBu/ABuDataCache.py class HDF5ExtError (line 25) | class HDF5ExtError(RuntimeError): function _kl_unique_key (line 33) | def _kl_unique_key(symbol, start, end): function rm_data_from_symbol (line 44) | def rm_data_from_symbol(symbol): function load_all_kline (line 64) | def load_all_kline(want_df=True, market=None, all_market=False): function covert_hdf_to_csv (line 111) | def covert_hdf_to_csv(): function load_kline_df (line 133) | def load_kline_df(symbol_key): function _load_kline_csv (line 175) | def _load_kline_csv(date_key): function _load_kline_hdf5 (line 192) | def _load_kline_hdf5(date_key): function check_csv_local (line 201) | def check_csv_local(symbol_key): function _load_csv_key (line 211) | def _load_csv_key(symbol_key): function _load_hdf5_key (line 235) | def _load_hdf5_key(symbol_key): function dump_kline_df (line 246) | def dump_kline_df(dump_df, symbol_key, date_key): function _dump_kline_csv (line 343) | def _dump_kline_csv(symbol_key, date_key, dump_df, delete_key=None): function _dump_kline_hdf5 (line 363) | def _dump_kline_hdf5(symbol_key, date_key, dump_df, delete_key=None): function save_kline_df (line 386) | def save_kline_df(df, temp_symbol, start_int, end_int): function load_kline_df_net (line 401) | def load_kline_df_net(source, temp_symbol, n_folds, start, end, start_in... FILE: abupy/MarketBu/ABuDataCheck.py function browser_down_csv_zip (line 28) | def browser_down_csv_zip(open_browser=False): function check_symbol_data_mode (line 45) | def check_symbol_data_mode(choice_symbols): function check_symbol_data (line 110) | def check_symbol_data(choice_symbols): function all_market_env_check (line 159) | def all_market_env_check(): FILE: abupy/MarketBu/ABuDataFeed.py function random_from_list (line 36) | def random_from_list(array): function query_symbol_sub_market (line 43) | def query_symbol_sub_market(symbol): function query_symbol_from_pinyin (line 64) | def query_symbol_from_pinyin(pinyin): class BDApi (line 85) | class BDApi(StockBaseMarket, SupportMixin): method __init__ (line 97) | def __init__(self, symbol): method kline (line 106) | def kline(self, n_folds=2, start=None, end=None): method minute (line 144) | def minute(self, n_folds=5, *args, **kwargs): class TXApi (line 154) | class TXApi(StockBaseMarket, SupportMixin): method __init__ (line 171) | def __init__(self, symbol): method kline (line 179) | def kline(self, n_folds=2, start=None, end=None): method hkmoney (line 234) | def hkmoney(self): method minute (line 250) | def minute(self, n_fold=5, *args, **kwargs): class NTApi (line 255) | class NTApi(StockBaseMarket, SupportMixin): method __init__ (line 260) | def __init__(self, symbol): method kline (line 268) | def kline(self, n_folds=2, start=None, end=None): method minute (line 311) | def minute(self, n_fold=5, *args, **kwargs): class SNUSApi (line 316) | class SNUSApi(StockBaseMarket, SupportMixin): method __init__ (line 321) | def __init__(self, symbol): method _support_market (line 329) | def _support_market(self): method kline (line 333) | def kline(self, n_folds=2, start=None, end=None): method minute (line 342) | def minute(self, n_fold=5, *args, **kwargs): class SNFuturesApi (line 347) | class SNFuturesApi(FuturesBaseMarket, SupportMixin): method __init__ (line 353) | def __init__(self, symbol): method _support_market (line 361) | def _support_market(self): method kline (line 365) | def kline(self, n_folds=2, start=None, end=None): class SNFuturesGBApi (line 375) | class SNFuturesGBApi(FuturesBaseMarket, SupportMixin): method __init__ (line 381) | def __init__(self, symbol): method _support_market (line 389) | def _support_market(self): method kline (line 393) | def kline(self, n_folds=2, start=None, end=None): class HBApi (line 407) | class HBApi(TCBaseMarket, SupportMixin): method __init__ (line 412) | def __init__(self, symbol): method _support_market (line 420) | def _support_market(self): method kline (line 424) | def kline(self, n_folds=2, start=None, end=None): method minute (line 440) | def minute(self, *args, **kwargs): FILE: abupy/MarketBu/ABuDataParser.py function del_columns (line 23) | def del_columns(df, columns): class AbuDataParseWrap (line 35) | class AbuDataParseWrap(object): method __call__ (line 40) | def __call__(self, cls): method _gen_warp_df (line 70) | def _gen_warp_df(self, warp_self, symbol): class TXParser (line 122) | class TXParser(object): method __init__ (line 125) | def __init__(self, symbol, sub_market, json_dict): class NTParser (line 159) | class NTParser(object): method __init__ (line 163) | def __init__(self, symbol, json_dict): class SNUSParser (line 186) | class SNUSParser(object): method __init__ (line 190) | def __init__(self, symbol, json_dict): class SNFuturesParser (line 213) | class SNFuturesParser(object): method __init__ (line 217) | def __init__(self, symbol, json_dict): class SNFuturesGBParser (line 240) | class SNFuturesGBParser(object): method __init__ (line 243) | def __init__(self, symbol, json_dict): class HBTCParser (line 266) | class HBTCParser(object): method __init__ (line 270) | def __init__(self, symbol, json_dict): class BDParser (line 296) | class BDParser(object): method __init__ (line 302) | def __init__(self, symbol, json_dict): FILE: abupy/MarketBu/ABuDataSource.py class HDF5ExtError (line 28) | class HDF5ExtError(RuntimeError): function _calc_start_end_date (line 43) | def _calc_start_end_date(df, force_local, n_folds, start, end): function kline_pd (line 100) | def kline_pd(symbol, data_mode, n_folds=2, start=None, end=None, save=Tr... FILE: abupy/MarketBu/ABuHkUnit.py class AbuHkUnit (line 31) | class AbuHkUnit(FreezeAttrMixin): method __init__ (line 34) | def __init__(self): method query_unit (line 50) | def query_unit(self, symbol): method __str__ (line 70) | def __str__(self): method __len__ (line 77) | def __len__(self): method __contains__ (line 81) | def __contains__(self, item): method __getitem__ (line 93) | def __getitem__(self, key): method __setitem__ (line 97) | def __setitem__(self, key, value): FILE: abupy/MarketBu/ABuIndustries.py function industries_df (line 26) | def industries_df(target_symbol): function industries_factorize (line 52) | def industries_factorize(market=None): function industries_market (line 117) | def industries_market(market=None): function match_industries_factorize (line 142) | def match_industries_factorize(match, market=None): function query_match_industries_df (line 208) | def query_match_industries_df(match, market=None): function query_factorize_industry_df (line 233) | def query_factorize_industry_df(factorize_arr, market=None): function query_factorize_industry_symbol (line 298) | def query_factorize_industry_symbol(factorize, market=None): function query_match_industries_symbol (line 355) | def query_match_industries_symbol(match, market=None): function get_industries_panel_from_target (line 388) | def get_industries_panel_from_target(target_symbol, show=False, n_folds=2): FILE: abupy/MarketBu/ABuMarket.py class MarketMixin (line 47) | class MarketMixin(object): method _symbol (line 55) | def _symbol(self): method symbol_market (line 64) | def symbol_market(self): method symbol_sub_market (line 69) | def symbol_sub_market(self): function split_k_market (line 74) | def split_k_market(k_split, market_symbols=None, market=None): function choice_symbols (line 105) | def choice_symbols(count, market_symbols=None, market=None): function choice_symbols_with_replace (line 123) | def choice_symbols_with_replace(count, market_symbols=None, market=None): function _all_us_symbol (line 140) | def _all_us_symbol(index=False): function _all_cn_symbol (line 153) | def _all_cn_symbol(index=False): function _all_hk_symbol (line 165) | def _all_hk_symbol(index=False): function _all_futures_cn (line 177) | def _all_futures_cn(): function _all_futures_gb (line 185) | def _all_futures_gb(): function _all_tc_symbol (line 193) | def _all_tc_symbol(): function all_symbol (line 201) | def all_symbol(market=None, ss=False, index=False, value=True): function query_symbol_market (line 243) | def query_symbol_market(target_symbol): function market_train_test_split (line 266) | def market_train_test_split(n_folds, market_symbols, market=None): function market_last_split_test (line 302) | def market_last_split_test(market=None): function market_last_split_train (line 321) | def market_last_split_train(market=None): function _do_market_train_test_split (line 340) | def _do_market_train_test_split(n_folds=10, market_symbols=None, shuffle... function is_in_sand_box (line 376) | def is_in_sand_box(symbol): function _parse_code (line 400) | def _parse_code(line, index): function _all_us_symbol_deprecated (line 416) | def _all_us_symbol_deprecated(index=False): function _all_cn_symbol_deprecated (line 427) | def _all_cn_symbol_deprecated(index=False): function _all_hk_symbol_deprecated (line 438) | def _all_hk_symbol_deprecated(index=False): FILE: abupy/MarketBu/ABuMarketDrawing.py function plot_candle_from_order (line 44) | def plot_candle_from_order(order, date_ext=120, day_sum=False, html_bk=F... function plot_candle_from_symbol (line 112) | def plot_candle_from_symbol(target_symbol, n_folds=2, start=None, end=No... function plot_candle_form_klpd (line 152) | def plot_candle_form_klpd(kl_pd, day_sum=False, html_bk=False, view_inde... function plot_candle_stick (line 169) | def plot_candle_stick(date, p_open, high, low, close, volume, view_index... function _do_plot_candle_html (line 194) | def _do_plot_candle_html(date, p_open, high, low, close, symbol, save): function _do_plot_candle (line 233) | def _do_plot_candle(date, p_open, high, low, close, volume, view_index, ... function save_dir_name (line 353) | def save_dir_name(html=False): function plot_simple_multi_stock (line 363) | def plot_simple_multi_stock(multi_kl_pd): function plot_simple_two_stock (line 374) | def plot_simple_two_stock(two_stcok_dict): FILE: abupy/MarketBu/ABuNetWork.py function get (line 31) | def get(url, params=None, headers=None, retry=3, **kwargs): function post (line 58) | def post(url, params=None, headers=None, retry=3, **kwargs): function ast_parse_js (line 79) | def ast_parse_js(js_var): function parse_js (line 107) | def parse_js(js_var): FILE: abupy/MarketBu/ABuSymbol.py function code_to_symbol (line 20) | def code_to_symbol(code, rs=True): function __search (line 118) | def __search(market_df, search_match, search_code, search_result, match_... function _us_search (line 159) | def _us_search(search_match, search_code, search_result): function _cn_search (line 165) | def _cn_search(search_match, search_code, search_result): function _hk_search (line 171) | def _hk_search(search_match, search_code, search_result): function _fcn_search (line 177) | def _fcn_search(search_match, search_code, search_result): function _fgb_search (line 184) | def _fgb_search(search_match, search_code, search_result): function _tc_search (line 192) | def _tc_search(search_match, search_code, search_result): function search_to_symbol_dict (line 199) | def search_to_symbol_dict(search, fast_mode=False): class Symbol (line 260) | class Symbol(object): method __init__ (line 275) | def __init__(self, market, sub_market, symbol_code): method __str__ (line 289) | def __str__(self): method __len__ (line 295) | def __len__(self): method value (line 301) | def value(self): method is_a_stock (line 312) | def is_a_stock(self): method is_sh_stock (line 316) | def is_sh_stock(self): method is_sz_stock (line 320) | def is_sz_stock(self): method is_us_stock (line 324) | def is_us_stock(self): method is_us_n_stock (line 328) | def is_us_n_stock(self): method is_us_oq_stock (line 332) | def is_us_oq_stock(self): method is_hk_stock (line 336) | def is_hk_stock(self): method is_sh_index (line 340) | def is_sh_index(self): method is_sz_index (line 344) | def is_sz_index(self): method is_a_index (line 348) | def is_a_index(self): method is_us_index (line 352) | def is_us_index(self): method is_hk_index (line 356) | def is_hk_index(self): method is_index (line 360) | def is_index(self): method is_futures (line 364) | def is_futures(self): method is_tc (line 369) | def is_tc(self): class IndexSymbol (line 374) | class IndexSymbol(object): FILE: abupy/MarketBu/ABuSymbolFutures.py class AbuFuturesCn (line 32) | class AbuFuturesCn(FreezeAttrMixin): method __init__ (line 35) | def __init__(self): method __str__ (line 60) | def __str__(self): method __len__ (line 67) | def __len__(self): method __contains__ (line 71) | def __contains__(self, item): method __getitem__ (line 75) | def __getitem__(self, key): method __setitem__ (line 86) | def __setitem__(self, key, value): method query_symbol (line 90) | def query_symbol(self, symbol): method query_min_unit (line 110) | def query_min_unit(self, symbol): method symbol (line 123) | def symbol(self): method product (line 128) | def product(self): method min_deposit (line 133) | def min_deposit(self): method min_unit (line 138) | def min_unit(self): method commission (line 143) | def commission(self): method exchange (line 148) | def exchange(self): class AbuFuturesGB (line 155) | class AbuFuturesGB(FreezeAttrMixin): method __init__ (line 158) | def __init__(self): method __str__ (line 175) | def __str__(self): method __len__ (line 182) | def __len__(self): method __contains__ (line 186) | def __contains__(self, item): method __getitem__ (line 190) | def __getitem__(self, key): method __setitem__ (line 202) | def __setitem__(self, key, value): method query_symbol (line 206) | def query_symbol(self, symbol): method query_min_unit (line 217) | def query_min_unit(self, symbol): method symbol (line 230) | def symbol(self): method product (line 235) | def product(self): method min_deposit (line 240) | def min_deposit(self): method min_unit (line 245) | def min_unit(self): method exchange (line 250) | def exchange(self): FILE: abupy/MarketBu/ABuSymbolPd.py function _benchmark (line 38) | def _benchmark(df, benchmark, symbol): function _make_kl_df (line 108) | def _make_kl_df(symbol, data_mode, n_folds, start, end, benchmark, save): function _kl_df_dict_parallel (line 144) | def _kl_df_dict_parallel(choice_symbols, data_mode, n_folds, start, end,... function kl_df_dict_parallel (line 172) | def kl_df_dict_parallel(symbols, data_mode=ABuEnv.EMarketDataSplitMode.E... function make_kl_df (line 246) | def make_kl_df(symbol, data_mode=ABuEnv.EMarketDataSplitMode.E_DATA_SPLI... function get_price (line 312) | def get_price(symbol, start_date=None, end_date=None): function check_symbol_in_local_csv (line 327) | def check_symbol_in_local_csv(symbol): function combine_pre_kl_pd (line 348) | def combine_pre_kl_pd(kl_pd, n_folds=1): function calc_atr (line 370) | def calc_atr(kline_df): function get_n_year (line 390) | def get_n_year(kl_pd, from_year, get_year=1, how='ff'): FILE: abupy/MarketBu/ABuSymbolStock.py class AbuStockBaseWrap (line 34) | class AbuStockBaseWrap(object): method __call__ (line 37) | def __call__(self, cls): class AbuSymbolStockBase (line 75) | class AbuSymbolStockBase(FreezeAttrMixin): method __str__ (line 78) | def __str__(self): method __len__ (line 85) | def __len__(self): method __setitem__ (line 89) | def __setitem__(self, key, value): method query_industry_symbols (line 93) | def query_industry_symbols(self, query_symbol, local_df=True): method query_industry_factorize (line 111) | def query_industry_factorize(self, factorize, local_df=True): method all_symbol (line 123) | def all_symbol(self, index=False): method query_symbol_sub_market (line 131) | def query_symbol_sub_market(self, *args, **kwargs): method symbol_func (line 138) | def symbol_func(self, df): class AbuSymbolCN (line 149) | class AbuSymbolCN(AbuSymbolStockBase): method __init__ (line 152) | def __init__(self): method __contains__ (line 156) | def __contains__(self, item): method __getitem__ (line 160) | def __getitem__(self, key): method symbol_func (line 185) | def symbol_func(self, df): method all_symbol (line 195) | def all_symbol(self, index=False): method query_symbol_sub_market (line 213) | def query_symbol_sub_market(self, code, default=EMarketSubType.SH.value): class AbuSymbolUS (line 234) | class AbuSymbolUS(AbuSymbolStockBase): method __init__ (line 243) | def __init__(self): method __contains__ (line 247) | def __contains__(self, item): method __getitem__ (line 251) | def __getitem__(self, key): method symbol_func (line 268) | def symbol_func(self, df): method all_symbol (line 277) | def all_symbol(self, index=False): method query_symbol_sub_market (line 296) | def query_symbol_sub_market(self, code, default=EMarketSubType.US_N.va... class AbuSymbolHK (line 309) | class AbuSymbolHK(AbuSymbolStockBase): method __init__ (line 312) | def __init__(self): method __contains__ (line 316) | def __contains__(self, item): method __getitem__ (line 320) | def __getitem__(self, key): method symbol_func (line 336) | def symbol_func(self, df): method all_symbol (line 345) | def all_symbol(self, index=False): method query_symbol_sub_market (line 361) | def query_symbol_sub_market(self, code, default=EMarketSubType.HK.value): function query_stock_info (line 369) | def query_stock_info(symbol): FILE: abupy/MetricsBu/ABuCrossVal.py function cross_val_mul_process (line 35) | def cross_val_mul_process(vc, cv, corr_series, benchmark, buy_factors, s... class AbuCrossVal (line 85) | class AbuCrossVal(object): method __init__ (line 88) | def __init__(self, market=None, corr_type=ECoreCorrType.E_CORE_TYPE_PE... method _find_or_cache_similar (line 99) | def _find_or_cache_similar(self, n_folds, benchmark, enable_cache): method _do_cross_corr (line 118) | def _do_cross_corr(self, buy_factors, sell_factors, benchmark, corr_se... method fit (line 166) | def fit(self, buy_factors, sell_factors, cv=10, market=None, enable_ca... method plot_all_cross_val_orders (line 253) | def plot_all_cross_val_orders(self): method show_cross_val_se (line 262) | def show_cross_val_se(self, start=0, end=1): method show_cross_val_all (line 278) | def show_cross_val_all(self): FILE: abupy/MetricsBu/ABuGridHelper.py function gen_factor_grid (line 30) | def gen_factor_grid(type_param, factors, need_empty_sell=False): function score_pd_plot (line 57) | def score_pd_plot(grid_score_pd, y_key, x_key=None): function make_grid_score_pd (line 82) | def make_grid_score_pd(grid_scores, score_index=0): FILE: abupy/MetricsBu/ABuGridSearch.py class ParameterGrid (line 35) | class ParameterGrid(object): method __init__ (line 38) | def __init__(self, param_grid): method __iter__ (line 43) | def __iter__(self): method __len__ (line 55) | def __len__(self): method __getitem__ (line 61) | def __getitem__(self, ind): function _check_param_grid (line 86) | def _check_param_grid(param_grid): function grid_search_mul_process (line 107) | def grid_search_mul_process(read_cash, benchmark, factors, choice_symbol... class GridSearch (line 177) | class GridSearch(object): method combine_same_factor_class (line 181) | def combine_same_factor_class(cls, factors): method show_top_constraints_metrics (line 247) | def show_top_constraints_metrics(cls, constraints, scores, score_tuple... method show_top_score_metrics (line 263) | def show_top_score_metrics(cls, scores, score_tuple_array, top_cnt=10): method grid_search (line 286) | def grid_search(cls, choice_symbols, buy_factors, sell_factors, read_c... method __init__ (line 364) | def __init__(self, read_cash, choice_symbols, stock_pickers_product=None, method fit (line 385) | def fit(self, score_class=WrsmScorer, n_jobs=-1): FILE: abupy/MetricsBu/ABuMetricsBase.py function valid_check (line 31) | def valid_check(func): class AbuMetricsBase (line 44) | class AbuMetricsBase(object): method show_general (line 48) | def show_general(cls, orders_pd, action_pd, capital, benchmark, return... method __init__ (line 73) | def __init__(self, orders_pd, action_pd, capital, benchmark, enable_st... method fit_metrics (line 97) | def fit_metrics(self): method fit_metrics_order (line 110) | def fit_metrics_order(self): method _metrics_base_stats (line 114) | def _metrics_base_stats(self): method _metrics_sell_stats (line 180) | def _metrics_sell_stats(self): method _metrics_action_stats (line 257) | def _metrics_action_stats(self): method _metrics_extend_stats (line 306) | def _metrics_extend_stats(self): method plot_order_returns_cmp (line 312) | def plot_order_returns_cmp(self, only_info=True): method plot_returns_cmp (line 331) | def plot_returns_cmp(self, only_show_returns=False, only_info=False): method plot_sharp_volatility_cmp (line 369) | def plot_sharp_volatility_cmp(self, only_info=False): method plot_effect_mean_day (line 393) | def plot_effect_mean_day(self): method plot_action_buy_cost (line 409) | def plot_action_buy_cost(self): method plot_sell_factors (line 422) | def plot_sell_factors(self): method plot_buy_factors (line 432) | def plot_buy_factors(self): method plot_keep_days (line 443) | def plot_keep_days(self): method plot_max_draw_down (line 454) | def plot_max_draw_down(self): method transform_to_full_rate_factor (line 505) | def transform_to_full_rate_factor(self, read_cash=-1, kl_pd_manager=No... class MetricsDemo (line 540) | class MetricsDemo(AbuMetricsBase): method _metrics_extend_stats (line 550) | def _metrics_extend_stats(self): method plot_commission (line 586) | def plot_commission(self): FILE: abupy/MetricsBu/ABuMetricsFutures.py class AbuMetricsFutures (line 20) | class AbuMetricsFutures(AbuMetricsBase): method _metrics_base_stats (line 23) | def _metrics_base_stats(self): method plot_returns_cmp (line 57) | def plot_returns_cmp(self, only_show_returns=False, only_info=False): method plot_sharp_volatility_cmp (line 90) | def plot_sharp_volatility_cmp(self, only_info=False): FILE: abupy/MetricsBu/ABuMetricsScore.py class AbuScoreTuple (line 20) | class AbuScoreTuple(namedtuple('AbuScoreTuple', method __repr__ (line 32) | def __repr__(self): class AbuBaseScorer (line 40) | class AbuBaseScorer(six.with_metaclass(ABCMeta, object)): method __init__ (line 44) | def __init__(self, score_tuple_array, *arg, **kwargs): method _init_self_begin (line 109) | def _init_self_begin(self, *arg, **kwargs): method _init_self_end (line 114) | def _init_self_end(self, *arg, **kwargs): method fit_score (line 118) | def fit_score(self): method __call__ (line 123) | def __call__(self): class WrsmScorer (line 128) | class WrsmScorer(AbuBaseScorer): method _init_self_begin (line 129) | def _init_self_begin(self, *arg, **kwargs): method _init_self_end (line 138) | def _init_self_end(self, *arg, **kwargs): class DemoScorer (line 156) | class DemoScorer(AbuBaseScorer): method _init_self_begin (line 157) | def _init_self_begin(self, *arg, **kwargs): method _init_self_end (line 165) | def _init_self_end(self, *arg, **kwargs): function make_scorer (line 175) | def make_scorer(score_tuple_array, sc_class, **kwargs): FILE: abupy/MetricsBu/ABuMetricsTC.py class AbuMetricsTC (line 15) | class AbuMetricsTC(AbuMetricsFutures): FILE: abupy/PickStockBu/ABuPickRegressAngMinMax.py class AbuPickRegressAngMinMax (line 18) | class AbuPickRegressAngMinMax(AbuPickStockBase): method _init_self (line 20) | def _init_self(self, **kwargs): method fit_pick (line 37) | def fit_pick(self, kl_pd, target_symbol): method fit_first_choice (line 47) | def fit_first_choice(self, pick_worker, choice_symbols, *args, **kwargs): FILE: abupy/PickStockBu/ABuPickSimilarNTop.py class AbuPickSimilarNTop (line 22) | class AbuPickSimilarNTop(AbuPickStockBase): method _init_self (line 25) | def _init_self(self, **kwargs): method fit_pick (line 60) | def fit_pick(self, kl_pd, target_symbol): method fit_first_choice (line 72) | def fit_first_choice(self, pick_worker, choice_symbols, *args, **kwargs): FILE: abupy/PickStockBu/ABuPickStockBase.py function reversed_result (line 21) | def reversed_result(func): class AbuPickStockBase (line 33) | class AbuPickStockBase(six.with_metaclass(ABCMeta, AbuParamBase)): method __init__ (line 34) | def __init__(self, capital, benchmark, **kwargs): method __str__ (line 62) | def __str__(self): method _init_self (line 70) | def _init_self(self, **kwargs): method fit_pick (line 75) | def fit_pick(self, *args, **kwargs): method fit_first_choice (line 80) | def fit_first_choice(self, pick_worker, choice_symbols, *args, **kwargs): FILE: abupy/PickStockBu/ABuPickStockDemo.py class AbuPickStockShiftDistance (line 21) | class AbuPickStockShiftDistance(AbuPickStockBase): method _init_self (line 24) | def _init_self(self, **kwargs): method fit_pick (line 31) | def fit_pick(self, kl_pd, target_symbol): method fit_first_choice (line 47) | def fit_first_choice(self, pick_worker, choice_symbols, *args, **kwargs): class AbuPickStockNTop (line 51) | class AbuPickStockNTop(AbuPickStockBase): method _init_self (line 54) | def _init_self(self, **kwargs): method fit_pick (line 64) | def fit_pick(self, kl_pd, target_symbol): method fit_first_choice (line 104) | def fit_first_choice(self, pick_worker, choice_symbols, *args, **kwargs): FILE: abupy/PickStockBu/ABuPickStockPriceMinMax.py class AbuPickStockPriceMinMax (line 16) | class AbuPickStockPriceMinMax(AbuPickStockBase): method _init_self (line 18) | def _init_self(self, **kwargs): method fit_pick (line 35) | def fit_pick(self, kl_pd, target_symbol): method fit_first_choice (line 42) | def fit_first_choice(self, pick_worker, choice_symbols, *args, **kwargs): FILE: abupy/SimilarBu/ABuCorrcoef.py class ECoreCorrType (line 23) | class ECoreCorrType(Enum): method task_cnt (line 37) | def task_cnt(cls): function corr_xy (line 46) | def corr_xy(x, y, similar_type=ECoreCorrType.E_CORE_TYPE_PEARS, **kwargs): function corr_matrix (line 85) | def corr_matrix(df, similar_type=ECoreCorrType.E_CORE_TYPE_PEARS, **kwar... function rolling_corr (line 122) | def rolling_corr(df, ss=None, window=g_rolling_corr_window): function spearmanr (line 208) | def spearmanr(a, b=None, axis=0, p_value=False): function _chk_asarray (line 234) | def _chk_asarray(a, axis): FILE: abupy/SimilarBu/ABuSimilar.py function from_local (line 39) | def from_local(func): function from_net (line 65) | def from_net(func): function _find_similar (line 90) | def _find_similar(symbol, cmp_cnt=None, n_folds=2, start=None, end=None,... function find_similar_with_se (line 125) | def find_similar_with_se(symbol, start, end, show_cnt=10, rolling=False,... function find_similar_with_folds (line 142) | def find_similar_with_folds(symbol, n_folds=2, show_cnt=10, rolling=Fals... function find_similar_with_cnt (line 158) | def find_similar_with_cnt(symbol, cmp_cnt=60, show_cnt=10, rolling=False... function _make_symbols_cg_df (line 175) | def _make_symbols_cg_df(symbols, benchmark): function _make_benchmark_cg_df (line 207) | def _make_benchmark_cg_df(symbol, benchmark): function _net_cg_df_create (line 231) | def _net_cg_df_create(symbol, benchmark): function _all_market_cg (line 275) | def _all_market_cg(symbol, cmp_cnt=None, n_folds=2, start=None, end=None): function _handle_market_change_df (line 310) | def _handle_market_change_df(market_change_df, cmp_cnt, benchmark_df, sh... function multi_corr_df (line 358) | def multi_corr_df(corr_jobs, cmp_cnt=252, n_folds=None, start=None, end=... FILE: abupy/SimilarBu/ABuSimilarCache.py function similar_key (line 15) | def similar_key(symbol, cmp_cnt=None, n_folds=None, start=None, end=None... function dump_2_hdh5 (line 19) | def dump_2_hdh5(key, obj): function load_2_hdh5 (line 23) | def load_2_hdh5(key): function show_keys (line 27) | def show_keys(): function clear_cache (line 32) | def clear_cache(key=None): FILE: abupy/SimilarBu/ABuSimilarDrawing.py function draw_show_close (line 28) | def draw_show_close(sorted_ret, target_count, show_cnt): function draw_show_close_array (line 64) | def draw_show_close_array(sorted_ret, cs_array): FILE: abupy/SlippageBu/ABuSlippageBuyBase.py class AbuSlippageBuyBase (line 23) | class AbuSlippageBuyBase(six.with_metaclass(ABCMeta, object)): method __init__ (line 26) | def __init__(self, kl_pd_buy, factor_name): method fit (line 35) | def fit(self): method fit_price (line 44) | def fit_price(self): function slippage_limit_up (line 62) | def slippage_limit_up(func): FILE: abupy/SlippageBu/ABuSlippageBuyMean.py class AbuSlippageBuyMean (line 23) | class AbuSlippageBuyMean(AbuSlippageBuyBase): method fit_price (line 27) | def fit_price(self): FILE: abupy/SlippageBu/ABuSlippageSellBase.py class AbuSlippageSellBase (line 23) | class AbuSlippageSellBase(six.with_metaclass(ABCMeta, object)): method __init__ (line 26) | def __init__(self, kl_pd_sell, factor_name): method fit (line 35) | def fit(self): method fit_price (line 44) | def fit_price(self): function slippage_limit_down (line 62) | def slippage_limit_down(func): FILE: abupy/SlippageBu/ABuSlippageSellMean.py class AbuSlippageSellMean (line 20) | class AbuSlippageSellMean(AbuSlippageSellBase): method fit_price (line 24) | def fit_price(self): FILE: abupy/TLineBu/ABuTLAtr.py function show_atr_std (line 21) | def show_atr_std(kl_pd): function calc_atr_std (line 38) | def calc_atr_std(kl_pd, xd=21, ewm=True, show=True): FILE: abupy/TLineBu/ABuTLExecute.py function shift_distance (line 38) | def shift_distance(arr, how, slice_start=0, slice_end=-1, color='r', sho... function calc_kl_speed (line 140) | def calc_kl_speed(kl, resample=5): function calc_pair_speed (line 217) | def calc_pair_speed(symbol, benchmark_symbol, resample=5, speed_key='clo... function shift_distance_how (line 263) | def shift_distance_how(how): function regress_trend_channel (line 293) | def regress_trend_channel(arr): function bfgs_min_pos (line 322) | def bfgs_min_pos(find_min_pos, y_len, linear_interp): function support_resistance_pos (line 341) | def support_resistance_pos(x, support_resistance_y, best_poly=0, label=N... function select_k_support_resistance (line 390) | def select_k_support_resistance(support_resistance, thresh=0.06, label='... function support_resistance_predict (line 461) | def support_resistance_predict(x, y, est, support_resistance, is_support... function plot_support_resistance_trend (line 534) | def plot_support_resistance_trend(x, y, trend_pos, label, only_last=Fals... function skeleton_how (line 587) | def skeleton_how(how): function below_above_gen (line 619) | def below_above_gen(x, y): function find_percent_point (line 628) | def find_percent_point(percents, y): function find_golden_point_ex (line 650) | def find_golden_point_ex(x, y, show=False): function find_golden_point (line 671) | def find_golden_point(x, y, show=False): FILE: abupy/TLineBu/ABuTLGolden.py function calc_golden (line 21) | def calc_golden(kl_pd, show=True): FILE: abupy/TLineBu/ABuTLJump.py function calc_jump (line 30) | def calc_jump(kl_pd, jump_diff_factor=1, show=True): class AbuJumpTuple (line 192) | class AbuJumpTuple(namedtuple('AbuJumpTuple', method __repr__ (line 199) | def __repr__(self): function calc_jump_line (line 206) | def calc_jump_line(kl_pd, power_threshold=2.0, jump_diff_factor=1, show=... function _show_jump_line (line 237) | def _show_jump_line(kl_pd, jump_lines): function calc_jump_line_weight (line 259) | def calc_jump_line_weight(kl_pd, sw=(0.5, 0.5), power_threshold=2.0, jum... FILE: abupy/TLineBu/ABuTLSimilar.py function rank_corr_sum (line 39) | def rank_corr_sum(corr_df_dict, symbol): function calc_similar (line 134) | def calc_similar(symbol, cmp_symbol, sum_rank=None, corr_jobs=(ECoreCorr... function calc_similar_top (line 280) | def calc_similar_top(symbol, sum_rank=None, corr_jobs=(ECoreCorrType.E_C... function coint_similar (line 401) | def coint_similar(symbol, sum_rank=None, corr_jobs=(ECoreCorrType.E_CORE... FILE: abupy/TLineBu/ABuTLVwap.py class EDayBarCalcType (line 20) | class EDayBarCalcType(Enum): function calc_vwap (line 33) | def calc_vwap(kl_pd, how=EDayBarCalcType.OHLC_MEAN, show=True): FILE: abupy/TLineBu/ABuTLWave.py function show_wave_return (line 20) | def show_wave_return(kl_pd): function calc_wave_std (line 37) | def calc_wave_std(kl_pd, xd=21, ewm=True, show=True): function calc_wave_abs (line 66) | def calc_wave_abs(kl_pd, xd=21, show=True): function calc_wave_weight_abs (line 120) | def calc_wave_weight_abs(kl_pd, xd=21, span=3, show=True): function _show_wave (line 154) | def _show_wave(wave, above, wave_mean, below, xd_mean_close): FILE: abupy/TLineBu/ABuTLine.py class ESkeletonHow (line 43) | class ESkeletonHow(Enum): class EShiftDistanceHow (line 66) | class EShiftDistanceHow(Enum): class AbuTLine (line 90) | class AbuTLine(FreezeAttrMixin): method __init__ (line 93) | def __init__(self, line, line_name, **kwargs): method show_kl_pd (line 123) | def show_kl_pd(cls, kl_pd, key='close', show=True, **kwargs): method score (line 160) | def score(self): method y_zoom (line 178) | def y_zoom(self): method step_x_to_step (line 188) | def step_x_to_step(self, step_x): method show (line 207) | def show(self): method is_up_trend (line 221) | def is_up_trend(self, up_deg_threshold=5, show=True): method is_down_trend (line 238) | def is_down_trend(self, down_deg_threshold=-5, show=True): method show_best_poly (line 256) | def show_best_poly(self, zoom=False, show=show): method show_least_valid_poly (line 268) | def show_least_valid_poly(self, zoom=False, show=True): method show_shift_distance (line 280) | def show_shift_distance(self, how=EShiftDistanceHow.shift_distance_clo... method show_regress_trend_channel (line 311) | def show_regress_trend_channel(self, step_x=1.0): method show_skeleton_channel (line 331) | def show_skeleton_channel(self, with_mean=True, step_x=1.0): method show_skeleton (line 349) | def show_skeleton(self, how=ESkeletonHow.skeleton_min, step_x=1.0, ps=... method show_skeleton_bfgs (line 397) | def show_skeleton_bfgs(self, step_x=1.0): method show_support_resistance_pos (line 428) | def show_support_resistance_pos(self, best_poly=0, show=True): method show_support_resistance_select_k (line 461) | def show_support_resistance_select_k(self, best_poly=0, show=True): method show_support_resistance_trend (line 488) | def show_support_resistance_trend(self, best_poly=0, only_last=False, ... method show_support_trend (line 535) | def show_support_trend(self, best_poly=0, only_last=False, plot_org=Fa... method show_resistance_trend (line 568) | def show_resistance_trend(self, best_poly=0, only_last=False, plot_org... method show_percents (line 601) | def show_percents(self, percents=(0.1, 0.9)): method show_golden (line 633) | def show_golden(self, both_golden=True): method __str__ (line 647) | def __str__(self): FILE: abupy/TradeBu/ABuBenchmark.py class AbuBenchmark (line 22) | class AbuBenchmark(PickleStateMixin): method __init__ (line 25) | def __init__(self, benchmark=None, start=None, end=None, n_folds=2, rs... method unpick_extend_work (line 73) | def unpick_extend_work(self, state): method __str__ (line 80) | def __str__(self): FILE: abupy/TradeBu/ABuCapital.py class AbuCapital (line 25) | class AbuCapital(PickleStateMixin): method __init__ (line 28) | def __init__(self, init_cash, benchmark, user_commission_dict=None): method __str__ (line 58) | def __str__(self): method __len__ (line 65) | def __len__(self): method init_k_line (line 69) | def init_k_line(self, a_symbol): method apply_init_kl (line 98) | def apply_init_kl(self, action_pd, show_progress): method apply_k_line (line 114) | def apply_k_line(self, a_k_day, kl_pd, buy_type_head): method apply_kl (line 142) | def apply_kl(self, action_pd, kl_pd_manager, show_progress): method apply_action (line 193) | def apply_action(self, a_action, progress): method buy_stock (line 230) | def buy_stock(self, a_order): method sell_stock (line 299) | def sell_stock(self, a_order): FILE: abupy/TradeBu/ABuCommission.py function calc_commission_us (line 28) | def calc_commission_us(trade_cnt, price): function calc_commission_cn (line 43) | def calc_commission_cn(trade_cnt, price): function calc_commission_hk (line 61) | def calc_commission_hk(trade_cnt, price): function calc_commission_tc (line 77) | def calc_commission_tc(trade_cnt, price): function calc_commission_futures_cn (line 92) | def calc_commission_futures_cn(trade_cnt, price, symbol_name): function calc_options_us (line 113) | def calc_options_us(trade_cnt, price): function calc_commission_futures_global (line 126) | def calc_commission_futures_global(trade_cnt, price): class AbuCommission (line 139) | class AbuCommission(object): method __init__ (line 142) | def __init__(self, commission_dict): method __str__ (line 154) | def __str__(self): method _commission_enter (line 163) | def _commission_enter(self, a_order): method buy_commission_func (line 200) | def buy_commission_func(self, a_order): method sell_commission_func (line 226) | def sell_commission_func(self, a_order): FILE: abupy/TradeBu/ABuKLManager.py function gen_dict_pick_time_kl_pd (line 32) | def gen_dict_pick_time_kl_pd(target_symbols, capital, benchmark, show_pr... class AbuKLManager (line 67) | class AbuKLManager(object): method __init__ (line 70) | def __init__(self, benchmark, capital): method __str__ (line 84) | def __str__(self): method __len__ (line 91) | def __len__(self): method __contains__ (line 95) | def __contains__(self, item): method __missing__ (line 99) | def __missing__(self, key): method __getitem__ (line 104) | def __getitem__(self, key): method __setitem__ (line 114) | def __setitem__(self, key, value): method _fetch_pick_stock_kl_pd (line 118) | def _fetch_pick_stock_kl_pd(self, xd, target_symbol): method _fetch_pick_time_kl_pd (line 155) | def _fetch_pick_time_kl_pd(self, target_symbol): method get_pick_time_kl_pd (line 160) | def get_pick_time_kl_pd(self, target_symbol): method filter_pick_time_choice_symbols (line 173) | def filter_pick_time_choice_symbols(self, choice_symbols): method batch_get_pick_time_kl_pd (line 182) | def batch_get_pick_time_kl_pd(self, choice_symbols, n_process=ABuEnv.g... method get_pick_stock_kl_pd (line 226) | def get_pick_stock_kl_pd(self, target_symbol, xd=ABuEnv.g_market_trade... FILE: abupy/TradeBu/ABuMLFeature.py class BuyFeatureMixin (line 43) | class BuyFeatureMixin(object): class SellFeatureMixin (line 52) | class SellFeatureMixin(object): class AbuFeatureBase (line 61) | class AbuFeatureBase(object): method support_buy_feature (line 64) | def support_buy_feature(self): method support_sell_feature (line 68) | def support_sell_feature(self): method check_support (line 72) | def check_support(self, buy_feature): method feature_prefix (line 82) | def feature_prefix(self, buy_feature, check=True): method __str__ (line 93) | def __str__(self): method get_feature_ump_keys (line 103) | def get_feature_ump_keys(self, ump_cls): method get_feature_keys (line 112) | def get_feature_keys(self, buy_feature): method calc_feature (line 120) | def calc_feature(self, kl_pd, combine_kl_pd, day_ind, buy_feature): class AbuFeatureDeg (line 132) | class AbuFeatureDeg(AbuFeatureBase, BuyFeatureMixin, SellFeatureMixin): method __init__ (line 135) | def __init__(self): method get_feature_keys (line 144) | def get_feature_keys(self, buy_feature): method calc_feature (line 152) | def calc_feature(self, kl_pd, combine_kl_pd, day_ind, buy_feature): class AbuFeaturePrice (line 184) | class AbuFeaturePrice(AbuFeatureBase, BuyFeatureMixin, SellFeatureMixin): method __init__ (line 187) | def __init__(self): method get_feature_keys (line 196) | def get_feature_keys(self, buy_feature): method calc_feature (line 205) | def calc_feature(self, kl_pd, combine_kl_pd, day_ind, buy_feature): class AbuFeatureWave (line 254) | class AbuFeatureWave(AbuFeatureBase, BuyFeatureMixin, SellFeatureMixin): method __init__ (line 257) | def __init__(self): method get_feature_keys (line 265) | def get_feature_keys(self, buy_feature): method calc_feature (line 274) | def calc_feature(self, kl_pd, combine_kl_pd, day_ind, buy_feature): class AbuFeatureAtr (line 308) | class AbuFeatureAtr(AbuFeatureBase, BuyFeatureMixin): method __init__ (line 311) | def __init__(self): method get_feature_keys (line 319) | def get_feature_keys(self, buy_feature): method calc_feature (line 327) | def calc_feature(self, kl_pd, combine_kl_pd, day_ind, buy_feature): class AbuFeatureJump (line 360) | class AbuFeatureJump(AbuFeatureBase, BuyFeatureMixin, SellFeatureMixin): method __init__ (line 363) | def __init__(self): method get_feature_keys (line 373) | def get_feature_keys(self, buy_feature): method calc_feature (line 381) | def calc_feature(self, kl_pd, combine_kl_pd, day_ind, buy_feature): class AbuFeatureSnapshot (line 456) | class AbuFeatureSnapshot(AbuFeatureBase, BuyFeatureMixin, SellFeatureMix... method __init__ (line 462) | def __init__(self): method get_feature_keys (line 470) | def get_feature_keys(self, buy_feature): method calc_feature (line 478) | def calc_feature(self, kl_pd, combine_kl_pd, day_ind, buy_feature): function append_user_feature (line 519) | def append_user_feature(feature, check=True): function clear_user_feature (line 542) | def clear_user_feature(): class AbuMlFeature (line 548) | class AbuMlFeature(object): method __init__ (line 551) | def __init__(self): method make_feature_dict (line 565) | def make_feature_dict(self, kl_pd, combine_kl_pd, day_ind, buy_feature): method _get_unzip_feature_keys (line 586) | def _get_unzip_feature_keys(self, buy_feature): method unzip_ml_feature (line 602) | def unzip_ml_feature(self, orders_pd): class AbuFeatureDegExtend (line 636) | class AbuFeatureDegExtend(AbuFeatureBase, BuyFeatureMixin, SellFeatureMi... method __init__ (line 639) | def __init__(self): method get_feature_keys (line 644) | def get_feature_keys(self, buy_feature): method calc_feature (line 652) | def calc_feature(self, kl_pd, combine_kl_pd, day_ind, buy_feature): FILE: abupy/TradeBu/ABuOrder.py class OrderMarket (line 25) | class OrderMarket(MarketMixin): method __init__ (line 28) | def __init__(self, order): class AbuOrder (line 40) | class AbuOrder(object): method __init__ (line 49) | def __init__(self): method fit_buy_order (line 53) | def fit_buy_order(self, day_ind, factor_object): method fit_sell_order (line 182) | def fit_sell_order(self, day_ind, factor_object): method __str__ (line 221) | def __str__(self): FILE: abupy/TradeBu/ABuTradeDrawer.py function plot_his_trade (line 32) | def plot_his_trade(orders, kl_pd): function plot_capital_info (line 141) | def plot_capital_info(capital_pd, init_cash=-1): function plot_bk_xd (line 190) | def plot_bk_xd(bk_summary, kl_pd_xd_mean, title=None): function plot_kp_xd (line 204) | def plot_kp_xd(kp_summary, kl_pd_xd_mean, title=None): FILE: abupy/TradeBu/ABuTradeExecute.py function calc_simple_profit (line 24) | def calc_simple_profit(orders, kl_pd): function make_orders_pd (line 43) | def make_orders_pd(orders, kl_pd): function transform_action (line 100) | def transform_action(orders_pd): function apply_action_to_capital (line 141) | def apply_action_to_capital(capital, action_pd, kl_pd_manager, show_prog... FILE: abupy/TradeBu/ABuTradeProxy.py class EOrderSameRule (line 24) | class EOrderSameRule(Enum): class AbuOrderPdProxy (line 38) | class AbuOrderPdProxy(object): method __init__ (line 55) | def __init__(self, orders_pd, same_rule=EOrderSameRule.ORDER_SAME_BSPD): method proxy_work (line 70) | def proxy_work(self, orders_pd): method __and__ (line 97) | def __and__(self, other): method __or__ (line 103) | def __or__(self, other): method __sub__ (line 109) | def __sub__(self, other): method __eq__ (line 114) | def __eq__(self, other): method __gt__ (line 118) | def __gt__(self, other): function union_in_2orders (line 125) | def union_in_2orders(orders_pd, other_orders_pd): function _same_pd (line 140) | def _same_pd(order, other_orders_pd, same_rule): function intersection_in_2orders (line 178) | def intersection_in_2orders(orders_pd, other_orders_pd, same_rule=EOrder... function difference_in_2orders (line 200) | def difference_in_2orders(orders_pd, other_orders_pd, same_rule=EOrderSa... function find_unique_group_symbol (line 224) | def find_unique_group_symbol(order_pd): function find_unique_symbol (line 240) | def find_unique_symbol(order_pd, same_rule=EOrderSameRule.ORDER_SAME_BSPD): function trade_summary (line 261) | def trade_summary(orders, kl_pd, draw=False, show_info=True): FILE: abupy/UmpBu/ABuUmpBase.py class BuyUmpMixin (line 24) | class BuyUmpMixin(object): class SellUmpMixin (line 32) | class SellUmpMixin(object): class UmpDict (line 40) | class UmpDict(dict): class CachedUmpManager (line 46) | class CachedUmpManager: method __init__ (line 52) | def __init__(self): method get_ump (line 56) | def get_ump(self, ump): method clear (line 92) | def clear(self): function ump_main_make_xy (line 97) | def ump_main_make_xy(func): function ump_edge_make_xy (line 152) | def ump_edge_make_xy(func): class AbuUmpBase (line 198) | class AbuUmpBase(six.with_metaclass(ABCMeta, object)): method get_fiter_class (line 203) | def get_fiter_class(self): method get_predict_col (line 208) | def get_predict_col(self): method is_buy_ump (line 213) | def is_buy_ump(cls): method class_unique_id (line 222) | def class_unique_id(cls): method __str__ (line 230) | def __str__(self): FILE: abupy/UmpBu/ABuUmpEdgeBase.py class EEdgeType (line 55) | class EEdgeType(Enum): class AbuUmpEdgeBase (line 70) | class AbuUmpEdgeBase(AbuUmpBase): method ump_edge_clf_dump (line 74) | def ump_edge_clf_dump(cls, orders_pd_train, show_info=False, market_na... method get_fiter_class (line 91) | def get_fiter_class(self): method get_predict_col (line 96) | def get_predict_col(self): method class_unique_id (line 102) | def class_unique_id(cls): method __init__ (line 110) | def __init__(self, orders_pd=None, predict=False, market_name=None, **... method fit (line 154) | def fit(self): method dump_file_fn (line 275) | def dump_file_fn(self): method dump_clf (line 285) | def dump_clf(self): method predict (line 317) | def predict(self, **kwargs): FILE: abupy/UmpBu/ABuUmpEdgeDeg.py class UmpDegFiter (line 17) | class UmpDegFiter(AbuMLPd): method make_xy (line 27) | def make_xy(self, **kwarg): class AbuUmpEdgeDeg (line 97) | class AbuUmpEdgeDeg(AbuUmpEdgeBase, BuyUmpMixin): method get_predict_col (line 100) | def get_predict_col(self): method get_fiter_class (line 107) | def get_fiter_class(self): method class_unique_id (line 115) | def class_unique_id(cls): class UmpExtendEdgeFiter (line 124) | class UmpExtendEdgeFiter(AbuMLPd): method make_xy (line 127) | def make_xy(self, **kwarg): class AbuUmpEegeDegExtend (line 135) | class AbuUmpEegeDegExtend(AbuUmpEdgeBase, BuyUmpMixin): method get_predict_col (line 138) | def get_predict_col(self): method get_fiter_class (line 143) | def get_fiter_class(self): method class_unique_id (line 147) | def class_unique_id(cls): FILE: abupy/UmpBu/ABuUmpEdgeFull.py class UmpFullFiter (line 17) | class UmpFullFiter(AbuMLPd): method make_xy (line 28) | def make_xy(self, **kwarg): class AbuUmpEdgeFull (line 120) | class AbuUmpEdgeFull(AbuUmpEdgeBase, BuyUmpMixin): method get_predict_col (line 123) | def get_predict_col(self): method get_fiter_class (line 143) | def get_fiter_class(self): method class_unique_id (line 151) | def class_unique_id(cls): FILE: abupy/UmpBu/ABuUmpEdgeMul.py class UmpMulFiter (line 17) | class UmpMulFiter(AbuMLPd): method make_xy (line 28) | def make_xy(self, **kwarg): class AbuUmpEdgeMul (line 101) | class AbuUmpEdgeMul(AbuUmpEdgeBase, BuyUmpMixin): method get_predict_col (line 104) | def get_predict_col(self): method get_fiter_class (line 115) | def get_fiter_class(self): method class_unique_id (line 123) | def class_unique_id(cls): FILE: abupy/UmpBu/ABuUmpEdgePrice.py class UmpPriceFiter (line 17) | class UmpPriceFiter(AbuMLPd): method make_xy (line 28) | def make_xy(self, **kwarg): class AbuUmpEdgePrice (line 99) | class AbuUmpEdgePrice(AbuUmpEdgeBase, BuyUmpMixin): method get_predict_col (line 102) | def get_predict_col(self): method get_fiter_class (line 109) | def get_fiter_class(self): method class_unique_id (line 117) | def class_unique_id(cls): FILE: abupy/UmpBu/ABuUmpEdgeWave.py class UmpWaveFiter (line 17) | class UmpWaveFiter(AbuMLPd): method make_xy (line 28) | def make_xy(self, **kwarg): class AbuUmpEdgeWave (line 98) | class AbuUmpEdgeWave(AbuUmpEdgeBase, BuyUmpMixin): method get_predict_col (line 101) | def get_predict_col(self): method get_fiter_class (line 108) | def get_fiter_class(self): method class_unique_id (line 116) | def class_unique_id(cls): FILE: abupy/UmpBu/ABuUmpMainBase.py function _do_gmm_cluster (line 53) | def _do_gmm_cluster(sub_ncs, x, df, threshold): class AbuUmpMainBase (line 161) | class AbuUmpMainBase(AbuUmpBase): method ump_main_clf_dump (line 165) | def ump_main_clf_dump(cls, orders_pd_train, p_ncs=None, brust_min=True... method get_fiter_class (line 220) | def get_fiter_class(self): method get_predict_col (line 225) | def get_predict_col(self): method class_unique_id (line 231) | def class_unique_id(cls): method __init__ (line 239) | def __init__(self, orders_pd=None, predict=False, market_name=None, **... method _sub_ncs_split (line 288) | def _sub_ncs_split(self, ncs, n_jobs): method fit (line 300) | def fit(self, p_ncs=None, threshold=0.65, brust_min=True, show=True): method _fit_cprs (line 451) | def _fit_cprs(self, show): method _fit_brust_min (line 638) | def _fit_brust_min(self, brust_min): method brust_min (line 667) | def brust_min(self): method min_func (line 734) | def min_func(self, l_pmr): method min_func_improved (line 808) | def min_func_improved(self, l_pmr): method _calc_llps_improved (line 825) | def _calc_llps_improved(self, llps): method dump_file_fn (line 891) | def dump_file_fn(self): method dump_clf (line 901) | def dump_clf(self, llps=None): method predict (line 982) | def predict(self, x, need_hit_cnt=1): method predict_kwargs (line 1033) | def predict_kwargs(self, w_col=None, need_hit_cnt=1, **kwargs): method show_parse_rt (line 1061) | def show_parse_rt(self, rt): method choose_cprs_component (line 1088) | def choose_cprs_component(self, llps=None): method best_hit_cnt_info (line 1158) | def best_hit_cnt_info(self, llps=None): method hit_cnt (line 1265) | def hit_cnt(self, x): method predict_hit_kwargs (line 1293) | def predict_hit_kwargs(self, w_col=None, **kwargs): FILE: abupy/UmpBu/ABuUmpMainDeg.py class UmpDegFiter (line 17) | class UmpDegFiter(AbuMLPd): method make_xy (line 28) | def make_xy(self, **kwarg): class AbuUmpMainDeg (line 95) | class AbuUmpMainDeg(AbuUmpMainBase, BuyUmpMixin): method get_predict_col (line 98) | def get_predict_col(self): method get_fiter_class (line 105) | def get_fiter_class(self): method class_unique_id (line 113) | def class_unique_id(cls): class UmpExtendFeatureFiter (line 122) | class UmpExtendFeatureFiter(AbuMLPd): method make_xy (line 125) | def make_xy(self, **kwarg): class AbuUmpMainDegExtend (line 133) | class AbuUmpMainDegExtend(AbuUmpMainBase, BuyUmpMixin): method get_predict_col (line 136) | def get_predict_col(self): method get_fiter_class (line 141) | def get_fiter_class(self): method class_unique_id (line 145) | def class_unique_id(cls): FILE: abupy/UmpBu/ABuUmpMainFull.py class UmpFullFiter (line 17) | class UmpFullFiter(AbuMLPd): method make_xy (line 28) | def make_xy(self, **kwarg): class AbuUmpMainFull (line 143) | class AbuUmpMainFull(AbuUmpMainBase, BuyUmpMixin): method get_predict_col (line 146) | def get_predict_col(self): method get_fiter_class (line 166) | def get_fiter_class(self): method class_unique_id (line 174) | def class_unique_id(cls): FILE: abupy/UmpBu/ABuUmpMainJump.py class UmpJumpFiter (line 17) | class UmpJumpFiter(AbuMLPd): method make_xy (line 28) | def make_xy(self, **kwarg): class AbuUmpMainJump (line 94) | class AbuUmpMainJump(AbuUmpMainBase, BuyUmpMixin): method get_predict_col (line 97) | def get_predict_col(self): method get_fiter_class (line 104) | def get_fiter_class(self): method class_unique_id (line 112) | def class_unique_id(cls): FILE: abupy/UmpBu/ABuUmpMainMul.py class UmpMulFiter (line 17) | class UmpMulFiter(AbuMLPd): method make_xy (line 28) | def make_xy(self, **kwarg): class AbuUmpMainMul (line 97) | class AbuUmpMainMul(AbuUmpMainBase, BuyUmpMixin): method get_predict_col (line 102) | def get_predict_col(self): method get_fiter_class (line 113) | def get_fiter_class(self): method class_unique_id (line 121) | def class_unique_id(cls): FILE: abupy/UmpBu/ABuUmpMainPrice.py class UmpPriceFiter (line 17) | class UmpPriceFiter(AbuMLPd): method make_xy (line 28) | def make_xy(self, **kwarg): class AbuUmpMainPrice (line 95) | class AbuUmpMainPrice(AbuUmpMainBase, BuyUmpMixin): method get_predict_col (line 98) | def get_predict_col(self): method get_fiter_class (line 105) | def get_fiter_class(self): method class_unique_id (line 113) | def class_unique_id(cls): FILE: abupy/UmpBu/ABuUmpMainWave.py class UmpWaveFiter (line 17) | class UmpWaveFiter(AbuMLPd): method make_xy (line 28) | def make_xy(self, **kwarg): class AbuUmpMainWave (line 73) | class AbuUmpMainWave(AbuUmpMainBase, BuyUmpMixin): method get_predict_col (line 76) | def get_predict_col(self): method get_fiter_class (line 84) | def get_fiter_class(self): method class_unique_id (line 92) | def class_unique_id(cls): FILE: abupy/UmpBu/ABuUmpManager.py function append_user_ump (line 35) | def append_user_ump(ump, check=True): function clear_user_ump (line 53) | def clear_user_ump(): class AbuUmpManager (line 62) | class AbuUmpManager(object): method __init__ (line 65) | def __init__(self, factor): method __str__ (line 85) | def __str__(self): method _fix_ump_env (line 93) | def _fix_ump_env(cls): method ump_main_deg (line 110) | def ump_main_deg(self): method ump_main_jump (line 118) | def ump_main_jump(self): method ump_main_price (line 126) | def ump_main_price(self): method ump_main_wave (line 134) | def ump_main_wave(self): method ump_edge_deg (line 142) | def ump_edge_deg(self): method ump_edge_price (line 150) | def ump_edge_price(self): method ump_edge_wave (line 158) | def ump_edge_wave(self): method ump_edge_full (line 166) | def ump_edge_full(self): method _default_main_hit_cnt (line 174) | def _default_main_hit_cnt(self): method ump_main_deg_hit_cnt (line 180) | def ump_main_deg_hit_cnt(self): method ump_main_jump_hit_cnt (line 192) | def ump_main_jump_hit_cnt(self): method ump_main_price_hit_cnt (line 204) | def ump_main_price_hit_cnt(self): method ump_main_wave_hit_cnt (line 216) | def ump_main_wave_hit_cnt(self): method ump_main_user_hit_cnt (line 228) | def ump_main_user_hit_cnt(self): method ump_block (line 252) | def ump_block(self, ml_feature_dict): method extend_ump_block (line 277) | def extend_ump_block(self, ml_feature_dict): method builtin_ump_block (line 337) | def builtin_ump_block(self, ml_feature_dict): FILE: abupy/UtilBu/ABuDTUtil.py function warnings_filter (line 26) | def warnings_filter(func): function singleton (line 44) | def singleton(cls): function arr_to_pandas (line 63) | def arr_to_pandas(arr): function params_to_pandas (line 88) | def params_to_pandas(func): function arr_to_numpy (line 106) | def arr_to_numpy(arr): function params_to_numpy (line 127) | def params_to_numpy(func): function catch_error (line 144) | def catch_error(return_val=None, log=True): function consume_time (line 174) | def consume_time(func): function empty_wrapper (line 191) | def empty_wrapper(func): function empty_wrapper_with_params (line 205) | def empty_wrapper_with_params(*p_args, **p_kwargs): function except_debug (line 221) | def except_debug(func): function plt_show (line 241) | def plt_show(): FILE: abupy/UtilBu/ABuDateUtil.py function str_to_datetime (line 34) | def str_to_datetime(date_str, fmt=K_DEFAULT_DT_FMT, fix=True): function str_to_datetime_fast (line 49) | def str_to_datetime_fast(date_str, split='-', fix=True): function datetime_to_str (line 65) | def datetime_to_str(dt_obj): function timestamp_to_str (line 74) | def timestamp_to_str(ts): function date_str_to_int (line 89) | def date_str_to_int(date_str, split='-', fix=True): function fix_date (line 105) | def fix_date(date_str): function fmt_date (line 140) | def fmt_date(convert_date): function diff (line 171) | def diff(start_date, end_date, check_order=True): function current_date_int (line 214) | def current_date_int(): function current_str_date (line 230) | def current_str_date(): function week_of_date (line 238) | def week_of_date(date_str, fmt=K_DEFAULT_DT_FMT, fix=True): function begin_date (line 253) | def begin_date(pre_days, date_str=None, split='-', fix=True): function time_seconds (line 285) | def time_seconds(): function time_zone (line 293) | def time_zone(): FILE: abupy/UtilBu/ABuDelegateUtil.py function first_delegate_has_method (line 20) | def first_delegate_has_method(delegate, check_params=True): function replace_word_delegate_has_method (line 71) | def replace_word_delegate_has_method(delegate, key_word, replace_word, c... class _IffHasAttrDescriptor (line 128) | class _IffHasAttrDescriptor(object): method __init__ (line 133) | def __init__(self, fn, delegate_names, attribute_name): method __get__ (line 141) | def __get__(self, obj, p_type=None): function if_delegate_has_method (line 164) | def if_delegate_has_method(delegate): FILE: abupy/UtilBu/ABuFileUtil.py function ensure_dir (line 32) | def ensure_dir(a_path): function ensure_file (line 46) | def ensure_file(a_path): function file_exist (line 57) | def file_exist(a_path): function copy_file (line 65) | def copy_file(source, target_dir): function del_file (line 84) | def del_file(a_path): function load_pickle (line 98) | def load_pickle(file_name): function dump_pickle (line 122) | def dump_pickle(input_obj, file_name, how='normal'): function __start_batch_h5s (line 154) | def __start_batch_h5s(file_name, mode): function __end_batch_h5s (line 164) | def __end_batch_h5s(): function batch_h5s (line 175) | def batch_h5s(h5_fn, mode='a'): function batch_ctx_h5s (line 212) | def batch_ctx_h5s(h5_fn, mode='a'): function dump_del_hdf5 (line 243) | def dump_del_hdf5(file_name, dump_dict, del_array=None): function dump_hdf5 (line 279) | def dump_hdf5(file_name, input_obj, input_key): function del_hdf5 (line 297) | def del_hdf5(file_name, key): function load_hdf5 (line 317) | def load_hdf5(file_name, key): function dump_df_csv (line 349) | def dump_df_csv(file_name, df): function load_df_csv (line 361) | def load_df_csv(file_name): function save_file (line 372) | def save_file(ct, file_name): FILE: abupy/UtilBu/ABuKLUtil.py function _df_dispatch (line 34) | def _df_dispatch(df, dispatch_func): function _df_dispatch_concat (line 54) | def _df_dispatch_concat(df, dispatch_func): function resample_close_mean (line 76) | def resample_close_mean(df, bins=None): function bcut_change_vc (line 161) | def bcut_change_vc(df, bins=None): function qcut_change_vc (line 196) | def qcut_change_vc(df, q=10): function date_week_mean (line 235) | def date_week_mean(df): function date_week_win (line 265) | def date_week_win(df): function wave_change_rate (line 300) | def wave_change_rate(df): function p_change_stats (line 322) | def p_change_stats(df): function date_week_wave (line 348) | def date_week_wave(df): FILE: abupy/UtilBu/ABuLazyUtil.py class LazyFunc (line 14) | class LazyFunc(object): method __init__ (line 17) | def __init__(self, func): method __get__ (line 32) | def __get__(self, instance, owner): method __set__ (line 43) | def __set__(self, instance, value): method __delete__ (line 47) | def __delete__(self, instance): class LazyClsFunc (line 52) | class LazyClsFunc(LazyFunc): method __get__ (line 59) | def __get__(self, instance, owner): function add_doc (line 64) | def add_doc(func, doc): function import_module (line 69) | def import_module(name): FILE: abupy/UtilBu/ABuMacUtil.py function socket_bind_recv (line 14) | def socket_bind_recv(socket_fn, cmd_handler): function socket_send_msg (line 34) | def socket_send_msg(socket_fn, msg): function show_msg (line 46) | def show_msg(title, msg): function fold_free_size_mb (line 57) | def fold_free_size_mb(folder): FILE: abupy/UtilBu/ABuMd5.py function _md5_obj (line 21) | def _md5_obj(): function md5_from_binary (line 27) | def md5_from_binary(binary): function md5_from_file (line 34) | def md5_from_file(fn, block_m=1): function crc32_from_file (line 66) | def crc32_from_file(fn, block_m=1): FILE: abupy/UtilBu/ABuOsUtil.py function show_msg (line 17) | def show_msg(title, msg, log=False): function socket_bind_recv (line 36) | def socket_bind_recv(socket_fn, cmd_handler): function socket_send_msg (line 51) | def socket_send_msg(socket_fn, msg): function fold_free_size_mb (line 66) | def fold_free_size_mb(folder): FILE: abupy/UtilBu/ABuPlatform.py function is_32bit (line 17) | def is_32bit(): function is_mac (line 22) | def is_mac(): function is_windows (line 27) | def is_windows(): function is_linux (line 32) | def is_linux(): function platform_name (line 37) | def platform_name(): function get_sys_info (line 42) | def get_sys_info(): function show_versions (line 79) | def show_versions(): FILE: abupy/UtilBu/ABuProgress.py function do_clear_output (line 29) | def do_clear_output(wait=False): class UIProgress (line 44) | class UIProgress(object): method __init__ (line 47) | def __init__(self, a_pid): method update (line 55) | def update(self, p_progress, p_progress_text): method close (line 60) | def close(self): function _socket_cmd_handle (line 75) | def _socket_cmd_handle(socket_cmd): function ui_progress_socket_work (line 107) | def ui_progress_socket_work(): function check_process_is_dead (line 129) | def check_process_is_dead(): function do_check_process_is_dead (line 137) | def do_check_process_is_dead(): function cache_socket_ready (line 157) | def cache_socket_ready(): class AbuMulPidProgress (line 176) | class AbuMulPidProgress(object): method __init__ (line 179) | def __init__(self, total, label, show_progress=True): method init_ui_progress (line 200) | def init_ui_progress(self): method update_ui_progress (line 221) | def update_ui_progress(self, ps, ps_text): method close_ui_progress (line 242) | def close_ui_progress(self): method __enter__ (line 259) | def __enter__(self): method show (line 285) | def show(self, epoch=None, clear=True): method __exit__ (line 308) | def __exit__(self, exc_type, exc_val, exc_tb): class AbuBlockProgress (line 326) | class AbuBlockProgress(object): method __init__ (line 329) | def __init__(self, label, interval=1, max_step=20): method __enter__ (line 340) | def __enter__(self): method __exit__ (line 359) | def __exit__(self, exc_type, exc_val, exc_tb): class AbuProgress (line 367) | class AbuProgress(object): method __init__ (line 372) | def __init__(self, total, a_progress, label=None): method __enter__ (line 388) | def __enter__(self): method __exit__ (line 392) | def __exit__(self, exc_type, exc_val, exc_tb): method progress (line 398) | def progress(self): method progress (line 403) | def progress(self, a_progress): method show (line 412) | def show(self, a_progress=None, ext='', p_format="{}:{}:{}%"): FILE: abupy/UtilBu/ABuRegUtil.py function regress_xy (line 28) | def regress_xy(x, y, mode=True, zoom=False, show=False): function regress_y (line 74) | def regress_y(y, mode=True, zoom=False, show=False): function calc_regress_deg (line 90) | def calc_regress_deg(y, show=True): function regress_xy_polynomial (line 107) | def regress_xy_polynomial(x, y, poly=1, zoom=False, show=False): function regress_y_polynomial (line 136) | def regress_y_polynomial(y, poly=1, zoom=False, show=False): function metrics_mae (line 149) | def metrics_mae(y, y_fit, show=True): function metrics_mse (line 164) | def metrics_mse(y, y_fit, show=True): function metrics_rmse (line 179) | def metrics_rmse(y, y_fit, show=True): function metrics_euclidean (line 194) | def metrics_euclidean(y, y_fit, show=True): function metrics_manhattan (line 208) | def metrics_manhattan(y, y_fit, show=True): function metrics_cosine (line 222) | def metrics_cosine(y, y_fit, show=True): function valid_poly (line 236) | def valid_poly(y, poly=1, zoom=False, show=True, metrics_func=metrics_rm... function least_valid_poly (line 287) | def least_valid_poly(y, zoom=False, show=True, metrics_func=metrics_rmse): function search_best_poly (line 309) | def search_best_poly(y, poly_min=1, poly_max=100, zoom=False, show=True,... FILE: abupy/UtilBu/ABuScalerUtil.py function scaler_log10 (line 17) | def scaler_log10(group): function scaler_mm (line 79) | def scaler_mm(group): function scaler_std (line 142) | def scaler_std(group): function scaler_one (line 208) | def scaler_one(group): function scaler_matrix (line 262) | def scaler_matrix(group, type_look='look_max', mean_how=False): function scaler_xy (line 383) | def scaler_xy(x, y, type_look='look_max', mean_how=True): FILE: abupy/UtilBu/ABuStatsUtil.py function _distance_matrix (line 39) | def _distance_matrix(distance_func, df, scale_end=True, to_similar=False): function _distance_xy (line 77) | def _distance_xy(distance_func, x, y): function euclidean_distance_xy (line 99) | def euclidean_distance_xy(x, y, to_similar=False): function euclidean_distance_matrix (line 123) | def euclidean_distance_matrix(df, scale_end=True, to_similar=False): function manhattan_distances_xy (line 175) | def manhattan_distances_xy(x, y, to_similar=False): function manhattan_distance_matrix (line 192) | def manhattan_distance_matrix(df, scale_end=True, to_similar=False): function cosine_distances_xy (line 246) | def cosine_distances_xy(x, y, to_similar=False): function cosine_distance_matrix (line 263) | def cosine_distance_matrix(df, scale_end=True, to_similar=False): function arr_to_pandas (line 321) | def arr_to_pandas(func): function arr_to_numpy (line 353) | def arr_to_numpy(func): function demean (line 381) | def demean(arr, rolling_window=0, show=False): function print_stats_sm (line 460) | def print_stats_sm(arr): function normality_stats (line 536) | def normality_stats(arr): function print_stats (line 594) | def print_stats(arr): function stats_dict (line 636) | def stats_dict(arr): class AbuMomentsTuple (line 661) | class AbuMomentsTuple(namedtuple('AbuMomentsTuple', method __repr__ (line 671) | def __repr__(self): function stats_namedtuple (line 679) | def stats_namedtuple(arr): function sigmoid (line 702) | def sigmoid(arr): FILE: abupy/UtilBu/ABuStrUtil.py function _create_random_tmp (line 21) | def _create_random_tmp(salt_count, seed): function create_random_with_num (line 35) | def create_random_with_num(salt_count): function create_random_with_alpha (line 45) | def create_random_with_alpha(salt_count): function create_random_with_num_low (line 56) | def create_random_with_num_low(salt_count): function to_unicode (line 67) | def to_unicode(text, encoding=None, errors='strict'): function to_bytes (line 87) | def to_bytes(text, encoding=None, errors='strict'): function to_native_str (line 106) | def to_native_str(text, encoding=None, errors='strict'): function str_is_num10 (line 119) | def str_is_num10(a_str): function str_is_num16 (line 129) | def str_is_num16(a_str): function str_is_cn (line 139) | def str_is_cn(a_str): function digit_str (line 154) | def digit_str(item): function var_name (line 175) | def var_name(var, glb): FILE: abupy/UtilBu/ABuWinUtil.py function show_msg (line 33) | def show_msg(title, msg): function socket_bind_recv (line 42) | def socket_bind_recv(socket_fn, cmd_handler): function socket_send_msg (line 64) | def socket_send_msg(socket_fn, msg): function fold_free_size_mb (line 79) | def fold_free_size_mb(folder): function drive_free_space (line 88) | def drive_free_space(drive): function max_drive (line 98) | def max_drive(): class PyNOTIFYICONDATA (line 112) | class PyNOTIFYICONDATA: method pack (line 147) | def pack(self): method __setattr__ (line 163) | def __setattr__(self, name, value): class MainWindow (line 171) | class MainWindow: method __init__ (line 172) | def __init__(self, title, msg): method show_balloon (line 202) | def show_balloon(self, title, msg): method on_destroy (line 217) | def on_destroy(self, hwnd, msg, wparam, lparam): FILE: abupy/WidgetBu/ABuWGBFBase.py class BFSubscriberMixin (line 19) | class BFSubscriberMixin(object): method subscriber_ui (line 25) | def subscriber_ui(self, labels): method notify_subscriber (line 46) | def notify_subscriber(self): method add_to_buy_factor (line 50) | def add_to_buy_factor(self, select, factor_unique_callable, factor_key... class BuyFactorWGManager (line 95) | class BuyFactorWGManager(WidgetFactorManagerBase): method _init_widget (line 98) | def _init_widget(self): class WidgetFactorBuyBase (line 125) | class WidgetFactorBuyBase(WidgetFactorBase): method __init__ (line 128) | def __init__(self, wg_manager): method _init_widget (line 147) | def _init_widget(self): method make_buy_factor_unique (line 152) | def make_buy_factor_unique(self): method add_buy_factor (line 162) | def add_buy_factor(self, bt): method add_buy_factor_grid (line 168) | def add_buy_factor_grid(self, bt): FILE: abupy/WidgetBu/ABuWGBRun.py class WidgetRunLoopBack (line 39) | class WidgetRunLoopBack(WidgetBase): method __init__ (line 43) | def __init__(self): method _metrics_out_put (line 75) | def _metrics_out_put(self, metrics, abu_result_tuple): method run_loop_back (line 111) | def run_loop_back(self, bt): FILE: abupy/WidgetBu/ABuWGBRunBase.py class WidgetEnvSetMixin (line 20) | class WidgetEnvSetMixin(object): method init_env_set_ui (line 32) | def init_env_set_ui(self): method on_data_mode_change (line 110) | def on_data_mode_change(self, change): method on_data_store_change (line 132) | def on_data_store_change(self, change): method on_fetch_mode_change (line 138) | def on_fetch_mode_change(self, change): method on_date_source_change (line 144) | def on_date_source_change(self, change): class WidgetTimeModeMixin (line 151) | class WidgetTimeModeMixin(object): method init_time_mode_ui (line 161) | def init_time_mode_ui(self): method on_time_mode_change (line 201) | def on_time_mode_change(self, change): method time_mode_str (line 212) | def time_mode_str(self): class WidgetMetricsSet (line 217) | class WidgetMetricsSet(object): method init_metrics_ui (line 237) | def init_metrics_ui(self): class WidgetRunTT (line 311) | class WidgetRunTT(WidgetBase, WidgetEnvSetMixin, WidgetTimeModeMixin, Wi... method __init__ (line 314) | def __init__(self): method time_mode_str (line 331) | def time_mode_str(self): FILE: abupy/WidgetBu/ABuWGBSymbol.py class WidgetSymbolChoice (line 22) | class WidgetSymbolChoice(WidgetBase): method __init__ (line 26) | def __init__(self): method on_market_change (line 94) | def on_market_change(self, change): method on_already_select (line 98) | def on_already_select(self, select): method choice_symbols_select (line 105) | def choice_symbols_select(self, select): FILE: abupy/WidgetBu/ABuWGBase.py function accordion_shut (line 28) | def accordion_shut(accordion): class WidgetBase (line 40) | class WidgetBase(object): method __call__ (line 43) | def __call__(self): method display (line 46) | def display(self): class WidgetFactorBase (line 51) | class WidgetFactorBase(six.with_metaclass(ABCMeta, WidgetBase)): method __init__ (line 54) | def __init__(self, wg_manager): method _init_widget (line 62) | def _init_widget(self): method delegate_class (line 67) | def delegate_class(self): class WidgetFactorManagerBase (line 72) | class WidgetFactorManagerBase(six.with_metaclass(ABCMeta, WidgetBase)): method __init__ (line 75) | def __init__(self, show_add_buy=True, add_button_style='default'): method _sub_children (line 104) | def _sub_children(self, children, n_split): method register_subscriber (line 116) | def register_subscriber(self, observe): method unregister_subscriber (line 120) | def unregister_subscriber(self, observe): method notify_subscriber (line 124) | def notify_subscriber(self): method _init_widget (line 131) | def _init_widget(self): method refresh_factor (line 135) | def refresh_factor(self): method remove_factor (line 140) | def remove_factor(self, select): method add_factor (line 148) | def add_factor(self, factor_dict, factor_desc_key, only_one=False): class WidgetSearchBox (line 171) | class WidgetSearchBox(WidgetBase): method __init__ (line 175) | def __init__(self, search_result_callable): method _do_search (line 204) | def _do_search(self, bt): method _search_input_change (line 211) | def _search_input_change(self, change): function permission_denied (line 223) | def permission_denied(*arg, **kwargs): FILE: abupy/WidgetBu/ABuWGBuyFactor.py class BuyDMWidget (line 21) | class BuyDMWidget(WidgetFactorBuyBase): method _init_widget (line 24) | def _init_widget(self): method make_buy_factor_unique (line 92) | def make_buy_factor_unique(self): method delegate_class (line 102) | def delegate_class(self): class BuySDWidget (line 107) | class BuySDWidget(WidgetFactorBuyBase): method _init_widget (line 110) | def _init_widget(self): method make_buy_factor_unique (line 153) | def make_buy_factor_unique(self): method delegate_class (line 159) | def delegate_class(self): class BuyWDWidget (line 164) | class BuyWDWidget(WidgetFactorBuyBase): method _init_widget (line 167) | def _init_widget(self): method make_buy_factor_unique (line 228) | def make_buy_factor_unique(self): method delegate_class (line 236) | def delegate_class(self): class BuyXDWidget (line 241) | class BuyXDWidget(WidgetFactorBuyBase): method _init_widget (line 244) | def _init_widget(self): method make_buy_factor_unique (line 270) | def make_buy_factor_unique(self): method delegate_class (line 276) | def delegate_class(self): class BuyWMWidget (line 281) | class BuyWMWidget(WidgetFactorBuyBase): method _init_widget (line 284) | def _init_widget(self): method make_buy_factor_unique (line 308) | def make_buy_factor_unique(self): method delegate_class (line 314) | def delegate_class(self): class BuyDUWidget (line 319) | class BuyDUWidget(WidgetFactorBuyBase): method _init_widget (line 322) | def _init_widget(self): method make_buy_factor_unique (line 383) | def make_buy_factor_unique(self): method delegate_class (line 391) | def delegate_class(self): FILE: abupy/WidgetBu/ABuWGCrossVal.py class WidgetCrossVal (line 24) | class WidgetCrossVal(WidgetBase): method __init__ (line 28) | def __init__(self): method run_cross_val (line 80) | def run_cross_val(self, bt): FILE: abupy/WidgetBu/ABuWGDATool.py class WidgetDATool (line 19) | class WidgetDATool(WidgetToolBase): method __init__ (line 22) | def __init__(self, tool_set): method qcut_change_vc (line 65) | def qcut_change_vc(self, kl_dict, bt): method bcut_change_vc (line 70) | def bcut_change_vc(self, kl_dict, bt): method date_week_win (line 75) | def date_week_win(self, kl_dict, bt): method wave_change_rate (line 80) | def wave_change_rate(self, kl_dict, bt): method date_week_wave (line 85) | def date_week_wave(self, kl_dict, bt): method p_change_stats (line 90) | def p_change_stats(self, kl_dict, bt): FILE: abupy/WidgetBu/ABuWGGridSearch.py class WidgetGridSearch (line 25) | class WidgetGridSearch(WidgetBase): method __init__ (line 29) | def __init__(self): method on_data_mode_change (line 59) | def on_data_mode_change(self, change): method run_grid_search (line 68) | def run_grid_search(self, bt): FILE: abupy/WidgetBu/ABuWGPSBase.py class PickStockWGManager (line 19) | class PickStockWGManager(WidgetFactorManagerBase): method _init_widget (line 22) | def _init_widget(self): method seed_choice_symbol_update (line 46) | def seed_choice_symbol_update(self, seed_choice_symbol): method register (line 71) | def register(self, buy_factor_manger): class WidgetPickStockBase (line 78) | class WidgetPickStockBase(WidgetFactorBase, BFSubscriberMixin): method _pick_stock_base_ui (line 81) | def _pick_stock_base_ui(self): method __init__ (line 107) | def __init__(self, wg_manager): method _init_widget (line 126) | def _init_widget(self): method make_pick_stock_unique (line 131) | def make_pick_stock_unique(self): method add_pick_stock (line 141) | def add_pick_stock(self, bt): method add_pick_stock_to_buy_factor (line 147) | def add_pick_stock_to_buy_factor(self, select): FILE: abupy/WidgetBu/ABuWGPickStock.py class PSPriceWidget (line 20) | class PSPriceWidget(WidgetPickStockBase): method _init_widget (line 23) | def _init_widget(self): method make_pick_stock_unique (line 76) | def make_pick_stock_unique(self): method delegate_class (line 91) | def delegate_class(self): class PSRegressAngWidget (line 96) | class PSRegressAngWidget(WidgetPickStockBase): method _init_widget (line 99) | def _init_widget(self): method make_pick_stock_unique (line 153) | def make_pick_stock_unique(self): method delegate_class (line 167) | def delegate_class(self): class PSShiftDistanceWidget (line 172) | class PSShiftDistanceWidget(WidgetPickStockBase): method _init_widget (line 175) | def _init_widget(self): method make_pick_stock_unique (line 225) | def make_pick_stock_unique(self): method delegate_class (line 238) | def delegate_class(self): class PSNTopWidget (line 243) | class PSNTopWidget(WidgetPickStockBase): method _init_widget (line 246) | def _init_widget(self): method seed_choice_symbol_key (line 281) | def seed_choice_symbol_key(self): method make_pick_stock_unique (line 285) | def make_pick_stock_unique(self): method delegate_class (line 297) | def delegate_class(self): FILE: abupy/WidgetBu/ABuWGPosBase.py class PosWGManager (line 19) | class PosWGManager(WidgetFactorManagerBase): method __init__ (line 22) | def __init__(self): method _init_widget (line 30) | def _init_widget(self): method register (line 52) | def register(self, buy_factor_manger): class WidgetPositionBase (line 59) | class WidgetPositionBase(WidgetFactorBase, BFSubscriberMixin): method __init__ (line 62) | def __init__(self, wg_manager): method _init_widget (line 80) | def _init_widget(self): method make_position_unique (line 85) | def make_position_unique(self): method add_position (line 95) | def add_position(self, bt): method add_position_to_buy_factor (line 101) | def add_position_to_buy_factor(self, select): FILE: abupy/WidgetBu/ABuWGQuantTool.py class WidgetQuantTool (line 20) | class WidgetQuantTool(WidgetBase): method __init__ (line 23) | def __init__(self): FILE: abupy/WidgetBu/ABuWGSFBase.py class SellFactorWGManager (line 19) | class SellFactorWGManager(WidgetFactorManagerBase): method _init_widget (line 22) | def _init_widget(self): method register (line 50) | def register(self, buy_factor_manger): class WidgetFactorSellBase (line 57) | class WidgetFactorSellBase(WidgetFactorBase, BFSubscriberMixin): method __init__ (line 60) | def __init__(self, wg_manager): method _init_widget (line 93) | def _init_widget(self): method make_sell_factor_unique (line 98) | def make_sell_factor_unique(self): method add_sell_factor (line 108) | def add_sell_factor(self, bt): method add_sell_factor_grid (line 115) | def add_sell_factor_grid(self, bt): method add_sell_factor_to_buy_factor (line 123) | def add_sell_factor_to_buy_factor(self, select): FILE: abupy/WidgetBu/ABuWGSMTool.py class WidgetSMTool (line 29) | class WidgetSMTool(WidgetToolBase): method __init__ (line 32) | def __init__(self, tool_set): method _init_widget_list_action (line 55) | def _init_widget_list_action(self, callback_analyse, analyse_name, n_t... method init_coint_corr_ui (line 70) | def init_coint_corr_ui(self): method init_relative_corr_ui (line 97) | def init_relative_corr_ui(self): method init_market_corr_ui (line 126) | def init_market_corr_ui(self): method init_corr_ui (line 168) | def init_corr_ui(self): method init_distances_ui (line 184) | def init_distances_ui(self): method corr_analyse (line 218) | def corr_analyse(self, cg_df, bt): method distances_analyse (line 224) | def distances_analyse(self, cg_df, bt): method coint_corr_market_analyse (line 238) | def coint_corr_market_analyse(self, bt): method corr_relative_market_analyse (line 253) | def corr_relative_market_analyse(self, bt): method corr_market_analyse (line 267) | def corr_market_analyse(self, bt): FILE: abupy/WidgetBu/ABuWGSellFactor.py class SellDMWidget (line 22) | class SellDMWidget(WidgetFactorSellBase): method _init_widget (line 25) | def _init_widget(self): method make_sell_factor_unique (line 69) | def make_sell_factor_unique(self): method delegate_class (line 75) | def delegate_class(self): class SellAtrNStopWidget (line 80) | class SellAtrNStopWidget(WidgetFactorSellBase): method _init_widget (line 83) | def _init_widget(self): method make_sell_factor_unique (line 127) | def make_sell_factor_unique(self): method delegate_class (line 135) | def delegate_class(self): class SellCloseAtrNWidget (line 140) | class SellCloseAtrNWidget(WidgetFactorSellBase): method _init_widget (line 143) | def _init_widget(self): method make_sell_factor_unique (line 172) | def make_sell_factor_unique(self): method delegate_class (line 179) | def delegate_class(self): class SellPreAtrNWidget (line 184) | class SellPreAtrNWidget(WidgetFactorSellBase): method _init_widget (line 187) | def _init_widget(self): method make_sell_factor_unique (line 215) | def make_sell_factor_unique(self): method delegate_class (line 222) | def delegate_class(self): class SellXDWidget (line 227) | class SellXDWidget(WidgetFactorSellBase): method _init_widget (line 230) | def _init_widget(self): method make_sell_factor_unique (line 256) | def make_sell_factor_unique(self): method delegate_class (line 262) | def delegate_class(self): class SellNDWidget (line 267) | class SellNDWidget(WidgetFactorSellBase): method _init_widget (line 270) | def _init_widget(self): method make_sell_factor_unique (line 301) | def make_sell_factor_unique(self): method delegate_class (line 308) | def delegate_class(self): FILE: abupy/WidgetBu/ABuWGStockInfo.py class WidgetSearchStockInfo (line 25) | class WidgetSearchStockInfo(WidgetBase): method __init__ (line 26) | def __init__(self): method on_search_result_click (line 30) | def on_search_result_click(self, select): class WidgetStockInfo (line 46) | class WidgetStockInfo(WidgetBase): method __init__ (line 49) | def __init__(self, symbol_code): method other_industries_symbol (line 62) | def other_industries_symbol(self, stock_info): method _sub_split (line 101) | def _sub_split(self, n_buttons, n_split): method _combine_stock_name (line 114) | def _combine_stock_name(self, stock_info, only_name=False): method stock_base_info (line 126) | def stock_base_info(self, symbol_code): method make_sub_tab_widget (line 196) | def make_sub_tab_widget(self, stock_info, sub_dict): FILE: abupy/WidgetBu/ABuWGTLTool.py class WidgetTLTool (line 26) | class WidgetTLTool(WidgetToolBase): method _init_tip_label_with_step_x (line 30) | def _init_tip_label_with_step_x(self, callback_analyse, analyse_name, ... method init_rs_ui (line 66) | def init_rs_ui(self): method init_jump_ui (line 88) | def init_jump_ui(self): method init_shift_distance_ui (line 137) | def init_shift_distance_ui(self): method init_regress_ui (line 155) | def init_regress_ui(self): method init_golden_line_ui (line 185) | def init_golden_line_ui(self): method init_skeleton_ui (line 217) | def init_skeleton_ui(self): method init_pair_speed_ui (line 235) | def init_pair_speed_ui(self): method __init__ (line 265) | def __init__(self, tool_set): method _pair_speed_analyse (line 289) | def _pair_speed_analyse(self, bt): method _jump_line_analyse (line 307) | def _jump_line_analyse(self, kl, kl_tl, bt): method _rs_line_analyse (line 322) | def _rs_line_analyse(self, kl, kl_tl, bt): method _shift_distance_analyse (line 335) | def _shift_distance_analyse(self, kl, kl_tl, bt): method _regress_analyse (line 341) | def _regress_analyse(self, kl, kl_tl, bt): method _golden_line_analyse (line 351) | def _golden_line_analyse(self, kl, kl_tl, bt): method _skeleton_analyse (line 361) | def _skeleton_analyse(self, kl, kl_tl, bt): FILE: abupy/WidgetBu/ABuWGToolBase.py class WidgetToolSet (line 28) | class WidgetToolSet(WidgetBase, WidgetEnvSetMixin, WidgetTimeModeMixin): method __init__ (line 31) | def __init__(self): method time_mode_str (line 43) | def time_mode_str(self): function single_fetch_symbol_analyse (line 48) | def single_fetch_symbol_analyse(func): function multi_fetch_symbol_analyse (line 67) | def multi_fetch_symbol_analyse(func): function multi_fetch_symbol_df_analyse (line 84) | def multi_fetch_symbol_df_analyse(col_key): class WidgetToolBase (line 110) | class WidgetToolBase(WidgetBase): method __init__ (line 113) | def __init__(self, tool_set): method _sub_children (line 132) | def _sub_children(self, children, n_split): method data_mode_recover (line 145) | def data_mode_recover(self, is_example_mode): method map_tip_target_label (line 163) | def map_tip_target_label(self, n_target): method _start_end_n_fold (line 176) | def _start_end_n_fold(self): method info_change_set_mode (line 192) | def info_change_set_mode(self, symbol): method _fetch_single_kl (line 208) | def _fetch_single_kl(self, symbol): method _fetch_multi_kl (line 218) | def _fetch_multi_kl(self, choice_symbol): method _fetch_multi_kl_col (line 231) | def _fetch_multi_kl_col(self, choice_symbol, col_key, na_val=0): method _choice_symbol_single (line 251) | def _choice_symbol_single(self, default=None): method _choice_symbol_pair (line 265) | def _choice_symbol_pair(self, default=None): method _choice_symbol_multi (line 282) | def _choice_symbol_multi(self): FILE: abupy/WidgetBu/ABuWGUmp.py class WidgetUmp (line 41) | class WidgetUmp(WidgetBase): method __init__ (line 45) | def __init__(self): method load_abu_result (line 62) | def load_abu_result(self): method load_train_ump (line 72) | def load_train_ump(self, ump_select_ui): method run_before (line 84) | def run_before(self): method run_end (line 119) | def run_end(self, abu_result_tuple, choice_symbols, buy_desc_list, sel... method _init_manager_ui (line 139) | def _init_manager_ui(self): method _init_predict_ui (line 173) | def _init_predict_ui(self): method remove_ump_select (line 201) | def remove_ump_select(self, select): method on_ump_select (line 206) | def on_ump_select(self, select): method _init_train_ui (line 211) | def _init_train_ui(self): method _init_feature_ui (line 241) | def _init_feature_ui(self): method _parse_custom (line 263) | def _parse_custom(self): method _do_delete_ump (line 284) | def _do_delete_ump(self, bt): method _do_delete_abu_result (line 312) | def _do_delete_abu_result(self, bt): method _do_train (line 320) | def _do_train(self, bt): FILE: abupy/WidgetBu/ABuWGUpdate.py class WidgetUpdate (line 24) | class WidgetUpdate(WidgetBase, WidgetTimeModeMixin): method __init__ (line 27) | def __init__(self): method run_yun_down (line 109) | def run_yun_down(self, bt): method run_kl_update (line 114) | def run_kl_update(self, bt): method time_mode_str (line 136) | def time_mode_str(self): method on_date_source_change (line 140) | def on_date_source_change(self, change): method on_market_change (line 145) | def on_market_change(self, change): FILE: abupy/WidgetBu/ABuWGVerifyTool.py class WidgetVerifyTool (line 19) | class WidgetVerifyTool(WidgetBase): method __init__ (line 22) | def __init__(self):