Skip to content

Instantly share code, notes, and snippets.

View ashishk-gooru's full-sized avatar

ashishk-gooru

View GitHub Profile
import logging
import pandas as pd
from tqdm import tqdm
from collections import Counter
# Configure logging
logger = logging.getLogger(__name__)
def generate_batch_recommendations(recommender, test_interactions_df, n_recommendations=20):
"""