test.py 330 B

12345678910111213
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # time: 2024/4/19 13:40
  4. # file: test.py
  5. # author: David
  6. # company: shenyang JY
  7. import os
  8. import lightgbm as lgb
  9. current_path = os.path.dirname(__file__)
  10. parent_path = os.path.dirname(current_path)
  11. x = lgb.Booster(model_file=os.path.join(current_path, 'lgb_model_1.txt'))
  12. print("111")