# lyhue1991/torchkeras

Pytorch❤️  Keras 😋😋

Repository: https://github.com/lyhue1991/torchkeras
Canonical: https://ross.abutalabs.com/products/torchkeras
Language: Jupyter Notebook
License: Apache-2.0
License Family: permissive
Last push: 2026-03-18T09:58:44+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 72, release rhythm 8, longevity 100
- inputs: {"age_days": 2264, "days_push": 168, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2009, forks 250 (observed 2026-08-28T04:06:04.984993+00:00)

## What it is
torchkeras is a lightweight PyTorch model training template library that brings Keras-style compile/fit/evaluate APIs to PyTorch. Its core is only ~200 lines of modular code, with built-in progress bars, metrics, early stopping, checkpointing, and dynamic visualization in Jupyter notebooks.

## Use cases
- train pytorch models without writing training loops
- keras-style fit API for pytorch
- add early stopping and metrics to pytorch training
- visualize training curves in jupyter notebook
- finetune models with a simple trainer
- replace messy custom trainers in pytorch libraries

## When to choose
- you want Keras-like simplicity for PyTorch training
- you need a short, hackable training template you can modify
- you train in Jupyter and want live plots and pretty logs

## When to avoid
- you need distributed training at scale or advanced Trainer features
- you already use PyTorch Lightning or Hugging Face Trainer workflows

## Facets
- artifact type: library
- maturity: active
- function: machine-learning, deep-learning, llm-training, data-visualization, logging
- domain: deep-learning, machine-learning, developer-tools
- platform: python, cross-platform
- tags: pytorch, keras-api, training-loop, model-training, jupyter, early-stopping, tensorboard, wandb

## Member repositories
- lyhue1991/torchkeras (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:04.984993+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:01:16.057206+00:00, confidence not recorded.
  - readme: https://github.com/lyhue1991/torchkeras (fetched 2026-08-28T04:06:04.984993+00:00, sha 082450e6e702)
  - registry_pypi: https://pypi.org/pypi/torchkeras/json (fetched 2026-08-29T10:41:12.494479+00:00, sha 047392cde2ab)
- Data as of 2026-08-30T08:39:29.467469+00:00.
