Skip to content

Instantly share code, notes, and snippets.

@Dhrumilcse
Created May 20, 2021 04:53
Show Gist options
  • Save Dhrumilcse/e16acac4844d8e0552319b05ddc111f6 to your computer and use it in GitHub Desktop.
Save Dhrumilcse/e16acac4844d8e0552319b05ddc111f6 to your computer and use it in GitHub Desktop.
# Load existing vectorizer/model to make predictions
count_vectorizer = joblib.load("../supplementary/count_vectorizer")
data_ = data["Message"].tolist()
x_test = count_vectorizer.transform(data_)
model = joblib.load("../supplementary/game_classifier")
y_predicted = model.predict(x_test)
with data_process_output:
print(f"Predicted total {len(y_predicted)} values... Done.")
print(f"Mapping predictions...")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment