本文整理汇总了Python中algotrader.technical.pipeline.PipeLine.get_name方法的典型用法代码示例。如果您正苦于以下问题:Python PipeLine.get_name方法的具体用法?Python PipeLine.get_name怎么用?Python PipeLine.get_name使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类algotrader.technical.pipeline.PipeLine
的用法示例。
在下文中一共展示了PipeLine.get_name方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from algotrader.technical.pipeline import PipeLine [as 别名]
# 或者: from algotrader.technical.pipeline.PipeLine import get_name [as 别名]
def __init__(self, inputs, input_key="close", desc="Cross Sessional SignPower"):
super(SignPower, self).__init__(
inputs=inputs,
np_func=lambda x: np_sign_to_value(x) * np.power(x, e),
name=PipeLine.get_name(SignPower.__name__, inputs, input_key),
input_key=input_key,
length=1,
desc=desc,
)
示例2: get_name
# 需要导入模块: from algotrader.technical.pipeline import PipeLine [as 别名]
# 或者: from algotrader.technical.pipeline.PipeLine import get_name [as 别名]
def get_name(indicator_name, input_lhs, input_rhs, input_key, *args):
return PipeLine.get_name(indicator_name,
inputs=[input_lhs, input_rhs],
input_key=input_key, *args)
示例3: __init__
# 需要导入模块: from algotrader.technical.pipeline import PipeLine [as 别名]
# 或者: from algotrader.technical.pipeline.PipeLine import get_name [as 别名]
def __init__(self, input_lhs, input_rhs, input_key='close', desc="Pairwise Greater"):
super(Greater, self).__init__(input_lhs, input_rhs, func=lambda x, y: x > y,
name=PipeLine.get_name(Greater.__name__, [input_lhs, input_rhs], input_key),
input_key=input_key, desc=desc)
示例4: __init__
# 需要导入模块: from algotrader.technical.pipeline import PipeLine [as 别名]
# 或者: from algotrader.technical.pipeline.PipeLine import get_name [as 别名]
def __init__(self, inputs, ascending=True, input_key='close', desc="Rank"):
self.ascending = ascending
super(Rank, self).__init__(PipeLine.get_name(Rank.__name__, inputs, input_key),
inputs, input_key, length=1, desc=desc)
示例5: __init__
# 需要导入模块: from algotrader.technical.pipeline import PipeLine [as 别名]
# 或者: from algotrader.technical.pipeline.PipeLine import get_name [as 别名]
def __init__(self, inputs, input_key='close', desc="Cross Sessional Sign"):
super(Sign, self).__init__(inputs=inputs, np_func=lambda x: np_sign_to_value(x),
name=PipeLine.get_name(Sign.__name__, inputs, input_key),
input_key=input_key, length=1, desc=desc)
示例6: __init__
# 需要导入模块: from algotrader.technical.pipeline import PipeLine [as 别名]
# 或者: from algotrader.technical.pipeline.PipeLine import get_name [as 别名]
def __init__(self, inputs, input_key='close', desc="Bundle and Sync DataSeries to Vector"):
super(MakeVector, self).__init__(PipeLine.get_name(MakeVector.__name__, inputs, input_key),
inputs, input_key, length=1, desc=desc)
super(MakeVector, self).update_all()
示例7: __init__
# 需要导入模块: from algotrader.technical.pipeline import PipeLine [as 别名]
# 或者: from algotrader.technical.pipeline.PipeLine import get_name [as 别名]
def __init__(self, inputs, input_key='close', length=30, desc="Correlation"):
super(Corr, self).__init__(PipeLine.get_name(Corr.__name__, input),
input, input_key, length, desc)
super(Corr, self).update_all()