代码拉取完成,页面将自动刷新
from argparse import ArgumentParser
from chemprop.parsing import update_checkpoint_args
from chemprop.sklearn_predict import predict_sklearn
if __name__ == '__main__':
parser = ArgumentParser()
parser.add_argument('--test_path', type=str, required=True,
help='Path to CSV file containing testing data for which predictions will be made')
parser.add_argument('--preds_path', type=str, required=True,
help='Path to CSV file where predictions will be saved')
parser.add_argument('--dataset_type', type=str, required=True, choices=['classification', 'regression'],
help='Type of dataset')
parser.add_argument('--model_type', type=str, choices=['random_forest', 'svm'], required=True,
help='scikit-learn model to use')
parser.add_argument('--checkpoint_path', type=str, default=None,
help='Path to model checkpoint (.pkl file)')
parser.add_argument('--checkpoint_dir', type=str, default=None,
help='Path to directory containing model checkpoints (.pkl file)')
parser.add_argument('--radius', type=int, default=2,
help='Morgan fingerprint radius')
parser.add_argument('--num_bits', type=int, default=2048,
help='Number of bits in morgan fingerprint')
parser.add_argument('--num_tasks', type=int, required=True,
help='Number of tasks the trained model makes predictions for')
args = parser.parse_args()
update_checkpoint_args(args, ext='pkl')
predict_sklearn(args)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。