AzizWazir commited on
Commit
7bf13ba
·
verified ·
1 Parent(s): 99fb0cf

Update scalar.pk1

Browse files
Files changed (1) hide show
  1. scalar.pk1 +14 -0
scalar.pk1 CHANGED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from sklearn.preprocessing import MinMaxScaler
2
+ import joblib
3
+ import numpy as np
4
+
5
+ # Example data for scaler fitting
6
+ data = np.random.rand(100, 4) # Replace with real data if available
7
+
8
+ # Initialize and fit the scaler
9
+ scaler = MinMaxScaler()
10
+ scaler.fit(data)
11
+
12
+ # Save the scaler
13
+ joblib.dump(scaler, "scaler.pkl")
14
+ print("Scaler saved as scaler.pkl")