Run this model with HF Jobs
Run VParka/BioGuard-DNA-Classifier-Ensemble 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/VParka/BioGuard-DNA-Classifier-Ensemble. 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/VParka/BioGuard-DNA-Classifier-Ensemble 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.
Instructions to use VParka/BioGuard-DNA-Classifier-Ensemble with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use VParka/BioGuard-DNA-Classifier-Ensemble with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("VParka/BioGuard-DNA-Classifier-Ensemble", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Upload README.md via DNA Console
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354---tags:- biology- genomics- classification- sklearnlibrary_name: sklearn---
# BioGuard DNA Classifier Ensemble
This repository contains a dual-model ensemble for DNA sequence analysis and virus classification, trained using the **DNA Governance Console**.
## 🧬 Models Included
This repository hosts two distinct models specialized for different aspects of genomic analysis:
### 1. **GenetiForest** (RandomForestClassifier)* **File**: `dna_classifier.joblib`* **Purpose**: General-purpose synthetic vs. biological sequence classification.* **Architecture**: Random Forest (sklearn) with biological feature extraction (k-mers, GC content, etc.).* **Performance (Test Set)**: * **Accuracy**: 89.4% * **F1 Score**: 89.4%
### 2. **ViralBoost** (GradientBoostingClassifier)* **File**: `sequence_model.joblib`* **Purpose**: Specific virus type identification (Influenza A, Norovirus, etc.) based on sequence signatures.* **Architecture**: Gradient Boosting (sklearn) trained on real-world viral sequences.* **Performance (Test Set)**: * **Accuracy**: 99.4% * **F1 Score**: 99.4%* **Classes**: Other, Influenza A, Chicken anemia virus, Norovirus, Influenza B
## 🚀 Usage
You can load these models using `joblib` in Python:
```pythonimport joblib
# Load GenetiForestrf_model = joblib.load("dna_classifier.joblib")
# Load ViralBoostgb_model = joblib.load("sequence_model.joblib")
# Prediction# (Requires matching FeatureExtractor - see 'sequence_extractor.joblib')```
## 📊 Training Meta* **Generated By**: DNA Governance Console (vparka)* **Framework**: scikit-learnREADME.mdAdded+54