karpathy / karpathy/randomfun

lasso logistic regression vs knn_vs_svm?

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
1.2k
Forks
149
PR merge metrics
No merged PRs in 30d

Description

Very cool idea on using SVM for similarity search.

As an alternative, we could also use logistic regression with l1 penalty. Because of the induced sparsity, this gives us the benefit of only storing the subset of embedding dimensions that are relevant and so reduce storage and computation during inference.

Small nit: I think technically we would call these examples instances of Positive Unlabeled (PU) learning where our "negatives" are not labeled (but we assume some of them are positive matches against the query).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the existing SVM similarity-search approach referenced in the issue. Compare the proposed L1-penalized logistic regression alternative and clarify whether the work should address PU learning terminology. Done means the approach and implementation scope are decided.

Written by the indexing model from the issue text.

Assessment

Tech stack
machine-learning
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.