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

Merged
hugo.pradier2 merged 4 commits from prediction into main 10 months ago
Collaborator
There is no content yet.
clement.freville2 was assigned by hugo.pradier2 10 months ago
hugo.pradier2 added 3 commits 10 months ago
clement.freville2 was unassigned by hugo.pradier2 10 months ago
hugo.pradier2 requested review from clement.freville2 10 months ago
clement.freville2 approved these changes 10 months ago
clement.freville2 reviewed 10 months ago
value = st.number_input(f"Value for {feature}", value=0.0)
pred_values.append(value)
prediction = model.predict([pred_values])
-        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)) ```
st.subheader("Enter values for prediction")
pred_values = [st.number_input(f"Value for {feature}", value=0.0) for feature in data_name]
prediction = model.predict([pred_values])
-        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.
hugo.pradier2 force-pushed prediction from a848a4b81d to 2d1c867bed 10 months ago
hugo.pradier2 added 1 commit 10 months ago
hugo.pradier2 requested review from clement.freville2 10 months ago
clement.freville2 approved these changes 10 months ago
hugo.pradier2 merged commit 96d390c749 into main 10 months ago

Reviewers

clement.freville2 approved these changes 10 months ago
The pull request has been merged as 96d390c749.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: clement.freville2/miner#7
Loading…
There is no content yet.