本文整理匯總了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 ###')