lalithadevi
commited on
Update news_category_similar_news_prediction.py
Browse files
news_category_similar_news_prediction.py
CHANGED
@@ -121,6 +121,7 @@ def add_flags_to_prediction_df(df):
|
|
121 |
df.drop(columns=['similar_news', 'src', 'title', 'description'], inplace=True)
|
122 |
df['y_true_proba'] = df['y_pred_proba']
|
123 |
df['y_true'] = df['y_pred']
|
|
|
124 |
return df
|
125 |
|
126 |
|
|
|
121 |
df.drop(columns=['similar_news', 'src', 'title', 'description'], inplace=True)
|
122 |
df['y_true_proba'] = df['y_pred_proba']
|
123 |
df['y_true'] = df['y_pred']
|
124 |
+
df['updated_prediction'] = 1
|
125 |
return df
|
126 |
|
127 |
|