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