Redve commited on
Commit
7fb3b3f
·
1 Parent(s): be37d75

Removed std

Browse files
Files changed (2) hide show
  1. __pycache__/app.cpython-310.pyc +0 -0
  2. app.py +0 -3
__pycache__/app.cpython-310.pyc ADDED
Binary file (2.55 kB). View file
 
app.py CHANGED
@@ -45,9 +45,6 @@ def wine_quality(type, fixed_acidity, volatile_acidity, citric_acid, residual_su
45
  df['cv'] = df.std(axis = 1, skipna = True)/df.mean(axis = 1, skipna = True)
46
  df['range'] = df.max(axis = 1, skipna = True) - df.min(axis = 1, skipna = True)
47
  df['iqr'] = df.quantile(q=0.75, axis=1) - df.quantile(q=0.25, axis=1)
48
- scaler = StandardScaler()
49
- transformed = scaler.fit_transform(df)
50
- df = pd.DataFrame(transformed, columns=df.columns)
51
  print("Predicting")
52
  print(df)
53
  # 'res' is a list of predictions returned as the label.
 
45
  df['cv'] = df.std(axis = 1, skipna = True)/df.mean(axis = 1, skipna = True)
46
  df['range'] = df.max(axis = 1, skipna = True) - df.min(axis = 1, skipna = True)
47
  df['iqr'] = df.quantile(q=0.75, axis=1) - df.quantile(q=0.25, axis=1)
 
 
 
48
  print("Predicting")
49
  print(df)
50
  # 'res' is a list of predictions returned as the label.