Ajout de la prédiction avec deux algos (un de prédiction et un de classification) #7

Merged
hugo.pradier2 merged 0 commits from prediction into main 2024-06-21 14:56:28 +02:00
hugo.pradier2 commented 2024-06-21 14:17:05 +02:00 (Migrated from codefirst.iut.uca.fr)
No description provided.
clement.freville2 (Migrated from codefirst.iut.uca.fr) reviewed 2024-06-21 14:17:20 +02:00
clement.freville2 (Migrated from codefirst.iut.uca.fr) approved these changes 2024-06-21 14:28:09 +02:00
clement.freville2 (Migrated from codefirst.iut.uca.fr) reviewed 2024-06-21 14:34:48 +02:00
clement.freville2 (Migrated from codefirst.iut.uca.fr) commented 2024-06-21 14:35:12 +02:00
-        prediction = model.predict([pred_values])
+        prediction = model.predict(pd.DataFrame([pred_values], columns=data_name))
```diff - prediction = model.predict([pred_values]) + prediction = model.predict(pd.DataFrame([pred_values], columns=data_name)) ```
clement.freville2 (Migrated from codefirst.iut.uca.fr) commented 2024-06-21 14:34:48 +02:00
-        prediction = model.predict([pred_values])
+        prediction = model.predict(pd.DataFrame([pred_values], columns=data_name))

Would remove the X does not have valid feature names, but LogisticRegression was fitted with feature names warning.

```diff - prediction = model.predict([pred_values]) + prediction = model.predict(pd.DataFrame([pred_values], columns=data_name)) ``` Would remove the `X does not have valid feature names, but LogisticRegression was fitted with feature names` warning.
clement.freville2 (Migrated from codefirst.iut.uca.fr) reviewed 2024-06-21 14:51:26 +02:00
clement.freville2 (Migrated from codefirst.iut.uca.fr) approved these changes 2024-06-21 14:51:39 +02:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: iut/miner#7
No description provided.