Time Series Forecasting
Keras
English
tensorflow
time-series
menstrual-cycle-prediction
healthcare
Eval Results (legacy)
Instructions to use VishSinh/cycle-sync with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use VishSinh/cycle-sync with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://VishSinh/cycle-sync") - Notebooks
- Google Colab
- Kaggle
π©Έ 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:
MinMaxScalerused 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
- 7
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support
Evaluation results
- Mean Absolute Error (MAE)self-reported1.200
- Mean Squared Error (MSE)self-reported2.500
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://VishSinh/cycle-sync")