I am having a question that is very similar to this topic but I want to reuse the StandardScaler instead of LabelEncoder. Here's what I have done:
# in one program
dict = {"mean": scaler.mean_, "var": scaler.var_}
# and save the dict 
# in another program
# load the dict first
new_scaler = StandardScaler()
new_scaler.mean_ = dict['mean'] # Hoever it doesn't work
new_scaler.var_ = dict['var'] # Doesn't work either...
I also tried set_params but it can only change these parameters: copy, with_mean, and with_std. 
So, how can I re-use the scaler I got in program one? Thanks!
 
     
    