This is likely due to the fact that the scaler (sklearn.preprocessing.MinMaxScaler()) is a mutable default argument of LUNAR.
Proposed solution is to add a deepcopy in the init, such as self.scaler = deepcopy(scaler).
If this is the right change, I am willing to do the PR.
The following script returns a
ValueError
:This is likely due to the fact that the scaler (
sklearn.preprocessing.MinMaxScaler()
) is a mutable default argument of LUNAR. Proposed solution is to add a deepcopy in the init, such asself.scaler = deepcopy(scaler)
.If this is the right change, I am willing to do the PR.