Skip to content

Instantly share code, notes, and snippets.

View cournape's full-sized avatar

David Cournapeau cournape

View GitHub Profile
@cournape
cournape / searchrecs.md
Created February 19, 2023 04:43 — forked from veekaybee/searchrecs.md
Understanding search and recommendations

How are search and recommendations the same, and how are they different?

TL;DR:

  • The design of both search and recommendations is to find and filter information
  • Search is a "recommendation with a null query"
  • Search is "I want this", recommendations is "you might like this"
import scipy.sparse
import scipy.io.mmio
import os
import gc
import time
import numpy
matrix = scipy.io.mmio.mmread(os.popen("cat sparse_matrix.head try3"))
mat2 = matrix.tocsc()