def train(method='svm', savePath=None, choice='basic'):
if not savePath:
savePath = os.path.abspath('./support/clf/' + method + '.pk')
else:
savePath = os.path.abspath(savePath)
trainer = trainerFactory(method, choice, savePath)
if not trainer:
print('No such method to train for now')
return
trainer.train()
trainer.save()
print('Train Process Complete')
评论列表
文章目录