本文整理汇总了Python中feature.Feature.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Feature.__init__方法的具体用法?Python Feature.__init__怎么用?Python Feature.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类feature.Feature
的用法示例。
在下文中一共展示了Feature.__init__方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from feature import Feature [as 别名]
# 或者: from feature.Feature import __init__ [as 别名]
def __init__(self,**kwargs):
u"""
:param framefilter: selected framenumber where we will
compute histogram
:type: array
"""
Feature.__init__(self,**kwargs)
示例2: __init__
# 需要导入模块: from feature import Feature [as 别名]
# 或者: from feature.Feature import __init__ [as 别名]
def __init__(self, biodb, step_size=5, levels=[], name_hier=[]):
Feature.__init__(self, biodb= biodb)
self.step_size= step_size
if levels == []:
levels=[None]*3
self.levels= levels
if name_hier == []:
name_hier= [""]*3
self.name_hier= name_hier
self.links=[]
示例3: __init__
# 需要导入模块: from feature import Feature [as 别名]
# 或者: from feature.Feature import __init__ [as 别名]
def __init__(self, biodb, step_size=5, levels=[], name_hier=[], parent_hier=[]):
Feature.__init__(self, biodb= biodb)
self.step_size= step_size
if parent_hier == []:
parent_hier=[None]*3
self.parent_hier= parent_hier
if levels == []:
levels=[None]*3
self.levels= levels
self.links=[]
示例4: __init__
# 需要导入模块: from feature import Feature [as 别名]
# 或者: from feature.Feature import __init__ [as 别名]
def __init__(self, field, word_file):
""" Get the word list from the specified file.
:param field: The field to which this feature belongs.
:param word_file: The path to an alphabetized word list, one per line.
:return: None
"""
word_file = field.settings.resolve_path(word_file)
with open(word_file, 'r') as f:
words = f.readlines()
words = [w.strip() for w in words if w.islower()]
self._dict_words = words
Feature.__init__(self, field)
示例5: __init__
# 需要导入模块: from feature import Feature [as 别名]
# 或者: from feature.Feature import __init__ [as 别名]
def __init__(self, quantityName, zScale=1.0,
offset=0.0, **kwargs):
'''
Parameters:
quantityName: string - name of a quantity
zScale: float - multiply point z-values by this
offset: float - add this to point z-values
'''
Feature.__init__(self, **kwargs)
self.quantityName = quantityName
self.zScale = zScale
self.offset = offset
示例6: __init__
# 需要导入模块: from feature import Feature [as 别名]
# 或者: from feature.Feature import __init__ [as 别名]
def __init__(self,**kwargs):
u"""
compute video signature based on dct descriptor
"""
Feature.__init__(self,**kwargs)
示例7: __init__
# 需要导入模块: from feature import Feature [as 别名]
# 或者: from feature.Feature import __init__ [as 别名]
def __init__(self,**kwargs):
Feature.__init__(self,**kwargs)
self.log = logging.getLogger('pimpy.image.features.sift')
示例8: __init__
# 需要导入模块: from feature import Feature [as 别名]
# 或者: from feature.Feature import __init__ [as 别名]
def __init__(self, column):
Feature.__init__(self)
self.column = column
示例9: __init__
# 需要导入模块: from feature import Feature [as 别名]
# 或者: from feature.Feature import __init__ [as 别名]
def __init__(self,**kwargs):
u"""
compute video gist for each frame
"""
Feature.__init__(self,**kwargs)