当前位置: 首页>>代码示例>>Python>>正文


Python Feature.__init__方法代码示例

本文整理汇总了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)
开发者ID:StevenLOL,项目名称:pimpy,代码行数:10,代码来源:histogram.py

示例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=[]
开发者ID:ecotox,项目名称:f3c,代码行数:13,代码来源:circos_objects.py

示例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=[]
开发者ID:ecotox,项目名称:pacfm,代码行数:14,代码来源:coordinate.py

示例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)
开发者ID:amerberg,项目名称:PDFMetadataExtractor,代码行数:15,代码来源:features.py

示例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
开发者ID:MattAndersonPE,项目名称:anuga_core,代码行数:15,代码来源:height_quantity.py

示例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)
开发者ID:StevenLOL,项目名称:pimpy,代码行数:7,代码来源:sift.py

示例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')
开发者ID:StevenLOL,项目名称:pimpy,代码行数:5,代码来源:sift.py

示例8: __init__

# 需要导入模块: from feature import Feature [as 别名]
# 或者: from feature.Feature import __init__ [as 别名]
 def __init__(self, column):
     Feature.__init__(self)
     self.column = column
开发者ID:amjoker,项目名称:adaboost,代码行数:5,代码来源:simple.py

示例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)
开发者ID:StevenLOL,项目名称:pimpy,代码行数:7,代码来源:gist.py


注:本文中的feature.Feature.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。