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
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'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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'
you need to convert the given path to a byte array, like this: https://hackernoon.com/resolving-typeerror-a-bytes-like-object-is-required-not-str-in-python
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)
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
Is it possible to use machine learning models in the scikit-learn library in DWSIM?
it is possible - I never did it, though.