|
|
|
@@ -1,6 +1,7 @@ |
|
|
|
import os |
|
|
|
import joblib |
|
|
|
import numpy as np |
|
|
|
import lightgbm as lgb |
|
|
|
from learnware.model import BaseModel |
|
|
|
|
|
|
|
|
|
|
|
@@ -8,7 +9,7 @@ class Model(BaseModel): |
|
|
|
def __init__(self): |
|
|
|
super(Model, self).__init__(input_shape=(82,), output_shape=()) |
|
|
|
dir_path = os.path.dirname(os.path.abspath(__file__)) |
|
|
|
self.model = joblib.load(os.path.join(dir_path, "model.out")) |
|
|
|
self.model = lgb.Booster(model_file=os.path.join(dir_path, "model.out")) |
|
|
|
|
|
|
|
def fit(self, X: np.ndarray, y: np.ndarray): |
|
|
|
pass |
|
|
|
|