IdeaCredIdeaCred

pro-grammer-SD/food-rec

43

๐Ÿฅ— ML-powered food recommendations app using scikit-learn

What's novel

๐Ÿฅ— ML-powered food recommendations app using scikit-learn

Code Analysis

2 files read ยท 2 rounds

A content-based food recommendation system that constructs a synthetic user profile from CLI or Streamlit inputs and finds the top-10 matching foods using TF-IDF text features, one-hot encoded categories, and scaled nutrients via K-Nearest Neighbors.

Strengths

The project provides a functional, offline-first solution with a clean UX in both CLI and Streamlit. The synthetic profile generation (quantile-based target setting) is a clever way to handle cold-start without complex training loops.

Weaknesses

Significant code duplication between main.py and app.py violates DRY principles. There is no error handling for missing data beyond basic fillna, no input validation, and zero test coverage.

Score Breakdown

Innovation
5 (25%)
Craft
33 (35%)
Traction
17 (15%)
Scope
47 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+1

Craft

Ci-1
Tests-1
Polish+0
Releases+0
Has License+0
Code Quality+9
Readme Quality+15
Recent Activity+4
Structure Quality+2
Commit Consistency+0
Has Dependency Mgmt+5

Traction

Forks+0
Stars+12
Hn Points+0
Watchers+0
Early Traction+5
Devto Reactions+0
Community Contribs+0

Scope

Commits+3
Languages+3
Subsystems+0
Bloat Penalty+0
Completeness+6
Contributors+5
Authored Files+4
Readme Code Match+3
Architecture Depth+0
Implementation Depth+8

Evidence

Commits

5

Contributors

1

Files

5

Active weeks

1

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

6

Forks

0

License

โ€”