Browse Source

规范化训练代码

罗俊辉 1 year ago
parent
commit
065867b44e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main.py

+ 2 - 1
main.py

@@ -113,7 +113,8 @@ class LightGBM(object):
         num_round = 100
         print("开始训练......")
         bst = lgb.train(params, train_data, num_round, valid_sets=[test_data])
-        bst.save_model(self.model, binary=True)
+        bst.save_model(self.model)
+        print("模型训练完成✅")
 
     def evaluate_model(self):
         """