Spaces:
Runtime error
Runtime error
Removed std
Browse files- __pycache__/app.cpython-310.pyc +0 -0
- 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.
|