Run this model with HF Jobs
Run keras-io/timeseries-anomaly-detection 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/keras-io/timeseries-anomaly-detection. 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/keras-io/timeseries-anomaly-detection 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 keras-io/timeseries-anomaly-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use keras-io/timeseries-anomaly-detection with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy), and from_pretrained_keras was removed in huggingface_hub 1.0. # See https://github.com/keras-team/tf-keras for more details. # !pip install "huggingface_hub<1.0" tf_keras from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("keras-io/timeseries-anomaly-detection") - Notebooks
- Google Colab
- Kaggle
Timeseries anomaly detection using an Autoencoder
This repo contains the model and the notebook to this Keras example on Timeseries anomaly detection using an Autoencoder.
Full credits to: Pavithra Vijay
Background and Datasets
This script demonstrates how you can use a reconstruction convolutional autoencoder model to detect anomalies in timeseries data. We will use the Numenta Anomaly Benchmark(NAB) dataset. It provides artifical timeseries data containing labeled anomalous periods of behavior. Data are ordered, timestamped, single-valued metrics.
Training hyperparameters
The following hyperparameters were used during training:
- optimizer: {'name': 'Adam', 'learning_rate': 0.001, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
- training_precision: float32
Training Metrics
| Epochs | Train Loss | Validation Loss |
|---|---|---|
| 1 | 0.011 | 0.014 |
| 2 | 0.011 | 0.015 |
| 3 | 0.01 | 0.012 |
| 4 | 0.01 | 0.013 |
| 5 | 0.01 | 0.012 |
| 6 | 0.009 | 0.014 |
| 7 | 0.009 | 0.013 |
| 8 | 0.009 | 0.012 |
| 9 | 0.009 | 0.012 |
| 10 | 0.009 | 0.011 |
| 11 | 0.008 | 0.01 |
| 12 | 0.008 | 0.011 |
| 13 | 0.008 | 0.009 |
| 14 | 0.008 | 0.011 |
| 15 | 0.008 | 0.009 |
| 16 | 0.008 | 0.009 |
| 17 | 0.008 | 0.009 |
| 18 | 0.007 | 0.01 |
| 19 | 0.007 | 0.009 |
| 20 | 0.007 | 0.008 |
| 21 | 0.007 | 0.009 |
| 22 | 0.007 | 0.008 |
| 23 | 0.007 | 0.008 |
| 24 | 0.007 | 0.007 |
| 25 | 0.007 | 0.008 |
| 26 | 0.006 | 0.009 |
| 27 | 0.006 | 0.008 |
| 28 | 0.006 | 0.009 |
| 29 | 0.006 | 0.008 |
Model Plot
- Downloads last month
- 41
