CoreRec API Versioning Policy#
CoreRec follows semantic versioning (MAJOR.MINOR.PATCH) with explicit deprecation
cycles, similar to PyTorch and TensorFlow.
Current API version#
Package version: see
corerec.__version__Unified recommender API: v1.0 (
BaseRecommender)
Stability tiers#
Tier |
Path |
Guarantee |
|---|---|---|
Production |
|
Stable |
Platform |
|
Beta — tested in CI with |
Sandbox |
|
Experimental — no stability guarantee |
Unified public contract#
All 14 production models implement:
model.fit(...) # or fit(RecommenderDataset)
score = model.predict(user_id, item_id)
recs = model.recommend(user_id, top_k=10, exclude_items=None)
model.save(path)
loaded = ModelClass.load(path)
Deprecated (removed in CoreRec 1.0)#
Legacy |
Replacement |
|---|---|
|
|
|
|
|
Works; aliases |
Pickle-only artifacts (untrusted) |
Use |
Deprecation warnings use Python’s DeprecationWarning and can be surfaced in CI:
PYTHONWARNINGS=default python -m pytest tests/test_api_uniformity.py
RecommenderDataset (unified training)#
from corerec.api.dataset import RecommenderDataset
ds = RecommenderDataset.from_triplet(user_ids, item_ids, ratings)
model.fit(ds)
ds = RecommenderDataset.from_dataframe(train_df)
sar.fit(ds)
Release checklist#
All production model tests pass (
tests/test_all_production_models.py)API uniformity tests pass (
tests/test_api_uniformity.py)Coverage ≥ 40% (
--cov-fail-under=40)No new undocumented breaking changes without deprecation period