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://VishSinh/cycle-sync")

🩸 Cycle Sync: Menstrual Cycle Prediction using LSTM

πŸš€ Model Overview

The cycle-sync model is built using a Long Short-Term Memory (LSTM) architecture trained to predict menstrual cycle lengths and period durations based on a user’s past period history.

πŸ”₯ Model Highlights

  • 🧠 Architecture: LSTM (Long Short-Term Memory) with time-series inputs.
  • πŸ“Š Purpose: Predict the next period start date and duration based on previous cycle data.
  • 🎯 Task Type: time-series-forecasting
  • πŸ“š Framework: Keras with TensorFlow backend.
  • πŸ“ˆ Scalers: MinMaxScaler used for feature and label scaling.

πŸ“‘ Usage

🎨 Load Model

To load the model from Hugging Face, use the following code:

import keras
from datetime import timedelta
import numpy as np
import pickle

# Load the model from Hugging Face
model = keras.saving.load_model("hf://VishSinh/cycle-sync")

# Load the scalers (if needed)
with open("feature_scaler.pkl", "rb") as f:
    feature_scaler = pickle.load(f)

with open("label_scaler.pkl", "rb") as f:
    label_scaler = pickle.load(f)
Downloads last month
31
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Evaluation results