Run this model with HF Jobs

Run ErnestBeckham/MulticancerViT on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/ErnestBeckham/MulticancerViT. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/ErnestBeckham/MulticancerViT on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use from the
Use from the
Keras library
# !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://ErnestBeckham/MulticancerViT")

Model description

This is Vision Transformer model trained for cancer classification. To make single model to predict any cancer, I trained this ViT model. following are the cancer types that model can predict:

  • Brain cancer
  • Breast Cancer (histopathology)
  • Lung & Colon Cancer (histopathology)
  • Cervical Caner
  • Kidney Cancer
  • Lymphoma
  • Oral

Intended uses & limitations

More information needed

Training and evaluation data

Confusion matrix and classification report attached below:

Confusion Matrix

Model Image

Classification Report

Model Image

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

Hyperparameters Value
name Adam
learning_rate 0.0001
decay 0.0
beta_1 0.9
beta_2 0.999
epsilon 1e-07
amsgrad False
training_precision float32

Model Plot

View Model Plot

Model Image

Downloads last month
7
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using ErnestBeckham/MulticancerViT 1