I've built, trained, and saved a RF algorithm model using Python having the following features:
- Number of deleted files (integer).
- Path (string)
- Severity (integer)
Taking into account sk-learn doesn't deal with strings, I have converted the data using CountVectorizer. How to take the user input path (string) and convert it to the same format as the saved model in order to make Severity predictions? Note that the predictions using strings print(clf.predict([[5, '/some/path']]))
result in error:
ValueError: Iterable over raw text documents expected, string object received.