Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -49,27 +49,6 @@ class ModelInput(BaseModel):
|
|
| 49 |
Embarked: str
|
| 50 |
Sex: str
|
| 51 |
|
| 52 |
-
## Utils
|
| 53 |
-
# def processing_FE(
|
| 54 |
-
# dataset, scaler, encoder,imputer, FE=pipeline_of_my_model
|
| 55 |
-
# ): # FE : ColumnTransfromer, Pipeline
|
| 56 |
-
# "Cleaning, Processing and Feature Engineering of the input dataset."
|
| 57 |
-
# """:dataset pandas.DataFrame"""
|
| 58 |
-
|
| 59 |
-
# # if imputer is not None:
|
| 60 |
-
# # output_dataset = imputer.transform(dataset)
|
| 61 |
-
# # else:
|
| 62 |
-
# # output_dataset = dataset.copy()
|
| 63 |
-
|
| 64 |
-
# # output_dataset = scaler.transform(output_dataset)
|
| 65 |
-
|
| 66 |
-
# # if encoder is not None:
|
| 67 |
-
# # output_dataset = encoder.transform(output_dataset)
|
| 68 |
-
# if FE is not None:
|
| 69 |
-
# output_dataset = FE.fit(output_dataset)
|
| 70 |
-
|
| 71 |
-
# return output_dataset
|
| 72 |
-
|
| 73 |
|
| 74 |
|
| 75 |
def make_prediction(
|
|
|
|
| 49 |
Embarked: str
|
| 50 |
Sex: str
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
|
| 54 |
def make_prediction(
|