K
K
KeQuing2022-04-18 15:23:30
Machine learning
KeQuing, 2022-04-18 15:23:30

How to populate another file with machine learning model prediction data?

Good afternoon! The question is this: I created a prediction model by title, used a training sample from file No. 1.
(there are two columns in the file - the first with the name of the news, the second column contains 0 or 1, depending on whether the news is true)
I made a prediction for file No. 2, where other names are written, but no values ​​are entered, and now I need to fill in the is_fake column of this file with the values ​​of the model's predictions, as it was in the file for training the model. How is it possible to do this? Wrote in Python using sklearn and the linearSVC method.

In programming, literally zero, I decided to do the task on pure enthusiasm.
625d574207359650638369.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question