本文整理汇总了Python中features.base.Feature.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Feature.__init__方法的具体用法?Python Feature.__init__怎么用?Python Feature.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类features.base.Feature
的用法示例。
在下文中一共展示了Feature.__init__方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from features.base import Feature [as 别名]
# 或者: from features.base.Feature import __init__ [as 别名]
def __init__(self, text_to_speech, speech_to_text):
Feature.__init__(self)
Speaking.__init__(self, text_to_speech)
self.speech_to_text = speech_to_text
self.neural_network = None
self.background_image = np.array([])
self.iris_slide = np.array([])
示例2: __init__
# 需要导入模块: from features.base import Feature [as 别名]
# 或者: from features.base.Feature import __init__ [as 别名]
def __init__(self, text_to_speech):
Feature.__init__(self)
Speaking.__init__(self, text_to_speech)
self.is_pyramid = False
self.is_cube = False
self.rotation = 0
self.background_image = np.array([])
self.speech_thread = None
示例3: __init__
# 需要导入模块: from features.base import Feature [as 别名]
# 或者: from features.base.Feature import __init__ [as 别名]
def __init__(self, text_to_speech):
Feature.__init__(self)
Speaking.__init__(self, text_to_speech)
self.background_image = np.array([])
self.slides = []
self.blurbs = []
self.current_item = 0
self.current_slide = np.array([])
self.blurb_thread = None
self._get_slides_and_blurbs()
示例4: __init__
# 需要导入模块: from features.base import Feature [as 别名]
# 或者: from features.base.Feature import __init__ [as 别名]
def __init__(self, text_to_speech, speech_to_text):
Feature.__init__(self)
# setup AV Table
self.av_table = GameTable(13, 2)
if(self.av_table.loadParameters() == False):
self.av_table.initialize(0.)
# setup a Q-Learning agent
learner = Q(0.5, 0.0)
learner._setExplorer(EpsilonGreedyExplorer(0.0))
self.agent = LearningAgent(self.av_table, learner)
# setup game interaction
self.game_interaction = GameInteraction(text_to_speech, speech_to_text)
# setup environment
environment = GameEnvironment(self.game_interaction)
# setup task
task = GameTask(environment, self.game_interaction)
# setup experiment
self.experiment = Experiment(task, self.agent)
示例5: __init__
# 需要导入模块: from features.base import Feature [as 别名]
# 或者: from features.base.Feature import __init__ [as 别名]
def __init__(self, text_to_speech):
Feature.__init__(self)
Speaking.__init__(self, text_to_speech)
示例6: __init__
# 需要导入模块: from features.base import Feature [as 别名]
# 或者: from features.base.Feature import __init__ [as 别名]
def __init__(self, speech_to_text):
Feature.__init__(self)
self.is_speaking = False
self.speech_to_text = speech_to_text
self.phrases = self._load_config()
pygame.mixer.init()
示例7: __init__
# 需要导入模块: from features.base import Feature [as 别名]
# 或者: from features.base.Feature import __init__ [as 别名]
def __init__(self, text_to_speech, speech_to_text):
Feature.__init__(self)
Speaking.__init__(self, text_to_speech)
self.speech_to_text = speech_to_text
self.is_cloudy = False
示例8: __init__
# 需要导入模块: from features.base import Feature [as 别名]
# 或者: from features.base.Feature import __init__ [as 别名]
def __init__(self, text_to_speech, speech_to_text):
Feature.__init__(self)
Speaking.__init__(self, text_to_speech)
self.speech_to_text = speech_to_text
self.recognizer = sr.Recognizer()
pygame.mixer.init(frequency=8000)
示例9: __init__
# 需要导入模块: from features.base import Feature [as 别名]
# 或者: from features.base.Feature import __init__ [as 别名]
def __init__(self):
Feature.__init__(self)
self.background_image = np.array([])
self.video_capture = cv2.VideoCapture()
示例10: __init__
# 需要导入模块: from features.base import Feature [as 别名]
# 或者: from features.base.Feature import __init__ [as 别名]
def __init__(self, text_to_speech):
Feature.__init__(self)
Speaking.__init__(self, text_to_speech)
self.neural_network = None