Spaces:
Runtime error
Runtime error
cosmetic
Browse files
app.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import pandas as pd
|
| 3 |
|
| 4 |
from sklearn.multioutput import MultiOutputRegressor
|
| 5 |
|
|
@@ -9,8 +8,7 @@ from sklearn.linear_model import Ridge
|
|
| 9 |
|
| 10 |
X, y = load_linnerud(return_X_y=True, as_frame=True)
|
| 11 |
regr = MultiOutputRegressor(Ridge(random_state=123)).fit(X, y)
|
| 12 |
-
# regr.predict(X.iloc[[0]])
|
| 13 |
-
|
| 14 |
|
| 15 |
iface = gr.Interface(
|
| 16 |
fn=regr.predict,
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
from sklearn.multioutput import MultiOutputRegressor
|
| 4 |
|
|
|
|
| 8 |
|
| 9 |
X, y = load_linnerud(return_X_y=True, as_frame=True)
|
| 10 |
regr = MultiOutputRegressor(Ridge(random_state=123)).fit(X, y)
|
| 11 |
+
# example usage: regr.predict(X.iloc[[0]])
|
|
|
|
| 12 |
|
| 13 |
iface = gr.Interface(
|
| 14 |
fn=regr.predict,
|