ONNX Model Zoo

thuggingface/multi-nb-tfidf-model

By thuggingface · ↓ 2 · ♥ 0 · Updated 2024-07-19

What's in this repo

This page lists the files in thuggingface/multi-nb-tfidf-model, including multi-nb-tfidf-model.onnx.

  • 1 ONNX models (.onnx files)
  • 5 files, including 1 .md, 1 .json, 1 .onnx, 1 .pkl
  • Last updated 2024-07-19

ONNX files

File Size Download
multi-nb-tfidf-model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

Multinomial Naive Bayes with TF-IDF

This is a Multinomial Naive Bayes model trained with a TF-IDF vectorizer on a phishing detection dataset. It was trained using scikit-learn with the support of the National Innovation Centre for Data (NICD) at Newcastle University.

Usage

You can load and use this model with the following script:

import joblib
from huggingface_hub import hf_hub_download

# Download the model from Hugging Face
model_path = hf_hub_download(repo_id="your_username/multi-nb-tfidf-model", filename="multi-nb-tfidf-model.pkl")

# Load the model
model = joblib.load(model_path)

# Use the model for predictions
sample_text = ["Example text to classify"]
predictions = model.predict(sample_text)
print(predictions)

Model info

transformers
transformers onnx sklearn endpoints_compatible region:us
↓ 2 ♥ 0

Created: 2024-07-19

Updated: 2024-07-19

View on Hugging Face

Files (5)

.gitattributes
README.md
config.json
multi-nb-tfidf-model.onnx ONNX
multi-nb-tfidf-model.pkl

Related models