Downloads · 30 days
8
15% of all-time downloads
YasirUsman/vet-anomaly-vae-dog-health
vet-anomaly-vae-dog-health is a machine learning model from YasirUsman. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This repository contains a Deep Variational Autoencoder (VAE) trained to identify biological anomalies in canine biomarker data. By learning the "normal" physiological baseline of 50 dogs across various breeds, this m…
Downloads · 30 days
8
15% of all-time downloads
All-time downloads
54
Public
Repo size
14.2 KB
Likes
0
Public
Click a slice to open those files.
.pth14.2 KB · 83%
From the Hugging Face model README
This repository contains a Deep Variational Autoencoder (VAE) trained to identify biological anomalies in canine biomarker data. By learning the "normal" physiological baseline of 50 dogs across various breeds, this model can flag individuals that show unusual health signatures.
[Image of VAE architecture with encoder and decoder layers]
Since this is a custom PyTorch architecture, use the following code to load the model and run inference:
import torch
import torch.nn as nn
# Define the architecture
class DeepVAE(nn.Module):
def __init__(self, input_dim=15, latent_dim=4):
super(DeepVAE, self).__init__()
self.encoder = nn.Sequential(
nn.Linear(input_dim, 32), nn.ReLU(),
nn.Linear(32, 16), nn.ReLU(),
nn.Linear(16, latent_dim * 2)
)
self.decoder = nn.Sequential(
nn.Linear(latent_dim, 16), nn.ReLU(),
nn.Linear(16, 32), nn.ReLU(),