Spaces:
Runtime error
Runtime error
Update app/modelling.py
Browse files- app/modelling.py +1 -2
app/modelling.py
CHANGED
|
@@ -10,8 +10,7 @@ from sklearn.metrics import f1_score
|
|
| 10 |
import argparse
|
| 11 |
import joblib
|
| 12 |
|
| 13 |
-
def train(
|
| 14 |
-
df=pd.read_csv(dataset_pth)
|
| 15 |
features=["Torque(Nm)","Hydraulic_Pressure(bar)","Cutting(kN)","Coolant_Pressure(bar)","Spindle_Speed(RPM)","Coolant_Temperature","Downtime"]
|
| 16 |
|
| 17 |
df=df[features]
|
|
|
|
| 10 |
import argparse
|
| 11 |
import joblib
|
| 12 |
|
| 13 |
+
def train(df):
|
|
|
|
| 14 |
features=["Torque(Nm)","Hydraulic_Pressure(bar)","Cutting(kN)","Coolant_Pressure(bar)","Spindle_Speed(RPM)","Coolant_Temperature","Downtime"]
|
| 15 |
|
| 16 |
df=df[features]
|