{"id":502129,"date":"2026-11-07T22:02:07","date_gmt":"2026-11-07T19:02:07","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=502129"},"modified":"2026-11-07T22:02:07","modified_gmt":"2026-11-07T19:02:07","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=502129","title":{"rendered":"\u041a\u0430\u043a \u044f \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0447\u0435\u0440\u0435\u0437 ML"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0427\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434 \u0443 \u043c\u0435\u043d\u044f \u0432\u044b\u0448\u043b\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u043e \u0431\u0438\u0440\u0436\u0443 Kwork (<a href=\"https:\/\/habr.com\/ru\/articles\/941152\/\" rel=\"noopener nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0441\u0442\u0430\u0442\u044c\u044e<\/a>). \u041e\u043d\u0430 \u043d\u0430\u0431\u0440\u0430\u043b\u0430 30 000 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0435\u043f\u043b\u043e\u0445\u043e\u0439, \u043d\u043e \u0432 \u0442\u043e\u043f\u0435 \u0442\u043e\u0433\u043e \u0436\u0435 \u0445\u0430\u0431\u0440\u0430 \u043b\u0435\u0436\u0430\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u043e 150 000 \u0438 350 000 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432. \u041c\u043d\u0435 \u0441\u0442\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u0434\u043d\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442 \u043f\u0430\u0440\u0443 \u0442\u044b\u0441\u044f\u0447 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432, \u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u0447\u0438\u0442\u0430\u044e\u0442 \u0441\u043e\u0442\u043d\u044f\u043c\u0438 \u0442\u044b\u0441\u044f\u0447.<\/p>\n<p>\u042f \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u044d\u0442\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Python \u0438 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f. \u041f\u043b\u0430\u043d \u0431\u044b\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439: \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u043e \u0441\u0442\u0430\u0442\u044c\u044f\u043c \u0438\u0437 \u043c\u043e\u0435\u0433\u043e \u0445\u0430\u0431\u0430, \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u044f\u0437\u044b\u043a\u043e\u0432\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432\u0441\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0432 Random Forest \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b.<\/p>\n<p>\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u044f \u0443\u043f\u0435\u0440\u0441\u044f \u0432 \u043b\u0438\u043c\u0438\u0442\u044b \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0433\u043e API, \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c \u0432 LM Studio \u0441\u0445\u0438\u0442\u0440\u0438\u043b\u0430 \u043d\u0430 \u043f\u0440\u043e\u043c\u043f\u0442\u0435, \u0430 \u0441\u0430\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u0434\u0430\u043b \u0430\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u0438\u0437-\u0437\u0430 \u0443\u0442\u0435\u0447\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. \u041d\u0438\u0436\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u044f \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u043b \u0438 \u043a\u0430\u043a\u0438\u0435 \u0446\u0438\u0444\u0440\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0432 \u0438\u0442\u043e\u0433\u0435.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/79\/a7\/32\/79a732a324e7e9281164ba0791a37919.png\" alt=\"\u0425\u0430\u0431\u0440 \u0438 LM studio\" title=\"\u0425\u0430\u0431\u0440 \u0438 LM studio\" width=\"1920\" height=\"1080\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/79\/a7\/32\/79a732a324e7e9281164ba0791a37919.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/79\/a7\/32\/79a732a324e7e9281164ba0791a37919.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0425\u0430\u0431\u0440 \u0438 LM studio<\/figcaption><\/div>\n<\/figure>\n<hr\/>\n<h3>\u0412\u044b\u0431\u043e\u0440\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438<\/h3>\n<p>\u0414\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0443\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u0441\u0442\u043d\u0430\u044f \u0432\u044b\u0431\u043e\u0440\u043a\u0430. \u042f \u0432\u0437\u044f\u043b \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e 80 \u0447\u0443\u0436\u0438\u043c \u0441\u0442\u0430\u0442\u044c\u044f\u043c \u0438\u0437 \u0445\u0430\u0431\u0440 \u00ab\u0424\u0440\u0438\u043b\u0430\u043d\u0441\u00bb (\u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0438\u0437 \u0441\u0432\u0435\u0436\u0435\u0439 \u043b\u0435\u043d\u0442\u044b, \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0438\u0437 \u043b\u0443\u0447\u0448\u0438\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439 \u0437\u0430 \u0432\u0441\u0451 \u0432\u0440\u0435\u043c\u044f) \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043a \u043d\u0438\u043c \u0441\u0432\u043e\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u0441 \u043c\u0435\u0442\u043a\u043e\u0439 is_my_article = 1. \u0412\u0441\u0435\u0433\u043e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 habr_dataset.csv \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c 81 \u0437\u0430\u043f\u0438\u0441\u044c.<\/p>\n<p>\u041f\u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0441\u043e\u0431\u0440\u0430\u043b \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/p>\n<ul>\n<li>\n<p>title_length: \u0434\u043b\u0438\u043d\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0432 \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u0445.<\/p>\n<\/li>\n<li>\n<p>word_count: \u043e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043b\u043e\u0432 \u0432 \u0442\u0435\u043a\u0441\u0442\u0435.<\/p>\n<\/li>\n<li>\n<p>images_count: \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439.<\/p>\n<\/li>\n<li>\n<p>links_count: \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0441\u044b\u043b\u043e\u043a \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430.<\/p>\n<\/li>\n<li>\n<p>code_blocks_count: \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0431\u043b\u043e\u043a\u043e\u0432 \u0441 \u043a\u043e\u0434\u043e\u043c.<\/p>\n<\/li>\n<li>\n<p>views: \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b \u0441\u0442\u0430\u0442\u044c\u0438, \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u0438\u0437 \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u0432\u0440\u043e\u0434\u0435 30K \u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0446\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b \u043f\u0435\u0440\u0432\u044b\u0435 3000 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 (text_preview), \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0438\u0445 \u043d\u0430 \u0430\u043d\u0430\u043b\u0438\u0437 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438.<\/p>\n<hr\/>\n<h3>\u041a\u0430\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043e\u0442\u0432\u0435\u0442 81 \u0440\u0430\u0437 \u043f\u043e\u0434\u0440\u044f\u0434<\/h3>\n<p>\u041e\u0434\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 \u0441\u043c\u044b\u0441\u043b \u0442\u0435\u043a\u0441\u0442\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442 ai_scorer.py, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438 \u043d\u0430\u0447\u0430\u043b\u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 LLM. \u041c\u043e\u0434\u0435\u043b\u044c \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u0448\u043a\u0430\u043b\u0435 \u043e\u0442 1 \u0434\u043e 10 \u043f\u043e \u0447\u0435\u0442\u044b\u0440\u0435\u043c \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f\u043c:<\/p>\n<ul>\n<li>\n<p>clickbait_score: \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0435\u0442 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p>hook_score: \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p>pain_score: \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442 \u043b\u0438 \u0442\u0435\u043c\u0430 \u043e\u0441\u0442\u0440\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b (\u0434\u0435\u043d\u044c\u0433\u0438, \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u044b \u0441 \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0430\u043c\u0438, \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u0438 \u0431\u0438\u0440\u0436).<\/p>\n<\/li>\n<li>\n<p>readability_score: \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0433\u043a\u043e \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043a\u0441\u0442.<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u0440\u043e\u0433\u043d\u0430\u0442\u044c \u0434\u0430\u0442\u0430\u0441\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 OpenRouter \u043d\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 google\/gemma-4-26b-a4b-it:free. \u041d\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u0436\u0435 \u0441\u0442\u0430\u0442\u044c\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043d\u0443\u043b \u043e\u0448\u0438\u0431\u043a\u0443 429 (temporarily rate-limited upstream) \u0438\u0437-\u0437\u0430 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0431\u0449\u0435\u0433\u043e \u043f\u0443\u043b\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<\/p>\n<p>\u0422\u043e\u0433\u0434\u0430 \u044f \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a. \u0423 \u043c\u0435\u043d\u044f Mac mini M4, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0447\u0435\u0440\u0435\u0437 <strong>LM Studio<\/strong> \u044f \u043f\u043e\u0434\u043d\u044f\u043b \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u044c\u044e Qwen3 4B 2507 (MLX) \u0432\u0435\u0441\u043e\u043c 2.12 \u0413\u0411.<\/p>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u043e\u0448\u0435\u043b \u0432\u0441\u0435 81 \u0441\u0442\u0430\u0442\u044c\u044e. \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u044f \u043e\u0442\u043a\u0440\u044b\u043b \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b, \u0442\u043e \u0443\u0432\u0438\u0434\u0435\u043b \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<p>\u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0438\u0437 81 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u043e\u0446\u0435\u043d\u043a\u0438: \u041a\u043b\u0438\u043a\u0431\u0435\u0439\u0442=7, \u0425\u0443\u043a=6, \u0411\u043e\u043b\u044c=8, \u0427\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u044c=7.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/ad\/02\/97\/ad029736cc5f48aea91ffa063935e022.png\" alt=\"\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u0430\" title=\"\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u0430\" width=\"989\" height=\"378\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/ad\/02\/97\/ad029736cc5f48aea91ffa063935e022.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/ad\/02\/97\/ad029736cc5f48aea91ffa063935e022.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u0430. \u0412 \u043a\u043e\u043d\u0446\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u044f \u043f\u0440\u0438\u0432\u0435\u043b \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e JSON:<\/p>\n<pre><code>{\"clickbait_score\": 7, \"hook_score\": 6, \"pain_score\": 8, \"readability_score\": 7}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<p>\u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0430 4 \u043c\u0438\u043b\u043b\u0438\u0430\u0440\u0434\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043d\u0435 \u0441\u0442\u0430\u043b\u0430 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u044b. \u041e\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u0447\u0438\u0441\u043b\u0430 \u0438\u0437 \u043c\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u0415\u0441\u043b\u0438 \u043f\u043e\u0434\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0438\u0437 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0446\u0438\u0444\u0440 \u0432 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u043e\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u043d\u0443\u043b\u0435\u0432\u0443\u044e \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0441\u0442\u044c.<\/p>\n<hr\/>\n<h3>Feature Engineering \u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 Random Forest<\/h3>\n<p>\u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u0433\u0430\u043b\u043b\u044e\u0446\u0438\u043d\u0430\u0446\u0438\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u0446\u0435\u043d\u043e\u043a (df[&#8216;clickbait_score&#8217;].nunique() &gt; 1) \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432 \u0438\u0437 \u0442\u0435\u043a\u0441\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p>has_question: \u0435\u0441\u0442\u044c \u043b\u0438 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0437\u043d\u0430\u043a.<\/p>\n<\/li>\n<li>\n<p>has_numbers: \u0435\u0441\u0442\u044c \u043b\u0438 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0446\u0438\u0444\u0440\u044b.<\/p>\n<\/li>\n<li>\n<p>has_triggers: \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043b\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0438 (kwork, fl, upwork, \u0434\u0435\u043d\u044c\u0433, \u0440\u0443\u0431\u043b, \u043e\u0431\u043c\u0430\u043d, \u043e\u0448\u0438\u0431\u043a, \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a \u0438 \u0434\u0440\u0443\u0433\u0438\u0435).<\/p>\n<\/li>\n<li>\n<p>images_per_1000_words: \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e 1000 \u0441\u043b\u043e\u0432 \u0442\u0435\u043a\u0441\u0442\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u043e\u0434 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0435\u0439 (ml_analyzer.py):<\/p>\n<pre><code>import reimport numpy as npimport pandas as pdfrom sklearn.ensemble import RandomForestRegressordf = pd.read_csv('habr_dataset_scored.csv')df['has_question'] = df['title'].apply(lambda x: 1 if '?' in str(x) else 0)df['has_numbers'] = df['title'].apply(lambda x: 1 if bool(re.search(r'\\d', str(x))) else 0)trigger_words = ['kwork', 'fl', 'upwork', 'odesk', '\u0434\u0435\u043d\u044c\u0433', '\u0440\u0443\u0431\u043b', '$', '\u043e\u0431\u043c\u0430\u043d', '\u043a\u0438\u0434\u0430\u043b', '\u043e\u0448\u0438\u0431\u043a', '\u0443\u0441\u0442\u0430\u043b', '\u043a\u043b\u0430\u0434\u0431\u0438\u0449\u0435', '\u0436\u0438\u043b\u0430', '\u0431\u0438\u0437\u043d\u0435\u0441', '\u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a']df['has_triggers'] = df['title'].apply(lambda x: 1 if any(w in str(x).lower() for w in trigger_words) else 0)df['images_per_1000_words'] = (df['images_count'] \/ (df['word_count'] + 1)) * 1000features = [    'title_length', 'word_count', 'images_count', 'code_blocks_count',    'links_count', 'has_question', 'has_numbers', 'has_triggers', 'images_per_1000_words']X = df[features].fillna(0)y = np.log1p(df['views']) # \u041b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b \u0434\u043b\u044f \u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0432\u044b\u0431\u0440\u043e\u0441\u043e\u0432model = RandomForestRegressor(n_estimators=200, random_state=42)model.fit(X, y)importances = pd.DataFrame({    '\u041f\u0440\u0438\u0437\u043d\u0430\u043a': features,    '\u0412\u043b\u0438\u044f\u043d\u0438\u0435 (%)': (model.feature_importances_ * 100).round(1)}).sort_values(by='\u0412\u043b\u0438\u044f\u043d\u0438\u0435 (%)', ascending=False)print(importances.to_string(index=False))<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u0432\u0435\u043b \u0432\u0435\u0441\u0430 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432 \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441 \u0422\u041e\u041f-20% \u0441\u0430\u043c\u044b\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439 \u0432\u044b\u0431\u043e\u0440\u043a\u0438 (\u043f\u043e\u0440\u043e\u0433 \u0432\u0445\u043e\u0434\u0430 \u0442\u0443\u0434\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043b 148 000 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432) \u0438 \u0441\u043e \u0441\u043b\u0430\u0431\u044b\u043c\u0438 \u0441\u0442\u0430\u0442\u044c\u044f\u043c\u0438 (\u043d\u0438\u0436\u043d\u0438\u0435 40% \u0432\u044b\u0431\u043e\u0440\u043a\u0438, \u0433\u0434\u0435 \u0441\u0440\u0435\u0434\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b \u043e\u043a\u043e\u043b\u043e 7 565):<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/6d\/8c\/c6\/6d8cc69666978e192c47448cc01b5057.png\" alt=\"\u0427\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b \u043d\u0430 \u0445\u0430\u0431\u0440\u0435?\" title=\"\u0427\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b \u043d\u0430 \u0445\u0430\u0431\u0440\u0435?\" width=\"529\" height=\"243\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/6d\/8c\/c6\/6d8cc69666978e192c47448cc01b5057.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/6d\/8c\/c6\/6d8cc69666978e192c47448cc01b5057.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0427\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b \u043d\u0430 \u0445\u0430\u0431\u0440\u0435?<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/25\/9e\/0f\/259e0f0900c1ed486b12f53962a0c267.png\" width=\"732\" height=\"162\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/25\/9e\/0f\/259e0f0900c1ed486b12f53962a0c267.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/25\/9e\/0f\/259e0f0900c1ed486b12f53962a0c267.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u044d\u0442\u0438 \u0446\u0438\u0444\u0440\u044b:<\/p>\n<ol>\n<li>\n<p><strong>\u0414\u043b\u0438\u043d\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 (title_length) \u0434\u0430\u0435\u0442 34.5% \u0432\u043b\u0438\u044f\u043d\u0438\u044f.<\/strong> \u042d\u0442\u043e \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0439 \u0444\u0430\u043a\u0442\u043e\u0440. \u0423 \u0441\u043b\u0430\u0431\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u0441\u0440\u0435\u0434\u043d\u044f\u044f \u0434\u043b\u0438\u043d\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 61.9 \u0441\u0438\u043c\u0432\u043e\u043b\u0430. \u0423 \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u044b\u043b\u043e 71 \u0441\u0438\u043c\u0432\u043e\u043b (\u00abKwork \u2014 \u043a\u043b\u0430\u0434\u0431\u0438\u0449\u0435 \u0444\u0440\u0438\u043b\u0430\u043d\u0441\u0435\u0440\u043e\u0432 \u0438\u043b\u0438 \u0437\u043e\u043b\u043e\u0442\u0430\u044f \u0436\u0438\u043b\u0430? \u0414\u0432\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043e\u0434\u043d\u043e\u0439 \u043c\u043e\u043d\u0435\u0442\u044b\u00bb). \u0410 \u0443 \u0422\u041e\u041f-20% \u0441\u0430\u043c\u044b\u0445 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u0441\u0440\u0435\u0434\u043d\u044f\u044f \u0434\u043b\u0438\u043d\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0440\u0430\u0432\u043d\u0430 <strong>46.9 \u0441\u0438\u043c\u0432\u043e\u043b\u0430<\/strong>. \u041a\u043e\u0440\u043e\u0442\u043a\u0438\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u043b\u0443\u0447\u0448\u0435 \u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u0432 \u043b\u0435\u043d\u0442\u0435. \u0415\u0441\u043b\u0438 \u0443\u0431\u0440\u0430\u0442\u044c \u0438\u0437 \u043c\u043e\u0435\u0433\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0432\u0442\u043e\u0440\u0443\u044e \u0447\u0430\u0441\u0442\u044c (\u00ab\u0414\u0432\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043e\u0434\u043d\u043e\u0439 \u043c\u043e\u043d\u0435\u0442\u044b\u00bb), \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0440\u043e\u0432\u043d\u043e 46 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0431\u044a\u0435\u043c \u0441\u0442\u0430\u0442\u044c\u0438 (word_count) \u0434\u0430\u0435\u0442 26.3% \u0432\u043b\u0438\u044f\u043d\u0438\u044f.<\/strong> \u0412 \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u044b\u043b\u043e \u0432\u0441\u0435\u0433\u043e 766 \u0441\u043b\u043e\u0432. \u0412 \u0441\u043b\u0430\u0431\u044b\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c 1254.7 \u0441\u043b\u043e\u0432\u0430, \u0430 \u0432 \u0422\u041e\u041f-20% \u0441\u0440\u0435\u0434\u043d\u0438\u0439 \u043e\u0431\u044a\u0435\u043c \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 <strong>1773.8 \u0441\u043b\u043e\u0432\u0430<\/strong>. \u041e\u0431\u044a\u0435\u043c\u043d\u044b\u0435 \u043b\u043e\u043d\u0433\u0440\u0438\u0434\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0447\u0442\u0435\u043d\u0438\u044f \u0438 \u043b\u0443\u0447\u0448\u0435 \u0440\u0430\u043d\u0436\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u043f\u043e\u0438\u0441\u043a\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0441\u044b\u043b\u043a\u0438 \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 (links_count, images_per_1000_words, images_count) \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u043e \u0434\u0430\u044e\u0442 33.7% \u0432\u043b\u0438\u044f\u043d\u0438\u044f.<\/strong> \u0412 \u0442\u043e\u043f\u043e\u0432\u044b\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f\u0445 \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c 4.2 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0438 4.8 \u0441\u0441\u044b\u043b\u043a\u0438. \u0412 \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u044b\u043b\u0430 \u0432\u0441\u0435\u0433\u043e 1 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u043d\u0430 \u043e\u0431\u043b\u043e\u0436\u043a\u0435 \u0438 0 \u0441\u0441\u044b\u043b\u043e\u043a.<\/p>\n<\/li>\n<li>\n<p><strong>\u0411\u043b\u043e\u043a\u0438 \u043a\u043e\u0434\u0430 (code_blocks_count) \u0432\u043b\u0438\u044f\u044e\u0442 \u0432\u0441\u0435\u0433\u043e \u043d\u0430 0.3%.<\/strong> \u0414\u043b\u044f \u0445\u0430\u0431\u0430 \u043f\u0440\u043e \u0444\u0440\u0438\u043b\u0430\u043d\u0441 \u044d\u0442\u043e \u043b\u043e\u0433\u0438\u0447\u043d\u043e: \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u044f \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0442\u0443\u0434\u0430 \u0437\u0430 \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u043c \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0439 \u0438 \u043b\u0438\u0447\u043d\u044b\u043c \u043e\u043f\u044b\u0442\u043e\u043c, \u0430 \u043d\u0435 \u0437\u0430 \u0441\u043d\u0438\u043f\u043f\u0435\u0442\u0430\u043c\u0438 \u043a\u043e\u0434\u0430.<\/p>\n<\/li>\n<\/ol>\n<hr\/>\n<h3>\u041e\u0448\u0438\u0431\u043a\u0430 \u0441 \u0443\u0442\u0435\u0447\u043a\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f<\/h3>\n<p>\u041d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u044f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 predictor.py, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0441\u0442\u044c \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0434\u043e \u0435\u0451 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438. \u042f \u0437\u0430\u0434\u0430\u043b \u043f\u043e\u0440\u043e\u0433 \u00ab\u0445\u0438\u0442\u0430\u00bb \u0432 25 000 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 \u0438 \u043e\u0431\u0443\u0447\u0438\u043b \u0434\u0432\u0435 \u043c\u043e\u0434\u0435\u043b\u0438: RandomForestClassifier (\u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u0438\u0442\u044c 25\u041a \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445) \u0438 RandomForestRegressor (\u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432).<\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u044f \u043f\u0440\u043e\u0433\u043d\u0430\u043b \u0447\u0435\u0440\u0435\u0437 \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430:<\/p>\n<ol>\n<li>\n<p>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 (\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 71 \u0441\u0438\u043c\u0432\u043e\u043b, 766 \u0441\u043b\u043e\u0432, 1 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430, 0 \u0441\u0441\u044b\u043b\u043e\u043a).<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u043e \u043c\u0435\u0442\u0440\u0438\u043a\u0430\u043c \u0442\u043e\u043f\u0430 (\u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441 \u0446\u0438\u0444\u0440\u043e\u0439, 1750 \u0441\u043b\u043e\u0432, 5 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a, 4 \u0441\u0441\u044b\u043b\u043a\u0438).<\/p>\n<\/li>\n<\/ol>\n<p>\u041d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u043f\u0435\u0440\u0432\u044b\u0439 (\u0441\u044b\u0440\u043e\u0439) \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u0443\u0441\u043f\u0435\u0445\u0430 \u0432\u044b\u0448\u0435, \u0447\u0435\u043c \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u0432\u0442\u043e\u0440\u043e\u0439.<\/p>\n<p>\u041f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u043a\u043e\u0434\u0430 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u044f \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043b \u0434\u0432\u0435 \u043e\u0448\u0438\u0431\u043a\u0438:<\/p>\n<ol>\n<li>\n<p><strong>Data Leakage (\u0443\u0442\u0435\u0447\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445).<\/strong> \u041c\u043e\u044f \u0441\u0442\u0430\u0442\u044c\u044f (\u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443\u0436\u0435 \u0431\u044b\u043b\u043e 30 000 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432, \u0447\u0442\u043e \u0432\u044b\u0448\u0435 \u043f\u043e\u0440\u043e\u0433\u0430 \u0432 25 000) \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0435\u0439 \u0432\u044b\u0431\u043e\u0440\u043a\u0438. \u0414\u0435\u0440\u0435\u0432\u044c\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0431\u0435\u0437 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0433\u043b\u0443\u0431\u0438\u043d\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u043b\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e (71 \u0441\u0438\u043c\u0432\u043e\u043b + 766 \u0441\u043b\u043e\u0432 = \u0431\u043e\u043b\u044c\u0448\u0435 25\u041a \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432). \u041a\u043e\u0433\u0434\u0430 \u044f \u043f\u0435\u0440\u0435\u0434\u0430\u043b \u044d\u0442\u0438 \u0436\u0435 \u0447\u0438\u0441\u043b\u0430 \u043d\u0430 \u0442\u0435\u0441\u0442, \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0432\u044b\u0434\u0430\u043b \u0437\u0430\u0432\u044b\u0448\u0435\u043d\u043d\u0443\u044e \u043e\u0446\u0435\u043d\u043a\u0443, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443\u0436\u0435 \u0432\u0438\u0434\u0435\u043b \u044d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u0428\u0442\u0440\u0430\u0444 \u0437\u0430 \u0446\u0438\u0444\u0440\u044b \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435.<\/strong> \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0446\u0438\u0444\u0440\u0443. \u0410 \u043f\u043e \u043d\u0430\u0448\u0435\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0432 \u0441\u043b\u0430\u0431\u044b\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u0446\u0438\u0444\u0440\u044b \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u0438\u0441\u044c \u0432 \u0442\u0440\u0438 \u0440\u0430\u0437\u0430 \u0447\u0430\u0449\u0435 (0.3), \u0447\u0435\u043c \u0432 \u0442\u043e\u043f\u043e\u0432\u044b\u0445 (0.1), \u0438\u0437-\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0445 \u043a\u0435\u0439\u0441\u043e\u0432 \u0432 \u0441\u0432\u0435\u0436\u0435\u0439 \u043b\u0435\u043d\u0442\u0435.<\/p>\n<\/li>\n<\/ol>\n<p>\u042f \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043b \u0441\u043a\u0440\u0438\u043f\u0442: \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u043b \u0441\u0432\u043e\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u0438\u0437 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0435\u0439 \u0432\u044b\u0431\u043e\u0440\u043a\u0438 (train_df = df[df[&#8216;is_my_article&#8217;] == 0]) \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u043b \u0433\u043b\u0443\u0431\u0438\u043d\u0443 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c max_depth=4, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0441\u043a\u0430\u043b\u0430 \u043e\u0431\u0449\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u0430 \u043d\u0435 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0447\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430:<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/6f\/74\/11\/6f7411e50e069225a1fc57e338eb02e6.png\" width=\"780\" height=\"196\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/6f\/74\/11\/6f7411e50e069225a1fc57e338eb02e6.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/6f\/74\/11\/6f7411e50e069225a1fc57e338eb02e6.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0441\u0442\u0430\u043b\u0438 \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c\u0438. \u041c\u043e\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f (\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u0430\u043d\u044c\u0448\u0435 \u043d\u0435 \u0432\u0438\u0434\u0435\u043b\u0430) \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u0441\u0447\u0435\u0442 \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430 <strong>26.0%<\/strong> \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0431\u0440\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 25 \u0442\u044b\u0441\u044f\u0447 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 \u0438 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u0432 <strong>14 795 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432<\/strong>.<br \/>\u0410 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 (\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 46 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, 1800 \u0441\u043b\u043e\u0432, 4 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438, 5 \u0441\u0441\u044b\u043b\u043e\u043a) \u043f\u043e\u043b\u0443\u0447\u0438\u043b <strong>41.0%<\/strong> \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0438 \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u0432 <strong>34 919 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432<\/strong>.<\/p>\n<hr\/>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043b\u0430 14 795 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432, \u0430 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0448\u043b\u043e 30 000?<\/h3>\n<p>\u0417\u0434\u0435\u0441\u044c \u0432\u0438\u0434\u043d\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u00ab\u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0443\u00bb \u0442\u0435\u043a\u0441\u0442\u0430: \u0434\u043b\u0438\u043d\u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430, \u0447\u0438\u0441\u043b\u043e \u0441\u043b\u043e\u0432, \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0438 \u0441\u0441\u044b\u043b\u043e\u043a. \u041e\u043d \u043d\u0435 \u0437\u043d\u0430\u043b, \u043e \u0447\u0435\u043c \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0441\u0442\u0430\u0442\u044c\u044f.<\/p>\n<p>\u0414\u043b\u044f \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043d\u0430 766 \u0441\u043b\u043e\u0432 \u0441 \u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u043e\u0439 \u0438 \u0434\u043b\u0438\u043d\u043d\u044b\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c 14.8 \u0442\u044b\u0441\u044f\u0447\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 \u2014 \u044d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0440\u0435\u0434\u043d\u0438\u0439 \u043f\u043e\u0442\u043e\u043b\u043e\u043a. \u0422\u043e, \u0447\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u044f \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u043e\u0431\u0440\u0430\u043b\u0430 30 000 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 (\u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u0432\u044b\u0448\u0435 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0430), \u0434\u0430\u043b\u0430 \u0441\u0430\u043c\u0430 \u0442\u0435\u043c\u0430 \u0431\u0438\u0440\u0436\u0438 Kwork \u0438 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<p>\u041d\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u044b\u0432\u043e\u0434: \u0435\u0441\u043b\u0438 \u043e\u0441\u0442\u0440\u0430\u044f \u0442\u0435\u043c\u0430 \u0441\u0430\u043c\u0430 \u043f\u043e \u0441\u0435\u0431\u0435 \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u0442 \u043e\u0445\u0432\u0430\u0442\u044b \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430, \u0442\u043e \u043f\u0440\u0438 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0435 \u044d\u0442\u043e\u0433\u043e \u0436\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u0432 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u043b\u043e\u043d\u0433\u0440\u0438\u0434 (\u043d\u0430 1800 \u0441\u043b\u043e\u0432 \u0441 4 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438 \u0438 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c) \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043f\u043b\u0430\u043d\u043a\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u0431\u044b \u0443\u0436\u0435 \u043e\u043a\u043e\u043b\u043e 35 000 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432, \u0430 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u043e\u0445\u0432\u0430\u0442 \u043c\u043e\u0433 \u043f\u0435\u0440\u0435\u0432\u0430\u043b\u0438\u0442\u044c \u0437\u0430 60 000.<\/p>\n<hr\/>\n<h3>\u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a\u043e\u0432<\/h3>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u0443\u0431\u0440\u0430\u043b \u0438\u0437 predictor.py \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0438 \u0438 \u0441\u0434\u0435\u043b\u0430\u043b \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u0441 \u0440\u0443\u0447\u043d\u044b\u043c \u0432\u0432\u043e\u0434\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 input().<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e \u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0440\u0430\u0441\u0447\u0435\u0442 \u043c\u0435\u0436\u043a\u0432\u0430\u0440\u0442\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0430\u0445\u0430 (IQR \u2014 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043c\u0435\u0436\u0434\u0443 25-\u043c \u0438 75-\u043c \u043f\u0435\u0440\u0446\u0435\u043d\u0442\u0438\u043b\u044f\u043c\u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0432\u0441\u0435\u0445 200 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 RandomForestRegressor). \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0438\u0434\u0435\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0440\u0438\u0434\u043e\u0440 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 \u0434\u043b\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0441\u0442\u0430\u0442\u044c\u0438:<\/p>\n<pre><code>import numpy as npimport pandas as pdfrom sklearn.ensemble import RandomForestRegressor, RandomForestClassifierdef build_models(csv_path='habr_dataset_scored.csv'):    df = pd.read_csv(csv_path)    train_df = df[df['is_my_article'] == 0].copy()    features = ['title_length', 'word_count', 'images_count', 'links_count', 'images_per_1000_words']    train_df['images_per_1000_words'] = (train_df['images_count'] \/ (train_df['word_count'] + 1)) * 1000    X_train = train_df[features].fillna(0)    y_views = np.log1p(train_df['views'])    y_hit = (train_df['views'] &gt;= 25000).astype(int)    reg = RandomForestRegressor(n_estimators=200, max_depth=4, random_state=42).fit(X_train, y_views)    clf = RandomForestClassifier(n_estimators=200, max_depth=4, random_state=42).fit(X_train, y_hit)    return reg, clf, features<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438:<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/3c\/9a\/eb\/3c9aebd04472f33c3f6176c7a9f0f0db.png\" width=\"569\" height=\"286\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/3c\/9a\/eb\/3c9aebd04472f33c3f6176c7a9f0f0db.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/3c\/9a\/eb\/3c9aebd04472f33c3f6176c7a9f0f0db.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<hr\/>\n<h3>\u0412\u044b\u0432\u043e\u0434\u044b \u043f\u043e \u0446\u0438\u0444\u0440\u0430\u043c<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e \u043d\u0435\u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0438 \u043a\u0430\u0440\u044c\u0435\u0440\u043d\u044b\u043c \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f\u043c:<\/p>\n<ol>\n<li>\n<p><strong>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0432 \u0440\u0430\u0439\u043e\u043d\u0435 45\u201350 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.<\/strong> \u0414\u043b\u0438\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0438\u0437 \u0434\u0432\u0443\u0445 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441\u043d\u0438\u0436\u0430\u044e\u0442 \u043a\u043b\u0438\u043a\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432 \u043b\u0435\u043d\u0442\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0431\u044a\u0435\u043c \u0442\u0435\u043a\u0441\u0442\u0430 \u043e\u0442 1500 \u0434\u043e 1800 \u0441\u043b\u043e\u0432.<\/strong> \u041a\u043e\u0440\u043e\u0442\u043a\u0438\u0435 \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u0434\u043e 800 \u0441\u043b\u043e\u0432 \u0442\u0435\u0440\u044f\u044e\u0442 \u0432 \u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0438 \u0438 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u043e\u043c \u0442\u0440\u0430\u0444\u0438\u043a\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u0438\u043d\u0438\u043c\u0443\u043c 4 \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 4\u20135 \u0441\u0441\u044b\u043b\u043e\u043a.<\/strong> \u0413\u0440\u0430\u0444\u0438\u043a\u0430 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u043e\u0442\u043d\u043e \u0442\u0435\u043a\u0441\u0442\u0430 (\u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u2014 \u043e\u043a\u043e\u043b\u043e 2.5 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u043d\u0430 1000 \u0441\u043b\u043e\u0432).<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0441\u043b\u0435 LLM.<\/strong> \u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0436\u0435\u0441\u0442\u043a\u043e\u0439 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u043e\u0442\u0432\u0435\u0442\u043e\u0432, \u0438\u043d\u0430\u0447\u0435 \u043e\u043d\u0438 \u043b\u0435\u0433\u043a\u043e \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043c\u043f\u0442\u0430.<\/p>\n<\/li>\n<\/ol>\n<p>\u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0443\u0436\u0435 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0434\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u0442 \u043b\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 \u0441 \u0440\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u043e\u043c \u043c\u043e\u0434\u0435\u043b\u0438.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1104972\/\">https:\/\/habr.com\/ru\/articles\/1104972\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0427\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434 \u0443 \u043c\u0435\u043d\u044f \u0432\u044b\u0448\u043b\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u043e \u0431\u0438\u0440\u0436\u0443 Kwork (\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0441\u0442\u0430\u0442\u044c\u044e). \u041e\u043d\u0430 \u043d\u0430\u0431\u0440\u0430\u043b\u0430 30 000 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0435\u043f\u043b\u043e\u0445\u043e\u0439, \u043d\u043e \u0432 \u0442\u043e\u043f\u0435 \u0442\u043e\u0433\u043e \u0436\u0435 \u0445\u0430\u0431\u0440\u0430 \u043b\u0435\u0436\u0430\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u043e 150 000 \u0438 350 000 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432. \u041c\u043d\u0435 \u0441\u0442\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u0434\u043d\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442 \u043f\u0430\u0440\u0443 \u0442\u044b\u0441\u044f\u0447 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432, \u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u0447\u0438\u0442\u0430\u044e\u0442 \u0441\u043e\u0442\u043d\u044f\u043c\u0438 \u0442\u044b\u0441\u044f\u0447.\u042f \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u044d\u0442\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Python \u0438 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f. \u041f\u043b\u0430\u043d \u0431\u044b\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439: \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u043e \u0441\u0442\u0430\u0442\u044c\u044f\u043c \u0438\u0437 \u043c\u043e\u0435\u0433\u043e \u0445\u0430\u0431\u0430, \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u044f\u0437\u044b\u043a\u043e\u0432\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432\u0441\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0432 Random Forest \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b.\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u044f \u0443\u043f\u0435\u0440\u0441\u044f \u0432 \u043b\u0438\u043c\u0438\u0442\u044b \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0433\u043e API, \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c \u0432 LM Studio \u0441\u0445\u0438\u0442\u0440\u0438\u043b\u0430 \u043d\u0430 \u043f\u0440\u043e\u043c\u043f\u0442\u0435, \u0430 \u0441\u0430\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u0434\u0430\u043b \u0430\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u0438\u0437-\u0437\u0430 \u0443\u0442\u0435\u0447\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. \u041d\u0438\u0436\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u044f \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u043b \u0438 \u043a\u0430\u043a\u0438\u0435 \u0446\u0438\u0444\u0440\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0432 \u0438\u0442\u043e\u0433\u0435.\u0425\u0430\u0431\u0440 \u0438 LM studio\u0412\u044b\u0431\u043e\u0440\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438\u0414\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0443\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u0441\u0442\u043d\u0430\u044f \u0432\u044b\u0431\u043e\u0440\u043a\u0430. \u042f \u0432\u0437\u044f\u043b \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e 80 \u0447\u0443\u0436\u0438\u043c \u0441\u0442\u0430\u0442\u044c\u044f\u043c \u0438\u0437 \u0445\u0430\u0431\u0440 \u00ab\u0424\u0440\u0438\u043b\u0430\u043d\u0441\u00bb (\u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0438\u0437 \u0441\u0432\u0435\u0436\u0435\u0439 \u043b\u0435\u043d\u0442\u044b, \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0438\u0437 \u043b\u0443\u0447\u0448\u0438\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439 \u0437\u0430 \u0432\u0441\u0451 \u0432\u0440\u0435\u043c\u044f) \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043a \u043d\u0438\u043c \u0441\u0432\u043e\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u0441 \u043c\u0435\u0442\u043a\u043e\u0439 is_my_article = 1. \u0412\u0441\u0435\u0433\u043e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 habr_dataset.csv \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c 81 \u0437\u0430\u043f\u0438\u0441\u044c.\u041f\u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0441\u043e\u0431\u0440\u0430\u043b \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:title_length: \u0434\u043b\u0438\u043d\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0432 \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u0445.word_count: \u043e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043b\u043e\u0432 \u0432 \u0442\u0435\u043a\u0441\u0442\u0435.images_count: \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439.links_count: \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0441\u044b\u043b\u043e\u043a \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430.code_blocks_count: \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0431\u043b\u043e\u043a\u043e\u0432 \u0441 \u043a\u043e\u0434\u043e\u043c.views: \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b \u0441\u0442\u0430\u0442\u044c\u0438, \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u0438\u0437 \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u0432\u0440\u043e\u0434\u0435 30K \u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0446\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430.\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b \u043f\u0435\u0440\u0432\u044b\u0435 3000 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 (text_preview), \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0438\u0445 \u043d\u0430 \u0430\u043d\u0430\u043b\u0438\u0437 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438.\u041a\u0430\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043e\u0442\u0432\u0435\u0442 81 \u0440\u0430\u0437 \u043f\u043e\u0434\u0440\u044f\u0434\u041e\u0434\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 \u0441\u043c\u044b\u0441\u043b \u0442\u0435\u043a\u0441\u0442\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442 ai_scorer.py, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438 \u043d\u0430\u0447\u0430\u043b\u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 LLM. \u041c\u043e\u0434\u0435\u043b\u044c \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u0448\u043a\u0430\u043b\u0435 \u043e\u0442 1 \u0434\u043e 10 \u043f\u043e \u0447\u0435\u0442\u044b\u0440\u0435\u043c \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f\u043c:clickbait_score: \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0435\u0442 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.hook_score: \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435.pain_score: \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442 \u043b\u0438 \u0442\u0435\u043c\u0430 \u043e\u0441\u0442\u0440\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b (\u0434\u0435\u043d\u044c\u0433\u0438, \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u044b \u0441 \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0430\u043c\u0438, \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u0438 \u0431\u0438\u0440\u0436).readability_score: \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0433\u043a\u043e \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043a\u0441\u0442.\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u0440\u043e\u0433\u043d\u0430\u0442\u044c \u0434\u0430\u0442\u0430\u0441\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 OpenRouter \u043d\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 google\/gemma-4-26b-a4b-it:free. \u041d\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u0436\u0435 \u0441\u0442\u0430\u0442\u044c\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043d\u0443\u043b \u043e\u0448\u0438\u0431\u043a\u0443 429 (temporarily rate-limited upstream) \u0438\u0437-\u0437\u0430 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0431\u0449\u0435\u0433\u043e \u043f\u0443\u043b\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.\u0422\u043e\u0433\u0434\u0430 \u044f \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a. \u0423 \u043c\u0435\u043d\u044f Mac mini M4, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0447\u0435\u0440\u0435\u0437 LM Studio \u044f \u043f\u043e\u0434\u043d\u044f\u043b \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u043a\u0432\u0430\u043d\u0442\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u044c\u044e Qwen3 4B 2507 (MLX) \u0432\u0435\u0441\u043e\u043c 2.12 \u0413\u0411.\u0421\u043a\u0440\u0438\u043f\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u043e\u0448\u0435\u043b \u0432\u0441\u0435 81 \u0441\u0442\u0430\u0442\u044c\u044e. \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u044f \u043e\u0442\u043a\u0440\u044b\u043b \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b, \u0442\u043e \u0443\u0432\u0438\u0434\u0435\u043b \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:\u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0438\u0437 81 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u043e\u0446\u0435\u043d\u043a\u0438: \u041a\u043b\u0438\u043a\u0431\u0435\u0439\u0442=7, \u0425\u0443\u043a=6, \u0411\u043e\u043b\u044c=8, \u0427\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u044c=7.\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u0430\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0435 \u043f\u0440\u043e\u043c\u043f\u0442\u0430. \u0412 \u043a\u043e\u043d\u0446\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u044f \u043f\u0440\u0438\u0432\u0435\u043b \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e JSON:{&#171;clickbait_score&#187;: 7, &#171;hook_score&#187;: 6, &#171;pain_score&#187;: 8, &#171;readability_score&#187;: 7}\u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0430 4 \u043c\u0438\u043b\u043b\u0438\u0430\u0440\u0434\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043d\u0435 \u0441\u0442\u0430\u043b\u0430 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u044b. \u041e\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u0447\u0438\u0441\u043b\u0430 \u0438\u0437 \u043c\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u0415\u0441\u043b\u0438 \u043f\u043e\u0434\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0438\u0437 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0446\u0438\u0444\u0440 \u0432 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u043e\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u043d\u0443\u043b\u0435\u0432\u0443\u044e \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0441\u0442\u044c.Feature Engineering \u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 Random Forest\u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u0433\u0430\u043b\u043b\u044e\u0446\u0438\u043d\u0430\u0446\u0438\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u0446\u0435\u043d\u043e\u043a (df[&#8216;clickbait_score&#8217;].nunique() &gt; 1) \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432 \u0438\u0437 \u0442\u0435\u043a\u0441\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f:has_question: \u0435\u0441\u0442\u044c \u043b\u0438 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0437\u043d\u0430\u043a.has_numbers: \u0435\u0441\u0442\u044c \u043b\u0438 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0446\u0438\u0444\u0440\u044b.has_triggers: \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043b\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0438 (kwork, fl, upwork, \u0434\u0435\u043d\u044c\u0433, \u0440\u0443\u0431\u043b, \u043e\u0431\u043c\u0430\u043d, \u043e\u0448\u0438\u0431\u043a, \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a \u0438 \u0434\u0440\u0443\u0433\u0438\u0435).images_per_1000_words: \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e 1000 \u0441\u043b\u043e\u0432 \u0442\u0435\u043a\u0441\u0442\u0430.\u041a\u043e\u0434 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0435\u0439 (ml_analyzer.py):import reimport numpy as npimport pandas as pdfrom sklearn.ensemble import RandomForestRegressordf = pd.read_csv(&#8216;habr_dataset_scored.csv&#8217;)df[&#8216;has_question&#8217;] = df[&#8216;title&#8217;].apply(lambda x: 1 if &#8216;?&#8217; in str(x) else 0)df[&#8216;has_numbers&#8217;] = df[&#8216;title&#8217;].apply(lambda x: 1 if bool(re.search(r&#8217;\\d&#8217;, str(x))) else 0)trigger_words = [&#8216;kwork&#8217;, &#8216;fl&#8217;, &#8216;upwork&#8217;, &#8216;odesk&#8217;, &#8216;\u0434\u0435\u043d\u044c\u0433&#8217;, &#8216;\u0440\u0443\u0431\u043b&#8217;, &#8216;$&#8217;, &#8216;\u043e\u0431\u043c\u0430\u043d&#8217;, &#8216;\u043a\u0438\u0434\u0430\u043b&#8217;, &#8216;\u043e\u0448\u0438\u0431\u043a&#8217;, &#8216;\u0443\u0441\u0442\u0430\u043b&#8217;, &#8216;\u043a\u043b\u0430\u0434\u0431\u0438\u0449\u0435&#8217;, &#8216;\u0436\u0438\u043b\u0430&#8217;, &#8216;\u0431\u0438\u0437\u043d\u0435\u0441&#8217;, &#8216;\u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a&#8217;]df[&#8216;has_triggers&#8217;] = df[&#8216;title&#8217;].apply(lambda x: 1 if any(w in str(x).lower() for w in trigger_words) else 0)df[&#8216;images_per_1000_words&#8217;] = (df[&#8216;images_count&#8217;] \/ (df[&#8216;word_count&#8217;] + 1)) * 1000features = [    &#8216;title_length&#8217;, &#8216;word_count&#8217;, &#8216;images_count&#8217;, &#8216;code_blocks_count&#8217;,    &#8216;links_count&#8217;, &#8216;has_question&#8217;, &#8216;has_numbers&#8217;, &#8216;has_triggers&#8217;, &#8216;images_per_1000_words&#8217;]X = df[features].fillna(0)y = np.log1p(df[&#8216;views&#8217;]) # \u041b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b \u0434\u043b\u044f \u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0432\u044b\u0431\u0440\u043e\u0441\u043e\u0432model = RandomForestRegressor(n_estimators=200, random_state=42)model.fit(X, y)importances = pd.DataFrame({    &#8216;\u041f\u0440\u0438\u0437\u043d\u0430\u043a&#8217;: features,    &#8216;\u0412\u043b\u0438\u044f\u043d\u0438\u0435 (%)&#8217;: (model.feature_importances_ * 100).round(1)}).sort_values(by=&#8217;\u0412\u043b\u0438\u044f\u043d\u0438\u0435 (%)&#8217;, ascending=False)print(importances.to_string(index=False))\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u0432\u0435\u043b \u0432\u0435\u0441\u0430 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432 \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441 \u0422\u041e\u041f-20% \u0441\u0430\u043c\u044b\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439 \u0432\u044b\u0431\u043e\u0440\u043a\u0438 (\u043f\u043e\u0440\u043e\u0433 \u0432\u0445\u043e\u0434\u0430 \u0442\u0443\u0434\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043b 148 000 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432) \u0438 \u0441\u043e \u0441\u043b\u0430\u0431\u044b\u043c\u0438 \u0441\u0442\u0430\u0442\u044c\u044f\u043c\u0438 (\u043d\u0438\u0436\u043d\u0438\u0435 40% \u0432\u044b\u0431\u043e\u0440\u043a\u0438, \u0433\u0434\u0435 \u0441\u0440\u0435\u0434\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b \u043e\u043a\u043e\u043b\u043e 7 565):\u0427\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b \u043d\u0430 \u0445\u0430\u0431\u0440\u0435?\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u044d\u0442\u0438 \u0446\u0438\u0444\u0440\u044b:\u0414\u043b\u0438\u043d\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 (title_length) \u0434\u0430\u0435\u0442 34.5% \u0432\u043b\u0438\u044f\u043d\u0438\u044f. \u042d\u0442\u043e \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0439 \u0444\u0430\u043a\u0442\u043e\u0440. \u0423 \u0441\u043b\u0430\u0431\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u0441\u0440\u0435\u0434\u043d\u044f\u044f \u0434\u043b\u0438\u043d\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 61.9 \u0441\u0438\u043c\u0432\u043e\u043b\u0430. \u0423 \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u044b\u043b\u043e 71 \u0441\u0438\u043c\u0432\u043e\u043b (\u00abKwork \u2014 \u043a\u043b\u0430\u0434\u0431\u0438\u0449\u0435 \u0444\u0440\u0438\u043b\u0430\u043d\u0441\u0435\u0440\u043e\u0432 \u0438\u043b\u0438 \u0437\u043e\u043b\u043e\u0442\u0430\u044f \u0436\u0438\u043b\u0430? \u0414\u0432\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043e\u0434\u043d\u043e\u0439 \u043c\u043e\u043d\u0435\u0442\u044b\u00bb). \u0410 \u0443 \u0422\u041e\u041f-20% \u0441\u0430\u043c\u044b\u0445 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u0441\u0440\u0435\u0434\u043d\u044f\u044f \u0434\u043b\u0438\u043d\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0440\u0430\u0432\u043d\u0430 46.9 \u0441\u0438\u043c\u0432\u043e\u043b\u0430. \u041a\u043e\u0440\u043e\u0442\u043a\u0438\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u043b\u0443\u0447\u0448\u0435 \u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u0432 \u043b\u0435\u043d\u0442\u0435. \u0415\u0441\u043b\u0438 \u0443\u0431\u0440\u0430\u0442\u044c \u0438\u0437 \u043c\u043e\u0435\u0433\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0432\u0442\u043e\u0440\u0443\u044e \u0447\u0430\u0441\u0442\u044c (\u00ab\u0414\u0432\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043e\u0434\u043d\u043e\u0439 \u043c\u043e\u043d\u0435\u0442\u044b\u00bb), \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0440\u043e\u0432\u043d\u043e 46 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.\u041e\u0431\u044a\u0435\u043c \u0441\u0442\u0430\u0442\u044c\u0438 (word_count) \u0434\u0430\u0435\u0442 26.3% \u0432\u043b\u0438\u044f\u043d\u0438\u044f. \u0412 \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u044b\u043b\u043e \u0432\u0441\u0435\u0433\u043e 766 \u0441\u043b\u043e\u0432. \u0412 \u0441\u043b\u0430\u0431\u044b\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c 1254.7 \u0441\u043b\u043e\u0432\u0430, \u0430 \u0432 \u0422\u041e\u041f-20% \u0441\u0440\u0435\u0434\u043d\u0438\u0439 \u043e\u0431\u044a\u0435\u043c \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 1773.8 \u0441\u043b\u043e\u0432\u0430. \u041e\u0431\u044a\u0435\u043c\u043d\u044b\u0435 \u043b\u043e\u043d\u0433\u0440\u0438\u0434\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0447\u0442\u0435\u043d\u0438\u044f \u0438 \u043b\u0443\u0447\u0448\u0435 \u0440\u0430\u043d\u0436\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u043f\u043e\u0438\u0441\u043a\u0435.\u0421\u0441\u044b\u043b\u043a\u0438 \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 (links_count, images_per_1000_words, images_count) \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u043e \u0434\u0430\u044e\u0442 33.7% \u0432\u043b\u0438\u044f\u043d\u0438\u044f. \u0412 \u0442\u043e\u043f\u043e\u0432\u044b\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f\u0445 \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c 4.2 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0438 4.8 \u0441\u0441\u044b\u043b\u043a\u0438. \u0412 \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u044b\u043b\u0430 \u0432\u0441\u0435\u0433\u043e 1 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u043d\u0430 \u043e\u0431\u043b\u043e\u0436\u043a\u0435 \u0438 0 \u0441\u0441\u044b\u043b\u043e\u043a.\u0411\u043b\u043e\u043a\u0438 \u043a\u043e\u0434\u0430 (code_blocks_count) \u0432\u043b\u0438\u044f\u044e\u0442 \u0432\u0441\u0435\u0433\u043e \u043d\u0430 0.3%. \u0414\u043b\u044f \u0445\u0430\u0431\u0430 \u043f\u0440\u043e \u0444\u0440\u0438\u043b\u0430\u043d\u0441 \u044d\u0442\u043e \u043b\u043e\u0433\u0438\u0447\u043d\u043e: \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u044f \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0442\u0443\u0434\u0430 \u0437\u0430 \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u043c \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0439 \u0438 \u043b\u0438\u0447\u043d\u044b\u043c \u043e\u043f\u044b\u0442\u043e\u043c, \u0430 \u043d\u0435 \u0437\u0430 \u0441\u043d\u0438\u043f\u043f\u0435\u0442\u0430\u043c\u0438 \u043a\u043e\u0434\u0430.\u041e\u0448\u0438\u0431\u043a\u0430 \u0441 \u0443\u0442\u0435\u0447\u043a\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u041d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u044f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 predictor.py, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0441\u0442\u044c \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0434\u043e \u0435\u0451 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438. \u042f \u0437\u0430\u0434\u0430\u043b \u043f\u043e\u0440\u043e\u0433 \u00ab\u0445\u0438\u0442\u0430\u00bb \u0432 25 000 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 \u0438 \u043e\u0431\u0443\u0447\u0438\u043b \u0434\u0432\u0435 \u043c\u043e\u0434\u0435\u043b\u0438: RandomForestClassifier (\u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u0438\u0442\u044c 25\u041a \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445) \u0438 RandomForestRegressor (\u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432).\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u044f \u043f\u0440\u043e\u0433\u043d\u0430\u043b \u0447\u0435\u0440\u0435\u0437 \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430:\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 (\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 71 \u0441\u0438\u043c\u0432\u043e\u043b, 766 \u0441\u043b\u043e\u0432, 1 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430, 0 \u0441\u0441\u044b\u043b\u043e\u043a).\u0414\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u043e \u043c\u0435\u0442\u0440\u0438\u043a\u0430\u043c \u0442\u043e\u043f\u0430 (\u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441 \u0446\u0438\u0444\u0440\u043e\u0439, 1750 \u0441\u043b\u043e\u0432, 5 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a, 4 \u0441\u0441\u044b\u043b\u043a\u0438).\u041d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u043f\u0435\u0440\u0432\u044b\u0439 (\u0441\u044b\u0440\u043e\u0439) \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u0443\u0441\u043f\u0435\u0445\u0430 \u0432\u044b\u0448\u0435, \u0447\u0435\u043c \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u0432\u0442\u043e\u0440\u043e\u0439.\u041f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u043a\u043e\u0434\u0430 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u044f \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043b \u0434\u0432\u0435 \u043e\u0448\u0438\u0431\u043a\u0438:Data Leakage (\u0443\u0442\u0435\u0447\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445). \u041c\u043e\u044f \u0441\u0442\u0430\u0442\u044c\u044f (\u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443\u0436\u0435 \u0431\u044b\u043b\u043e 30 000 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432, \u0447\u0442\u043e \u0432\u044b\u0448\u0435 \u043f\u043e\u0440\u043e\u0433\u0430 \u0432 25 000) \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0435\u0439 \u0432\u044b\u0431\u043e\u0440\u043a\u0438. \u0414\u0435\u0440\u0435\u0432\u044c\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0431\u0435\u0437 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0433\u043b\u0443\u0431\u0438\u043d\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u043b\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e (71 \u0441\u0438\u043c\u0432\u043e\u043b + 766 \u0441\u043b\u043e\u0432 = \u0431\u043e\u043b\u044c\u0448\u0435 25\u041a \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432). \u041a\u043e\u0433\u0434\u0430 \u044f \u043f\u0435\u0440\u0435\u0434\u0430\u043b \u044d\u0442\u0438 \u0436\u0435 \u0447\u0438\u0441\u043b\u0430 \u043d\u0430 \u0442\u0435\u0441\u0442, \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0432\u044b\u0434\u0430\u043b \u0437\u0430\u0432\u044b\u0448\u0435\u043d\u043d\u0443\u044e \u043e\u0446\u0435\u043d\u043a\u0443, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443\u0436\u0435 \u0432\u0438\u0434\u0435\u043b \u044d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0438.\u0428\u0442\u0440\u0430\u0444 \u0437\u0430 \u0446\u0438\u0444\u0440\u044b \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435. \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0446\u0438\u0444\u0440\u0443. \u0410 \u043f\u043e \u043d\u0430\u0448\u0435\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0432 \u0441\u043b\u0430\u0431\u044b\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u0446\u0438\u0444\u0440\u044b \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u0438\u0441\u044c \u0432 \u0442\u0440\u0438 \u0440\u0430\u0437\u0430 \u0447\u0430\u0449\u0435 (0.3), \u0447\u0435\u043c \u0432 \u0442\u043e\u043f\u043e\u0432\u044b\u0445 (0.1), \u0438\u0437-\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0445 \u043a\u0435\u0439\u0441\u043e\u0432 \u0432 \u0441\u0432\u0435\u0436\u0435\u0439 \u043b\u0435\u043d\u0442\u0435.\u042f \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043b \u0441\u043a\u0440\u0438\u043f\u0442: \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u043b \u0441\u0432\u043e\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u0438\u0437 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0435\u0439 \u0432\u044b\u0431\u043e\u0440\u043a\u0438 (train_df = df[df[&#8216;is_my_article&#8217;] == 0]) \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u043b \u0433\u043b\u0443\u0431\u0438\u043d\u0443 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c max_depth=4, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0441\u043a\u0430\u043b\u0430 \u043e\u0431\u0449\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u0430 \u043d\u0435 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438.\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0447\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430:\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0441\u0442\u0430\u043b\u0438 \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c\u0438. \u041c\u043e\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f (\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u0430\u043d\u044c\u0448\u0435 \u043d\u0435 \u0432\u0438\u0434\u0435\u043b\u0430) \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u0441\u0447\u0435\u0442 \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430 26.0% \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0431\u0440\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 25 \u0442\u044b\u0441\u044f\u0447 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 \u0438 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u0432 14 795 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432.\u0410 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 (\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 46 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, 1800 \u0441\u043b\u043e\u0432, 4 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438, 5 \u0441\u0441\u044b\u043b\u043e\u043a) \u043f\u043e\u043b\u0443\u0447\u0438\u043b 41.0% \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u0438 \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u0432 34 919 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432.\u041f\u043e\u0447\u0435\u043c\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043b\u0430 14 795 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432, \u0430 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0448\u043b\u043e 30 000?\u0417\u0434\u0435\u0441\u044c \u0432\u0438\u0434\u043d\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u00ab\u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0443\u00bb \u0442\u0435\u043a\u0441\u0442\u0430: \u0434\u043b\u0438\u043d\u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430, \u0447\u0438\u0441\u043b\u043e \u0441\u043b\u043e\u0432, \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0438 \u0441\u0441\u044b\u043b\u043e\u043a. \u041e\u043d \u043d\u0435 \u0437\u043d\u0430\u043b, \u043e \u0447\u0435\u043c \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0441\u0442\u0430\u0442\u044c\u044f.\u0414\u043b\u044f \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043d\u0430 766 \u0441\u043b\u043e\u0432 \u0441 \u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u043e\u0439 \u0438 \u0434\u043b\u0438\u043d\u043d\u044b\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c 14.8 \u0442\u044b\u0441\u044f\u0447\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 \u2014 \u044d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0440\u0435\u0434\u043d\u0438\u0439 \u043f\u043e\u0442\u043e\u043b\u043e\u043a. \u0422\u043e, \u0447\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u044f \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u043e\u0431\u0440\u0430\u043b\u0430 30 000 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 (\u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u0432\u044b\u0448\u0435 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0430), \u0434\u0430\u043b\u0430 \u0441\u0430\u043c\u0430 \u0442\u0435\u043c\u0430 \u0431\u0438\u0440\u0436\u0438 Kwork \u0438 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.\u041d\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u044b\u0432\u043e\u0434: \u0435\u0441\u043b\u0438 \u043e\u0441\u0442\u0440\u0430\u044f \u0442\u0435\u043c\u0430 \u0441\u0430\u043c\u0430 \u043f\u043e \u0441\u0435\u0431\u0435 \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u0442 \u043e\u0445\u0432\u0430\u0442\u044b \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430, \u0442\u043e \u043f\u0440\u0438 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0435 \u044d\u0442\u043e\u0433\u043e \u0436\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u0432 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u043b\u043e\u043d\u0433\u0440\u0438\u0434 (\u043d\u0430 1800 \u0441\u043b\u043e\u0432 \u0441 4 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438 \u0438 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c) \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043f\u043b\u0430\u043d\u043a\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0430 \u0431\u044b \u0443\u0436\u0435 \u043e\u043a\u043e\u043b\u043e 35 000 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432, \u0430 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u043e\u0445\u0432\u0430\u0442 \u043c\u043e\u0433 \u043f\u0435\u0440\u0435\u0432\u0430\u043b\u0438\u0442\u044c \u0437\u0430 60 000.\u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a\u043e\u0432\u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u0443\u0431\u0440\u0430\u043b \u0438\u0437 predictor.py \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0438 \u0438 \u0441\u0434\u0435\u043b\u0430\u043b \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u0441 \u0440\u0443\u0447\u043d\u044b\u043c \u0432\u0432\u043e\u0434\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 input().\u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e \u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0440\u0430\u0441\u0447\u0435\u0442 \u043c\u0435\u0436\u043a\u0432\u0430\u0440\u0442\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0430\u0445\u0430 (IQR \u2014 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043c\u0435\u0436\u0434\u0443 25-\u043c \u0438 75-\u043c \u043f\u0435\u0440\u0446\u0435\u043d\u0442\u0438\u043b\u044f\u043c\u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0432\u0441\u0435\u0445 200 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 RandomForestRegressor). \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0438\u0434\u0435\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0440\u0438\u0434\u043e\u0440 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 \u0434\u043b\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0441\u0442\u0430\u0442\u044c\u0438:import numpy as npimport pandas as pdfrom sklearn.ensemble import RandomForestRegressor,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-502129","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/502129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=502129"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/502129\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=502129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=502129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=502129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}