mardi 6 avril 2021

use classify model aganist any coming input as a function python

Now I have this classification model ready. Normally there is an entire dataset I divide my text data set to train and test (ratio 70:30), and classify the 30% part. How to pack this model as a function so that it accepts a new input as an argument and prints out class name it belongs to? other approaches to accomplish the same task also welcome, as there must be some...

Aucun commentaire:

Enregistrer un commentaire