Menu

scipy loading

omid
2024-04-21
2024-04-28
  • omid

    omid - 2024-04-21

    Hi
    i would like to load my machine learning model which I have written in scipy library but I have a problem to load and it gives an error
    I should say that I am using winpy version 3.9.10.0
    could you please help me

     

    Last edit: omid 2024-04-21
  • omid

    omid - 2024-04-23

    Hi
    I should also add that this code runs in spyder but not in DWSIM and it encounters the following error:
    Error in 'Python.Runtime': a bytes-like object is required, not 'str'

     
  • omid

    omid - 2024-04-24

    Thank you for your reply
    But by using this method in the next lines of the code, I get the following error:
    Error in 'Python.Runtime': 'bytes' object has no attribute 'predict'
    this error is related to this line of my code: predictions = model.predict(new_data.drop(columns=["Tc2", "Th2"]))
    input = scaler.inverse_transform(inputs)

     
  • omid

    omid - 2024-04-24

    Actually, I want to use the scikit Learn library instead of TensorFlow to simulate the heat exchanger, and I don't know if this can be done with DWSIM or not?

     

    Last edit: omid 2024-04-24
  • omid

    omid - 2024-04-27

    Is it possible to use machine learning models in the scikit-learn library in DWSIM?

     
    • Daniel Medeiros

      Daniel Medeiros - 2024-04-28

      it is possible - I never did it, though.

       
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.