Spaces:
Sleeping
Sleeping
|
Download README.md from basaktamer/Book_Recommender: direct link, hf CLI and curl.
- Browser
- Download file 2.13 kB
-
https://huggingface.co/spaces/basaktamer/Book_Recommender/resolve/main/README.md
- Command line
-
hf download hf://spaces/basaktamer/Book_Recommender/README.md
-
curl -L -o README.md https://huggingface.co/spaces/basaktamer/Book_Recommender/resolve/main/README.md
2.13 kB
A newer version of the Streamlit SDK is available: 1.67.0
metadata
title: Book Recommender
emoji: π
colorFrom: blue
colorTo: indigo
sdk: streamlit
app_file: app.py
pinned: false
π AI Book Discovery Engine (Hybrid KNN)
A high-performance recommendation system that utilizes the K-Nearest Neighbors (KNN) algorithm to identify stylistic and statistical "neighbors" within a library of over 10,000 titles.
π Live Demo
Built with Streamlit and optimized for low-latency performance on local and cloud environments.
π οΈ Project Overview
1. Core Algorithm: Hybrid K-Nearest Neighbors
Unlike simple recommendation engines, this project uses a multi-dimensional feature space (6,662 features) to calculate distances between books.
- Feature Vectorization: Authors and Languages are transformed into binary vectors via One-Hot Encoding.
- Distance Logic: We use a dual-weight approach:
- Cosine Similarity: Measures the "stylistic" distance (Authors/Metadata).
- Absolute Difference: Measures the "popularity" distance (Ratings Count).
2. Key Metric: Model Accuracy
The engine was evaluated using Mean Absolute Error (MAE) to compare predicted ratings against actual reader sentiment.
- MAE Score:
0.2927 - Significance: An error of less than 0.3 stars proves that the chosen "neighbors" are highly representative of the target bookβs quality and reader appeal.
π Business Insights
- Cold Start Mitigation: By weighting popularity alongside metadata, the system ensures that "blockbuster" readers are recommended verified hits while preserving the niche characteristics of specific authors.
- Resource Efficiency: Successfully handles a high-dimensional dataset on consumer-grade hardware (8GB RAM), demonstrating efficient state management and caching strategies.
π Repository Structure
app.py: The Streamlit dashboard and recommendation logic.books.csv: The cleaned Goodreads dataset.requirements.txt: Environment dependencies for deployment.
Author: [Your Name] Focus: Data Science Transition Project (Mastering Applied Data Science)