import json | |
from sklearn.preprocessing import MinMaxScaler | |
from warnings import filterwarnings | |
filterwarnings('ignore') | |
""" Inverse Transform """ | |
def inverse_transform(object scaler, data): | |
return scaler.inverse_transform(data) | |
""" save json """ | |
def save_json(str filename, data): | |
with open(filename, 'w') as f: | |
json.dump(data, f) | |