Downloads · 30 days
0
kinjalrk2k/Recommovie-Models
Recommovie-Models is a machine learning model from kinjalrk2k. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This directory stores the precomputed data used by the FastAPI recommender.
Downloads · 30 days
0
Access
Public
Updated Sep 19, 2025
Repo size
9.1 GB
Likes
0
Public
Click a slice to open those files.
.faiss4 GB · 44%
From the Hugging Face model README
This directory stores the precomputed data used by the FastAPI recommender.
merged_embeddings.npy — Float32 matrix of movie embeddings. Shape is recorded in merged_shape.txt (rows × dims).merged_shape.txt — Two integers separated by a space or comma indicating the embedding matrix shape, e.g. 200000 384.index.faiss — FAISS index built from merged_embeddings.npy for fast nearest‑neighbor queries.Optional/auxiliary:
movies.csv, id→row maps) referenced by your Recommender class.The backend constructs paths like:
BASE_DIR = os.path.dirname(__file__)
DATA_DIR = os.path.join(BASE_DIR, "data")
If you relocate artifacts, update your app init or expose env vars to override.
merged_embeddings.npy (Float32, contiguous).merged_shape.txt.IndexFlatIP or IndexIVFFlat) and write to index.faiss.Example (Python, sketch):
import faiss, numpy as np
X = np.load('merged_embeddings.npy').astype('float32')
index = faiss.IndexFlatIP(X.shape[1])
faiss.normalize_L2(X)
index.add(X)
faiss.write_index(index, 'index.faiss')
dtype=float32; mismatched dims cause runtime errors.SHA256SUMS) for CI/CD verification.Ensure your source datasets (TMDb, etc.) comply with their licenses and terms of use.