Bayes or Spam?
Collection
Demo and models of the Bayes or Spam? project • 4 items • Updated
How to use tbitai/nn-enron1-spam with Keras:
# !pip install -U keras tensorflow huggingface_hub
# Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here;
# "jax" and "torch" also work for computation once TensorFlow is installed.
import os
os.environ["KERAS_BACKEND"] = "tensorflow"
import keras
model = keras.saving.load_model("hf://tbitai/nn-enron1-spam")
This model is a best-effort reconstruction of the text classifier neural network (NN) with self-trained embeddings in the Bayes or Spam? project.
It was trained on the on the Enron1 spam dataset.