Last answered:

22 Nov 2022

Posted on:

17 Nov 2022

0

can't run model

This is my class
class absen_models():
      def __init__(selfmodel_filescaler_file):
          #open model and scaler that i save
          with open('absen_model''rb'as model_file, open('absen_scaler''rb'as scaler_file:
                self.reg = pickle.load(model_file)
                self.scaler = pickle.load(scaler_file)
                self.data = None

I can't running my class on
model = absen_models('absen_model', 'absen_scaler')

What should i do?

1 answers ( 0 marked as helpful)
Instructor
Posted on:

22 Nov 2022

0

Hi Lydia!
Thanks for reaching out!

Could you please support your question with a screenshot containing the entire error message you’ve encountered? This can help us assist you better. Thank you.

Looking forward to your answer.
Best,
Tsvetelin

Submit an answer