Commit
·
88041fe
1
Parent(s):
95f77b2
Update main.py
Browse files
main.py
CHANGED
@@ -43,8 +43,9 @@ async def predict(input: InputFeatures):
|
|
43 |
#creating pipelines
|
44 |
num_pipeline= Pipeline([('imputer', SimpleImputer()),('scaler', StandardScaler())])
|
45 |
|
46 |
-
|
47 |
full_pipeline=ColumnTransformer([('num_pipe',num_pipeline,num_attr)])
|
|
|
48 |
full_pipeline.fit(df) # Fit the full pipeline on the DataFrame
|
49 |
|
50 |
final_input = np.array(full_pipeline.transform(df), dtype=np.str)
|
@@ -66,7 +67,9 @@ async def predict(input: InputFeatures):
|
|
66 |
|
67 |
# #final_input = np.array(full_pipeline.transform(df), dtype=np.str)
|
68 |
|
69 |
-
|
|
|
|
|
70 |
|
71 |
|
72 |
|
|
|
43 |
#creating pipelines
|
44 |
num_pipeline= Pipeline([('imputer', SimpleImputer()),('scaler', StandardScaler())])
|
45 |
|
46 |
+
|
47 |
full_pipeline=ColumnTransformer([('num_pipe',num_pipeline,num_attr)])
|
48 |
+
df = pd.DataFrame([input])
|
49 |
full_pipeline.fit(df) # Fit the full pipeline on the DataFrame
|
50 |
|
51 |
final_input = np.array(full_pipeline.transform(df), dtype=np.str)
|
|
|
67 |
|
68 |
# #final_input = np.array(full_pipeline.transform(df), dtype=np.str)
|
69 |
|
70 |
+
#print(model_input)
|
71 |
+
#df = pd.DataFrame([input])
|
72 |
+
#final_input = np.array(predict_input.fit_transform(df), dtype = np.str)
|
73 |
|
74 |
|
75 |
|