tebakaja's picture
[ update ]: Cythonize Machine Learning Utilities
e8ac98a
raw
history blame
353 Bytes
import json
from sklearn.preprocessing import MinMaxScaler
from warnings import filterwarnings
filterwarnings('ignore')
""" Inverse Transform """
async def inverse_transform(object scaler, data):
return scaler.inverse_transform(data)
""" save json """
async def save_json(str filename, data):
with open(filename, 'w') as f:
json.dump(data, f)