File size: 375 Bytes
1244519
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import joblib
from utils import get_device

DEVICE = get_device()


class RegressionModelLoader:
    def __init__(self):
        print("Regression Model init")
        self.model = self.load("./logistic_regression_model.pkl")

    def load(self, regression_model_file_name):
        return joblib.load(regression_model_file_name)


regression_model = RegressionModelLoader()