本文整理汇总了Python中rdkit.RDLogger.CRITICAL属性的典型用法代码示例。如果您正苦于以下问题:Python RDLogger.CRITICAL属性的具体用法?Python RDLogger.CRITICAL怎么用?Python RDLogger.CRITICAL使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类rdkit.RDLogger
的用法示例。
在下文中一共展示了RDLogger.CRITICAL属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: configure_worker
# 需要导入模块: from rdkit import RDLogger [as 别名]
# 或者: from rdkit.RDLogger import CRITICAL [as 别名]
def configure_worker(options={}, **kwargs):
if 'queues' not in options:
return
if CORRESPONDING_QUEUE not in options['queues'].split(','):
return
print('### STARTING UP A NEAREST NEIGHBOR CONTEXT RECOMMENDER WORKER ###')
global recommender
# Setting logging low
from rdkit import RDLogger
lg = RDLogger.logger()
lg.setLevel(RDLogger.CRITICAL)
try:
recommender = NNContextRecommender()
recommender.load_nn_model(model_path=gc.CONTEXT_REC[
'model_path'], info_path=gc.CONTEXT_REC['info_path'])
except Exception as e:
print(e)
print('Loaded context recommendation model')
print('### NEAREST NEIGHBOR CONTEXT RECOMMENDER STARTED UP ###')
示例2: configure_worker
# 需要导入模块: from rdkit import RDLogger [as 别名]
# 或者: from rdkit.RDLogger import CRITICAL [as 别名]
def configure_worker(options={}, **kwargs):
if 'queues' not in options:
return
if CORRESPONDING_QUEUE not in options['queues'].split(','):
return
print('### STARTING UP A NEURAL NETWORK CONTEXT RECOMMENDER WORKER ###')
global recommender
# Setting logging low
from rdkit import RDLogger
lg = RDLogger.logger()
lg.setLevel(RDLogger.CRITICAL)
try:
recommender = NeuralNetContextRecommender()
recommender.load()
except Exception as e:
print(e)
print('Loaded context recommendation model')
print('### NEURAL NETWORK CONTEXT RECOMMENDER STARTED UP ###')