def process_train_task(task):
(dataset_path, models_dir, config) = task
config_str = serialize_config(config)
model_path = os.path.join(models_dir, 'model.{}.pkz'.format(config_str))
env = os.environ.copy()
env['TREECAT_PROFILE'] = '1'
env['TREECAT_THREADS'] = '1'
check_call_env([
sys.executable,
'-O',
'-m',
'treecat.validate',
'train_task',
dataset_path,
model_path,
config_str,
], env)
评论列表
文章目录