{"id":19875455,"url":"https://github.com/sofiakhutsieva/ml_recommendation_system","last_synced_at":"2026-06-13T05:31:37.663Z","repository":{"id":229618531,"uuid":"776348990","full_name":"SofiaKhutsieva/ML_recommendation_system","owner":"SofiaKhutsieva","description":"Рекомендательная система для онлайн-гипермаркета Instacart (Проект в skillbox), 2024 г.","archived":false,"fork":false,"pushed_at":"2024-04-16T09:13:50.000Z","size":3445,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-17T15:08:12.100Z","etag":null,"topics":["als","implicit","lightfm","recommendation-system"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SofiaKhutsieva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-23T08:58:19.000Z","updated_at":"2025-05-24T14:00:20.000Z","dependencies_parsed_at":"2024-04-16T10:44:27.556Z","dependency_job_id":null,"html_url":"https://github.com/SofiaKhutsieva/ML_recommendation_system","commit_stats":null,"previous_names":["sofiakhutsieva/ml_recommendation_system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SofiaKhutsieva/ML_recommendation_system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiaKhutsieva%2FML_recommendation_system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiaKhutsieva%2FML_recommendation_system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiaKhutsieva%2FML_recommendation_system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiaKhutsieva%2FML_recommendation_system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SofiaKhutsieva","download_url":"https://codeload.github.com/SofiaKhutsieva/ML_recommendation_system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiaKhutsieva%2FML_recommendation_system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34273788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["als","implicit","lightfm","recommendation-system"],"created_at":"2024-11-12T16:28:18.579Z","updated_at":"2026-06-13T05:31:37.637Z","avatar_url":"https://github.com/SofiaKhutsieva.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ML_recommendation_system\n\n## Задача  \nПредсказать, какие продукты пользователи закажут в следующую покупку (метрика MAP@10).\n\nНезависимо от того, покупаете ли вы спонтанно или тщательно планируете покупки, ваше уникальные потребительское поведение определяет, кто вы. Instacart — приложение для заказа и доставки продуктов. Оно помогает  упростить наполнение холодильника вашими любимыми продуктами, когда они нужны. После выбора товаров через приложение Instacart наши сотрудники просматривают заказ, делают покупки и доставляют их из магазина до дома.\n\nНаша команда Data Science играет огромную роль в организации этого пользовательского опыта. Сейчас мы используем транзакционные данные для разработки моделей, которые предсказывают, какие продукты пользователь снова купит, попробует в первый раз или добавит в свою корзину в течение сеанса.\n\nСписок товаров и продуктов огромен, искать в нём что-то бывает сложно. Поэтому мы хотим помочь пользователю и показывать ему те товары, которые он, скорее всего, захочет купить. Используйте анонимные данные о заказах клиентов, чтобы предсказать, какие продукты они закажут в следующий раз. Ваши предсказания мы будем показывать клиентам на главной странице, чтобы сделать сервис удобнее.\n\n## Результат\n**основная логика кода вынесена в функции:**  \n`download_dataset` - Загрузка и объединение датасетов  \n`define_top_10_per_user` - Определение для каждого пользователя топ 10 продуктов  \n`prepare_dataset` - Подготовка датасета  \n`prepare_coo_matrix_for_collaborative_filtering` - Подготовка разряженной матрицы для коллаборативной фильтрации  \n`train_collaborative_filtering` - Обучение для коллаборативной фильтрации  \n`inference_collaborative_filtering` - Инференс для коллаборативной фильтрации  \n`prepare_features_for_lightFM` - Подготовка признаков для lightFM  \n`prepare_coo_matrix_for_lightFM` - Подготовка разряженной матрицы для lightFM  \n`train_lightFM` - Обучение lightFM  \n`inference_lightFM` - Инференс lightFM  \n  \n\n**сравнение моделей:**  \n\n![image](https://github.com/SofiaKhutsieva/ML_recommendation_system/assets/73535658/a0f443d4-6391-47f7-bc7a-2e0a1c9cc7f5)\n\n\n**инференс:**  \n- По идентификатору пользователя выдается набор из K наиболее релевантных для него товаров.  \n- По массиву идентификаторов пользователей выдается массив наборов из K наиболее релевантных для них товаров.  \n\n![image](https://github.com/SofiaKhutsieva/ML_recommendation_system/assets/73535658/d54126ff-e97c-4675-9669-e320c9d60f7a)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofiakhutsieva%2Fml_recommendation_system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofiakhutsieva%2Fml_recommendation_system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofiakhutsieva%2Fml_recommendation_system/lists"}