{"id":397425,"date":"2024-06-29T13:26:27","date_gmt":"2024-06-29T13:26:27","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=397425"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-06-29T13:26:27","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=397425","title":{"rendered":"<span>\u041f\u043e\u0440\u0430 \u0437\u0430\u0431\u044b\u0432\u0430\u0442\u044c GridSearch \u2014 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0439\u0442\u0435 ProgressiveGridSearch. \u0424\u0440\u0430\u043a\u0442\u0430\u043b\u044b \u0432 ML, \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435, \u043c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u041d\u0438\u043a\u043e\u043b\u0430\u0439 \u0421\u0442\u0440\u0435\u043a\u043e\u043f\u044b\u0442\u043e\u0432 \u0438 \u044f \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u043a\u0430\u043a \u043f\u043e\u0434\u0431\u0438\u0440\u0430\u0442\u044c \u0433\u0438\u043f\u0435\u0440\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u0435\u0441\u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0438\u0441\u0441\u043d\u043e \u043b\u0443\u0447\u0448\u0435 GridSearch\u2019\u0430. \u041d\u0443\u0436\u043d\u043e \u043b\u0438\u0448\u044c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439. \u0418 \u0434\u0430, \u044d\u0442\u043e \u0437\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430 &#8212; \u0441\u043a\u043e\u0440\u043e \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0441\u0432\u043e\u0438 ML-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u043a\u043e\u0434\u0430.  <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/417\/c18\/f21\/417c18f21c5f46dddd51aea305b7fa50.png\" width=\"1090\" height=\"443\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/417\/c18\/f21\/417c18f21c5f46dddd51aea305b7fa50.png\"\/><\/figure>\n<h2>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e  <\/h2>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043a\u0430\u043a \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f GridSearch, \u0430 \u043a\u0430\u043a ProgressiveGridSearch. \u041f\u0435\u0440\u0432\u044b\u0439 \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c, \u0442\u043e \u0435\u0441\u0442\u044c \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u0430\u0442\u0440\u0438\u0446\u044b, \u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0435\u0440\u0435\u0431\u0435\u0440\u0435\u0442 \u0432\u0441\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b \u043f\u043e \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442 \u043a\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435, \u0442\u043e \u0435\u0441\u0442\u044c \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441. \u042f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0443\u043c\u043d\u0435\u0435. \u041f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043a\u0440\u0443\u043f\u043d\u044b\u043c \u043c\u0430\u0437\u043a\u0430\u043c\u0438 \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0443, \u0437\u0430\u0442\u0435\u043c \u0441\u0440\u0435\u0434\u043d\u0438\u043c\u0438 \u043c\u0430\u0437\u043a\u0430\u043c\u0438, \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u043c\u0435\u043b\u043a\u0438\u043c\u0438 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435 \u0434\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430 (\u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0434\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u043e \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 \u043d\u0435\u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u0443\u0437\u043b\u0430\u0445).  <\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0434\u0432\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0442\u0430\u043a:  <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aed\/6f3\/f25\/aed6f3f25d042f69d5a7e0912a886b92.gif\" width=\"640\" height=\"480\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aed\/6f3\/f25\/aed6f3f25d042f69d5a7e0912a886b92.gif\"\/><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/880\/e81\/483\/880e814837401b001665a5862619974e.gif\" alt=\"\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435: \u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e \u0432\u0437\u044f\u0442\u043e\u0435 \u0438\u0437 https:\/\/habr.com\/ru\/company\/piter\/blog\/308720\/\u041f\u043e\u043a\u0430 \u043d\u0435 \u044f\u0441\u043d\u043e \u043b\u0443\u0447\u0448\u0435 \u043b\u0438 \u043c\u0435\u0442\u043e\u0434, \u0447\u0435\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0438 \u0438\u0437 optuna, \u043d\u043e \u0435\u0433\u043e \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u043b\u044f \u0444\u0438\u043b\u044c\u043c\u043e\u0432 \u0443\u0436\u0430\u0441\u043e\u0432 (\u0433\u0438\u0444\u043a\u0443 \u043f\u043e\u043b\u0443\u0447\u0448\u0435 \u0437\u0430\u043b\u044c\u044e \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435)\" title=\"\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435: \u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e \u0432\u0437\u044f\u0442\u043e\u0435 \u0438\u0437 https:\/\/habr.com\/ru\/company\/piter\/blog\/308720\/\u041f\u043e\u043a\u0430 \u043d\u0435 \u044f\u0441\u043d\u043e \u043b\u0443\u0447\u0448\u0435 \u043b\u0438 \u043c\u0435\u0442\u043e\u0434, \u0447\u0435\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0438 \u0438\u0437 optuna, \u043d\u043e \u0435\u0433\u043e \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u043b\u044f \u0444\u0438\u043b\u044c\u043c\u043e\u0432 \u0443\u0436\u0430\u0441\u043e\u0432 (\u0433\u0438\u0444\u043a\u0443 \u043f\u043e\u043b\u0443\u0447\u0448\u0435 \u0437\u0430\u043b\u044c\u044e \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435)\" width=\"640\" height=\"480\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/880\/e81\/483\/880e814837401b001665a5862619974e.gif\"\/><\/p>\n<div><figcaption>\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435: \u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e \u0432\u0437\u044f\u0442\u043e\u0435 \u0438\u0437 <a href=\"https:\/\/habr.com\/ru\/company\/piter\/blog\/308720\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/company\/piter\/blog\/308720\/<\/a><\/p>\n<p>\u041f\u043e\u043a\u0430 \u043d\u0435 \u044f\u0441\u043d\u043e \u043b\u0443\u0447\u0448\u0435 \u043b\u0438 \u043c\u0435\u0442\u043e\u0434, \u0447\u0435\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0438 \u0438\u0437 optuna, \u043d\u043e \u0435\u0433\u043e \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u043b\u044f \u0444\u0438\u043b\u044c\u043c\u043e\u0432 \u0443\u0436\u0430\u0441\u043e\u0432 (\u0433\u0438\u0444\u043a\u0443 \u043f\u043e\u043b\u0443\u0447\u0448\u0435 \u0437\u0430\u043b\u044c\u044e \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435)<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043f\u043e\u043a\u0430 GridSearch \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 ProgressiveGridSearch \u0443\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u044d\u0442\u043e \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u0438 2 \u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f 4 \u0438 \u043e\u0442\u0440\u044b\u0432 \u0440\u0430\u0441\u0442\u0435\u0442 \u043f\u0440\u044f\u043c\u043e \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u0438 \u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u0432\u0438\u0434\u043d\u043e \u043f\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438, \u0433\u0434\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u0432\u0441\u0435 \u0442\u0435 \u0436\u0435 2, \u043d\u043e \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0443\u0436\u0435 7<\/p>\n<h2>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435<\/h2>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c, \u0430, \u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u044b\u0432\u0430\u044e\u0442 \u043b\u0438\u0431\u043e \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c\u0438, \u043b\u0438\u0431\u043e \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c\u0438.<\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0443, \u0447\u0442\u043e \u0440\u0435\u0447\u044c \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438, \u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431\u0430\u0445 \u0438 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0441\u043e\u0432\u043e\u043a\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u044e\u0442 \u0444\u0440\u0430\u043a\u0442\u0430\u043b \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0435\u043a\u0441\u0442 \u043f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0441\u043c\u0435\u043b\u044b\u0445 \u0434\u0443\u0445\u043e\u043c \u0438 \u043f\u043e\u043b\u043d\u044b\u0445 \u0441\u0438\u043b, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043c\u0435\u043d\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u0437\u0432\u0435\u0437\u0434\u043e\u0447\u043a\u0443 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044e, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044e.<\/p>\n<h3>\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 <\/h3>\n<p>\u0418\u0434\u0435\u044f \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u043d\u0430 \u0442\u043e\u043c \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u0440\u0443\u043f\u043d\u044b\u043c\u0438 \u043c\u0430\u0437\u043a\u0430\u043c\u0438, \u0437\u0430\u0442\u0435\u043c \u0441\u0440\u0435\u0434\u043d\u0438\u043c\u0438, \u0437\u0430\u0442\u0435\u043c \u043c\u0435\u043b\u043a\u0438\u043c \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435 \u0434\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u043c\u0435\u043b\u043a\u043e\u0441\u0442\u0438 \u0438\u043b\u0438 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0439 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430. \u0422\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0434\u0430\u0435\u0442 \u0438\u043d\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u043f\u043e\u0438\u0441\u043a\u0430, \u0430 \u044d\u0442\u043e \u0443\u0436\u0435 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e<\/p>\n<p>\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u0434\u0430\u0447\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u043a: \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0443\u0437\u0435\u043b-\u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a, \u0447\u0442\u043e \u043e\u043d \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u043e\u0442 \u0432\u0441\u0435\u0445 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0443\u0437\u043b\u043e\u0432. \u041f\u0435\u0440\u0432\u044b\u043c\u0438 \u0443\u0437\u043b\u0430\u043c\u0438 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0443\u043c\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0435\u0440\u0448\u0438\u043d\u044b \u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431\u0430 (\u043e\u0442\u0440\u0435\u0437\u043a\u0430\/\u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\/\u043a\u0443\u0431\u0430 \u0434\u043b\u044f 1D\/2D\/3D), \u044f\u0432\u043b\u044f\u044e\u0449\u0438\u043c\u0441\u044f \u043d\u0430\u0448\u0438\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432, \u0447\u0442\u043e \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435: <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"x^{k+1} = \\underset{x \\in H}{\\arg\\max} \\{ distance(x^l, x) \\}_{l=1}^k  \\quad\" alt=\"x^{k+1} = \\underset{x \\in H}{\\arg\\max} \\{ distance(x^l, x) \\}_{l=1}^k  \\quad\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7cc\/3a8\/0eb\/7cc3a80ebcb347c729eb83acd0a2518a.svg\" width=\"315\" height=\"40\"\/><\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c \u0438 \u043b\u0435\u0433\u043a\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u043c, \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0435\u0433\u043e \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f\u00a0<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"distance(a,b)\" alt=\"distance(a,b)\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4de\/f53\/a4d\/4def53a4dd43d43871699bf55f27a232.svg\" width=\"114\" height=\"22\"\/>\u044f \u0432\u0437\u044f\u043b \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u0435\u0432\u043a\u043b\u0438\u0434\u043e\u0432\u043e\u0439 \u043d\u043e\u0440\u043c\u044b \u0438 \u0442\u043e\u0447\u043a\u0438-\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0430\u043c\u0438 \u043e\u0442\u0440\u0435\u0437\u043a\u043e\u0432, \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0436\u0435 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0442\u0440\u0435\u0437\u043a\u0430 \u043d\u0435\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/034\/926\/0b5\/0349260b5a57903e3258ad0a1eddad7e.png\" alt=\"\u0413\u0440\u0430\u0444\u0438\u043a\u0438 (x-xl)^2 \u0434\u043b\u044f k=3 \u0438 k=5\" title=\"\u0413\u0440\u0430\u0444\u0438\u043a\u0438 (x-xl)^2 \u0434\u043b\u044f k=3 \u0438 k=5\" width=\"1280\" height=\"480\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/034\/926\/0b5\/0349260b5a57903e3258ad0a1eddad7e.png\"\/><\/p>\n<div><figcaption>\u0413\u0440\u0430\u0444\u0438\u043a\u0438 (x-xl)^2 \u0434\u043b\u044f k=3 \u0438 k=5<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0430\u043c \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u0438 \u0442\u043e\u0447\u043a\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u041f\u0430\u0440\u0435\u0442\u043e-\u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 (\u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u043d\u0435\u043b\u044c\u0437\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043e\u0432 \u043d\u0435 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0432 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u0438\u043d, \u044d\u0442\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u0431\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u044d\u043a\u0441\u0442\u0440\u0435\u043c\u0443\u043c\u0430 \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u043e\u043c\u0435\u0440\u043d\u044b\u0445 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u0432)<\/p>\n<p>\u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0431\u0435\u0437 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043a\u0440\u0438\u0432\u044b\u0445 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0439<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/be9\/d7a\/a3f\/be9d7aa3fc3c12e7461c2172a405fe36.gif\" alt=\"depth = 4, \u0442\u043e \u0435\u0441\u0442\u044c \u0443\u0437\u043b\u043e\u0432 16. \u041a\u0440\u0430\u0441\u043d\u044b\u043c \u043d\u0430 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u0443\u0437\u0435\u043b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438, \u0430 \u0441\u0438\u043d\u0438\u043c \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435. \u041d\u0430 \u043d\u0438\u0436\u043d\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u043a\u0440\u0430\u0441\u043d\u044b\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u044b \u0443\u0437\u043b\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0436\u0435 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435, \u0430 \u0441\u0438\u043d\u0438\u043c \u0442\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0449\u0435 \u043d\u0435\u0442\" title=\"depth = 4, \u0442\u043e \u0435\u0441\u0442\u044c \u0443\u0437\u043b\u043e\u0432 16. \u041a\u0440\u0430\u0441\u043d\u044b\u043c \u043d\u0430 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u0443\u0437\u0435\u043b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438, \u0430 \u0441\u0438\u043d\u0438\u043c \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435. \u041d\u0430 \u043d\u0438\u0436\u043d\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u043a\u0440\u0430\u0441\u043d\u044b\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u044b \u0443\u0437\u043b\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0436\u0435 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435, \u0430 \u0441\u0438\u043d\u0438\u043c \u0442\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0449\u0435 \u043d\u0435\u0442\" width=\"640\" height=\"480\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/be9\/d7a\/a3f\/be9d7aa3fc3c12e7461c2172a405fe36.gif\"\/><\/p>\n<div><figcaption>depth = 4, \u0442\u043e \u0435\u0441\u0442\u044c \u0443\u0437\u043b\u043e\u0432 16. \u041a\u0440\u0430\u0441\u043d\u044b\u043c \u043d\u0430 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u0443\u0437\u0435\u043b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438, \u0430 \u0441\u0438\u043d\u0438\u043c \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435. \u041d\u0430 \u043d\u0438\u0436\u043d\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u043a\u0440\u0430\u0441\u043d\u044b\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u044b \u0443\u0437\u043b\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0436\u0435 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435, \u0430 \u0441\u0438\u043d\u0438\u043c \u0442\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0449\u0435 \u043d\u0435\u0442<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u043e \u043a\u0430\u043a \u044d\u0442\u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0431\u043e\u0431\u0449\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f N-\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f? \u0417\u0434\u0435\u0441\u044c \u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431\u044b \u0438 \u0444\u0440\u0430\u043a\u0442\u0430\u043b. \u0422\u043e\u0447\u043a\u0430\u043c\u0438-\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0431\u0443\u0434\u0443\u0442 \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432\u0435\u0440\u0448\u0438\u043d\u044b \u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431\u0430, \u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"2^{dim}\" alt=\"2^{dim}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4ed\/246\/59f\/4ed24659f5ba5cc5124eab0ba0607e45.svg\" width=\"35\" height=\"21\"\/> \u0441 \u0432\u0434\u0432\u043e\u0435 \u043c\u0435\u043d\u044c\u0448\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0430 \u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431\u043e\u0432, \u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0449\u0430\u044f \u0444\u0440\u0430\u043a\u0442\u0430\u043b, \u0432\u0435\u0440\u0448\u0438\u043d\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u0434\u0430\u0447\u0438 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0438\u0432\u0430\u043d\u0438\u044f\u00a0<\/p>\n<p>\u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u044d\u0442\u0443 \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0438 \u0432 \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043d\u043e \u043d\u0430 \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u043e\u043c \u0443\u0436\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u0435\u0435<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6c9\/ae7\/831\/6c9ae783154102219e204ffd8dc22f17.gif\" alt=\"\u041a\u0440\u0430\u0441\u043d\u044b\u0435 \u0443\u0436\u0435\u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0443\u0437\u043b\u044b, \u0430 \u0431\u0435\u043b\u044b\u0439 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0439 \u0441\u0435\u0439\u0447\u0430\u0441\" title=\"\u041a\u0440\u0430\u0441\u043d\u044b\u0435 \u0443\u0436\u0435\u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0443\u0437\u043b\u044b, \u0430 \u0431\u0435\u043b\u044b\u0439 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0439 \u0441\u0435\u0439\u0447\u0430\u0441\" width=\"640\" height=\"480\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6c9\/ae7\/831\/6c9ae783154102219e204ffd8dc22f17.gif\"\/><\/p>\n<div><figcaption>\u041a\u0440\u0430\u0441\u043d\u044b\u0435 \u0443\u0436\u0435\u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0443\u0437\u043b\u044b, \u0430 \u0431\u0435\u043b\u044b\u0439 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0439 \u0441\u0435\u0439\u0447\u0430\u0441<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0440\u0435\u0447\u044c \u0438\u0434\u0435\u0442 \u043e \u043f\u043e\u0438\u0441\u043a\u0435 \u043d\u0430 \u0441\u0435\u0442\u043a\u0435, \u0442\u043e \u044f \u0441\u0432\u043e\u0436\u0443 \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u043a \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u043c\u0443, \u0430 \u043d\u0435 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e\u043c\u0443, \u0430 \u044d\u0442\u043e \u0434\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 \u0432\u043a\u043b\u0430\u0434: 1) \u044d\u0442\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043c\u044b \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0447\u0435\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u043f\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438 \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0439, \u0438 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u0434\u0430 \u0435\u0449\u0435 \u0438 \u0441 \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u044b\u043c\u0438 \u043f\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e \u0448\u0430\u0433\u0430 \u0441\u0435\u0442\u043a\u0430\u043c\u0438 2) \u041f\u0430\u0440\u0435\u0442\u043e-\u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0443 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u0430\u043b\u0435\u043a\u043e\u0435 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043e\u0442 0 \u0438 15 \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0442\u0440\u0435\u0437\u043a\u0430 \u044d\u0442\u043e 7.5, \u0430 \u0441\u0430\u043c\u044b\u0445 \u0434\u0430\u043b\u0435\u043a\u0438\u0445 \u0446\u0435\u043b\u044b\u0445 \u0443\u0436\u0435 \u0434\u0432\u0430 &#8212; 7 \u0438 8 \u0438 \u044d\u0442\u0443 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c, \u0438\u043d\u0430\u0447\u0435 \u0431\u0443\u0434\u0443\u0442 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0438 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f <\/p>\n<h3>\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e<\/h3>\n<p>\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0443\u0437\u043b\u043e\u0432 \u043f\u043e \u0441\u0443\u0442\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435\u043c dim-\u0430\u0440\u043d\u043e\u0433\u043e \u0434\u0435\u0440\u0435\u0432\u0430 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u0433\u043b\u0443\u0431\u0438\u043d\u044b \u0438 \u043e\u0431\u0445\u043e\u0434 \u0435\u0433\u043e \u0443\u0437\u043b\u043e\u0432 \u043f\u043e\u044d\u0442\u0430\u0436\u043d\u043e.<\/p>\n<p>\u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0435\u0433\u043e \u0434\u0432\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 &#8212; Hypercube \u0438 ProgressiveGridSearch<\/p>\n<pre><code class=\"python\">import numpy as np from typing import Callable, List, Union  # \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \"\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\" \u0434\u043b\u044f \u0443\u0437\u043b\u043e\u0432-\u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u0449\u0435 \u0438 \u0434\u0430\u0435\u0442 \u043f\u043e\u0442\u043e\u043c\u043a\u043e\u0432 # \u043b\u0435\u0436\u0430\u0449\u0438\u0445 \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0433\u043e \u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431\u043e\u0432 \u0438 \u0442\u043e\u0436\u0435 \u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \"\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438\" \u0434\u043b\u044f \u0443\u0437\u043b\u043e\u0432-\u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432 class Hypercube:     def __init__(self, resolution_degree: int, start_point: np.array, parent=None):         self.resolution_degree = resolution_degree         self.start_indexes = start_point         self.parent = parent          self.side = 2 ** resolution_degree - 1         self.dim = self.start_indexes.shape[0]          self.node_order_graph = None         self.set_node_order_graph()      def set_node_order_graph(self):         self.node_order_graph = []                  schema_string = '{0:0' + str(self.dim) + 'b}'          for node_number in range(2 ** self.dim):             binary_mask = schema_string.format(node_number)              point = np.array(self.start_indexes)              for index, flag in enumerate(binary_mask):                 if flag == '1':                     point[index] += self.side              self.node_order_graph.append(point)      def split(self):         for node in self.node_order_graph:             yield Hypercube(resolution_degree=self.resolution_degree - 1,                             start_point=np.around((node + self.start_indexes) \/ 2).astype(int),                             parent=self)      def compute_curr_depth(self):         res = 0         if self.parent is None:             return res         else:             parent = self.parent             while parent is not None:                 res += 1                 parent = parent.parent              return res   class ProgressiveGridSearch:     def __init__(self, func: Callable, params: List, stop_criterion: Callable, max_resolution_degree: int = 10):         self.func = func         self.params = params         self.stop_criterion = stop_criterion         self.max_resolution_degree = max_resolution_degree          self.number_of_nodes = 2 ** max_resolution_degree          self.dim = 0         self.grids = []          for param in self.params:             if type(param) is Real:                 self.dim += 1                 grid = np.linspace(param.left_boundary, param.right_boundary, num=self.number_of_nodes)                 self.grids.append(grid)             elif type(param) is Integer:                 self.dim += 1                 grid = np.arange(param.left_boundary, param.right_boundary)                 self.grids.append(grid)          self.mask = np.zeros([self.number_of_nodes] * self.dim).astype(bool)         self.values = np.full_like(self.mask, fill_value=np.nan).astype(float)          self.nodes_queue = None         self.curr_hypercube = None         self.number_of_functions_calls = None      def __iter__(self):         hypercube = Hypercube(resolution_degree=self.max_resolution_degree, start_point=np.zeros(self.dim).astype(int))          self.generator = (curr_hc.node_order_graph for curr_hc in self.append_generator(hypercube))         self.number_of_functions_calls = 0          self.nodes_queue = iter([])         return self      def __next__(self):         try:             node_indexes = next(self.nodes_queue)              # \u042d\u0442\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0439             if self.mask[tuple(node_indexes)].item() is True:                 return next(self)              node_point = []              for k, index in enumerate(node_indexes):                 node_point.append(self.grids[k][index])              node_point = np.array(node_point)              # \u042d\u0442\u043e \u043f\u0440\u0435\u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0439             if self.curr_hypercube.resolution_degree != self.max_resolution_degree and self.curr_hypercube.resolution_degree != 1:                 if np.any(node_indexes % 2 == 0) and np.sum(node_indexes) % 2 == 0 and np.sum(node_point) != 0:                     return next(self)                  b = node_indexes - self.curr_hypercube.start_indexes                  if np.any(b % 2 == 0) and np.all(node_indexes != 0):                     return next(self)              self.mask[tuple(node_indexes)] = True             self.number_of_functions_calls += 1              return node_point, node_indexes         except StopIteration:             self.nodes_queue = iter(next(self.generator))             return next(self)      def append_generator(self, hypercube: Hypercube):         lst = [hypercube]          while lst:              self.curr_hypercube = lst.pop(0)             yield self.curr_hypercube              if self.curr_hypercube.resolution_degree == 1:                 continue              for sub_elem in self.curr_hypercube.split():                 lst.append(sub_elem)      # \u0417\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0441\u0430\u043c \u0446\u0438\u043a\u043b \u043f\u043e\u0438\u0441\u043a\u0430 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u0430\/\u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430 \u0441\u0435\u0442\u043a\u0435 \u0441 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f\u043c\u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430     def optimize(self):         for point in self:             raise NotImplementedError   optimizer = ProgressiveGridSearch(func=evaluator,                                    params=[Real('lr', left_boundary=1e-10, right_boundary=1e-1),                                           Integer('batch_size', left_boundary=16, right_boundary=512),                                           Integer('latent_space_dimension', left_boundary=128, right_boundary=1024),                                           String('activation', necessary_values=['relu', 'hard_sigmoid'])],                                   stop_criterion=LastDifferenceBetweenBestLowerThan(1e-1)))<\/code><\/pre>\n<p>\u0411\u043e\u043b\u0435\u0435 \u0441\u0442\u0430 \u0441\u0442\u0440\u043e\u043a \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0435\u0432\u0437\u043e\u0439\u0442\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0446\u0438\u043a\u043b<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430:<\/p>\n<ul>\n<li>\n<p>\u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 GridSearch \u043d\u0435 \u0437\u043d\u0430\u044e\u0442 \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u0448\u0430\u0433\u0430 \u0441\u0435\u0442\u043a\u0438, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0437\u0430\u0434\u0430\u044e\u0442 \u043f\u043e\u0438\u0441\u043a \u0438 \u0437\u0430\u0434\u0430\u044e\u0442 \u0435\u0433\u043e \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e. \u041d\u043e \u043e\u043d\u0438 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0448\u0430\u043d\u0441\u043e\u043c \u0437\u043d\u0430\u044e\u0442 \u0436\u0435\u043b\u0430\u0435\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u043f\u043e\u0438\u0441\u043a \u0438 \u0436\u0435\u043b\u0430\u0435\u043c\u0443\u044e \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0441\u0435\u0442\u043a\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0432 ProgressiveGridSearch<\/p>\n<\/li>\n<li>\n<p>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043b\u0435\u0433\u043a\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c\u0438 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f\u043c\u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430 \u0438 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u0443\u0437\u043b\u043e\u0432 \u043d\u0430 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043a \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044e (\u0443\u0437\u043b\u043e\u0432-\u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432)<\/p>\n<\/li>\n<li>\n<p>ProgressiveGridSearch \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u0442\u043e\u0447\u043a\u0438 \u0431\u043b\u0438\u0437\u043a\u0438\u0435 \u043a \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c (\u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c), \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u043a\u0430\u043a \u043c\u0435\u0442\u043e\u0434 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0438\u0441\u043a \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0449\u0435, \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0448\u0430\u0433 \u0441\u0435\u0442\u043a\u0438, \u0445\u043e\u0442\u044f \u043a\u0430\u043a \u043e\u043f\u0446\u0438\u044f \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u00a0<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e ProgressiveGridSearch \u043d\u0430\u0434 GridSearch \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0440\u0430\u0441\u0442\u0430\u0435\u0442 \u043f\u0440\u044f\u043c\u043e \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0443\u0437\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438:<\/p>\n<ul>\n<li>\n<p>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0441\u044b\u0440\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 &#8212; \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u0442\u043e\u0447\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043d\u0430 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u043c\u043d\u0435, \u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0435, use case&#8217;\u044b \u0438\u0437-\u0437\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438 &#8212; \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u043d\u0430 \u0432\u0430\u0448\u0443 \u043f\u043e\u043c\u043e\u0449\u044c \u0441 \u044d\u0442\u0438\u043c<\/p>\n<\/li>\n<li>\n<p>\u041c\u0438\u043a\u0440\u043e\u0441\u043a\u043e\u043f\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u0432\u0435\u0440\u0445\u0435\u0434 \u043d\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u0438\u044f \u0443\u0437\u043b\u043e\u0432, \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u044e\u0449\u0438\u0439\u0441\u044f C-extesion\u2019\u043e\u043c \u0438 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0443\u0437\u043b\u043e\u0432 \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 N &#8212; \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u0438 \u0438 D &#8212; \u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u0444\u0438\u0447\u0438:<\/p>\n<ul>\n<li>\n<p>\u041a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0442\u043a\u0430 \u0441 \u043d\u0435\u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u043c \u0448\u0430\u0433\u043e\u043c<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439<\/p>\n<\/li>\n<li>\n<p>\u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u0443\u0437\u043b\u043e\u0432-\u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u043d\u0438\u0445 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043b\u0438\u0448\u044c \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u043b\u0443\u0447\u0448\u0438\u0445)<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0443\u0437\u043b\u043e\u0432-\u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432 \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c<\/p>\n<\/li>\n<li>\n<p>\u041a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0443\u0437\u043b\u043e\u0432?<\/p>\n<\/li>\n<li>\n<p>\u0414\u0440\u0443\u0433\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u044f (\u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0438\u0434\u0435\u0439)<\/p>\n<\/li>\n<\/ul>\n<ol>\n<li>\n<p>\u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u0441\u0432\u043e\u0438 \u043c\u044b\u0441\u043b\u0438, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0439\u0442\u0435 \u0444\u0438\u0447\u0438<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u044e \u0432\u0430\u0441 \u0432 \u0441\u0432\u043e\u0439 \u0431\u043b\u043e\u0433 <a href=\"https:\/\/t.me\/research_and_deep_learning\" rel=\"noopener noreferrer nofollow\">https:\/\/t.me\/research_and_deep_learning<\/a> . \u0412 \u043d\u0435\u043c \u044f \u043f\u0438\u0448\u0443 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043e \u0441\u0432\u043e\u0438\u0445 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u0445, \u043d\u043e \u0431\u044b\u0432\u0430\u044e\u0442 \u0438 \u0442\u0440\u0435\u0437\u0432\u044b\u0435 \u043e\u0446\u0435\u043d\u043a\u0438 \u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u044b \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0430\u0431\u043e\u0442. \u0412 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043c\u043e\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u043e \u0438\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0437\u043c\u044b\u043b\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u0433\u043b\u0430\u0437\u0430 \u043e\u0442 LLM\/GPT \u043d\u0435\u0445\u0430\u0439\u043f\u043e\u0432\u044b\u043c, \u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u043c<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u044d\u0442\u0438\u043c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u043c <a href=\"https:\/\/github.com\/nstrek\/progressive_search\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/nstrek\/progressive_search<\/a>, \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0438\u0442\u0435 \u043e \u043d\u0435\u043c \u043a\u043e\u043b\u043b\u0435\u0433\u0430\u043c<\/p>\n<\/li>\n<\/ol>\n<p>\u041a\u0442\u043e \u0443\u0432\u0438\u0434\u0435\u043b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440 \u0438\u043c \u0436\u0435 \u0441\u0430\u043c\u0438\u043c &#8212; \u043c\u043e\u043b\u043e\u0434\u0435\u0446, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p>\u0422\u0430\u043a\u0438\u0435 \u0432\u043e\u0442 \u0444\u0440\u0430\u043a\u0442\u0430\u043b\u044b \u0438 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u0430\u044f \u0442\u0435\u043e\u0440\u0438\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u043b\u0443\u0436\u0431\u0435 \u0443 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f. <br \/>\u041f\u041c-\u041f\u0423 \u043b\u0443\u0447\u0448\u0438\u0439 \u0438 \u0432\u043d\u0435 \u0421\u041f\u0431\u0413\u0423<\/p>\n<details class=\"spoiler\">\n<summary>\u041d\u0430\u0434 \u0447\u0435\u043c \u044f \u0443\u0436\u0435 \u0442\u043e\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e<\/summary>\n<div class=\"spoiler__content\">\n<ul>\n<li>\n<p>\u0414\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u043e\u0442 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0430 \u0434\u043e production-ready<\/p>\n<\/li>\n<li>\n<p>\u0415\u0449\u0435 \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0437\u0443\u043c\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0443\u0437\u043b\u043e\u0432 \u0437\u0430 \u0441\u0447\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u043d\u043e\u0434-\u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u044d\u0442\u0430\u0436\u0430<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0432 PyPI<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0438 readme.md<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439, \u044f \u0445\u043e\u0447\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0435 \u043d\u043e\u0434\u044b \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u043b\u0438\u0441\u044c\u00a0<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0444\u0440\u0430\u043a\u0442\u0430\u043b<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u041a\u043e\u043c\u0443 \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0441 \u0444\u0440\u0430\u043a\u0442\u0430\u043b\u043e\u043c<\/summary>\n<div class=\"spoiler__content\">\n<p>\u042d\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u0443\u0437\u043b\u043e\u0432-\u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432  <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6cb\/396\/ad6\/6cb396ad6a0c1810a0463bc069f22f12.png\" width=\"555\" height=\"428\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6cb\/396\/ad6\/6cb396ad6a0c1810a0463bc069f22f12.png\"\/><\/figure>\n<p>\u0410 \u044d\u0442\u043e \u043f\u043e \u0441\u0443\u0442\u0438 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A2%D1%80%D0%B5%D1%83%D0%B3%D0%BE%D0%BB%D1%8C%D0%BD%D0%B8%D0%BA_%D0%A1%D0%B5%D1%80%D0%BF%D0%B8%D0%BD%D1%81%D0%BA%D0%BE%D0%B3%D0%BE\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/ru.wikipedia.org\/wiki\/\u0422\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a_\u0421\u0435\u0440\u043f\u0438\u043d\u0441\u043a\u043e\u0433\u043e<\/u><\/a> , \u0442\u043e\u043b\u044c\u043a\u043e \u0443 \u043d\u0435\u0433\u043e \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438 \u0440\u0430\u0432\u043d\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435, \u0430 \u0442\u0443\u0442 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u0435  <\/p>\n<p>\u0410 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0434\u043d\u043e \u0438\u0437 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0435\u0441\u043b\u0438 \u0443\u0437\u043b\u044b \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u044d\u0442\u0430\u0436\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0448\u0430\u0442\u044c<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/35e\/541\/fee\/35e541fee467ee3a063351bbb059533b.jpg\" width=\"1280\" height=\"658\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/35e\/541\/fee\/35e541fee467ee3a063351bbb059533b.jpg\" data-blurred=\"true\"\/><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>F.A.Q.<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0422\u0443\u0442 \u043f\u043e\u043a\u0430 \u043f\u0443\u0441\u0442\u043e<\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/726222\/\"> https:\/\/habr.com\/ru\/articles\/726222\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435, \u043c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u041d\u0438\u043a\u043e\u043b\u0430\u0439 \u0421\u0442\u0440\u0435\u043a\u043e\u043f\u044b\u0442\u043e\u0432 \u0438 \u044f \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u043a\u0430\u043a \u043f\u043e\u0434\u0431\u0438\u0440\u0430\u0442\u044c \u0433\u0438\u043f\u0435\u0440\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u0435\u0441\u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0438\u0441\u0441\u043d\u043e \u043b\u0443\u0447\u0448\u0435 GridSearch\u2019\u0430. \u041d\u0443\u0436\u043d\u043e \u043b\u0438\u0448\u044c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439. \u0418 \u0434\u0430, \u044d\u0442\u043e \u0437\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430 &#8212; \u0441\u043a\u043e\u0440\u043e \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0441\u0432\u043e\u0438 ML-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u043a\u043e\u0434\u0430.  <\/p>\n<figure class=\"full-width\"><\/figure>\n<h2>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e  <\/h2>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043a\u0430\u043a \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f GridSearch, \u0430 \u043a\u0430\u043a ProgressiveGridSearch. \u041f\u0435\u0440\u0432\u044b\u0439 \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c, \u0442\u043e \u0435\u0441\u0442\u044c \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u0430\u0442\u0440\u0438\u0446\u044b, \u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0435\u0440\u0435\u0431\u0435\u0440\u0435\u0442 \u0432\u0441\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b \u043f\u043e \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442 \u043a\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435, \u0442\u043e \u0435\u0441\u0442\u044c \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441. \u042f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0443\u043c\u043d\u0435\u0435. \u041f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043a\u0440\u0443\u043f\u043d\u044b\u043c \u043c\u0430\u0437\u043a\u0430\u043c\u0438 \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0443, \u0437\u0430\u0442\u0435\u043c \u0441\u0440\u0435\u0434\u043d\u0438\u043c\u0438 \u043c\u0430\u0437\u043a\u0430\u043c\u0438, \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u043c\u0435\u043b\u043a\u0438\u043c\u0438 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435 \u0434\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430 (\u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0434\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u043e \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 \u043d\u0435\u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u0443\u0437\u043b\u0430\u0445).  <\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0434\u0432\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0442\u0430\u043a:  <\/p>\n<figure class=\"full-width\"><\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435: \u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u043d\u043e\u0435 \u043b\u0438\u0446\u043e \u0432\u0437\u044f\u0442\u043e\u0435 \u0438\u0437 <a href=\"https:\/\/habr.com\/ru\/company\/piter\/blog\/308720\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/company\/piter\/blog\/308720\/<\/a><\/p>\n<p>\u041f\u043e\u043a\u0430 \u043d\u0435 \u044f\u0441\u043d\u043e \u043b\u0443\u0447\u0448\u0435 \u043b\u0438 \u043c\u0435\u0442\u043e\u0434, \u0447\u0435\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0438 \u0438\u0437 optuna, \u043d\u043e \u0435\u0433\u043e \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u043b\u044f \u0444\u0438\u043b\u044c\u043c\u043e\u0432 \u0443\u0436\u0430\u0441\u043e\u0432 (\u0433\u0438\u0444\u043a\u0443 \u043f\u043e\u043b\u0443\u0447\u0448\u0435 \u0437\u0430\u043b\u044c\u044e \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435)<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043f\u043e\u043a\u0430 GridSearch \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 ProgressiveGridSearch \u0443\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u044d\u0442\u043e \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u0438 2 \u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f 4 \u0438 \u043e\u0442\u0440\u044b\u0432 \u0440\u0430\u0441\u0442\u0435\u0442 \u043f\u0440\u044f\u043c\u043e \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u0438 \u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u0432\u0438\u0434\u043d\u043e \u043f\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438, \u0433\u0434\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u0432\u0441\u0435 \u0442\u0435 \u0436\u0435 2, \u043d\u043e \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0443\u0436\u0435 7<\/p>\n<h2>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435<\/h2>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c, \u0430, \u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u044b\u0432\u0430\u044e\u0442 \u043b\u0438\u0431\u043e \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c\u0438, \u043b\u0438\u0431\u043e \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c\u0438.<\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0443, \u0447\u0442\u043e \u0440\u0435\u0447\u044c \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438, \u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431\u0430\u0445 \u0438 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0441\u043e\u0432\u043e\u043a\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u044e\u0442 \u0444\u0440\u0430\u043a\u0442\u0430\u043b \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0435\u043a\u0441\u0442 \u043f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0441\u043c\u0435\u043b\u044b\u0445 \u0434\u0443\u0445\u043e\u043c \u0438 \u043f\u043e\u043b\u043d\u044b\u0445 \u0441\u0438\u043b, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043c\u0435\u043d\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u0437\u0432\u0435\u0437\u0434\u043e\u0447\u043a\u0443 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044e, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044e.<\/p>\n<h3>\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 <\/h3>\n<p>\u0418\u0434\u0435\u044f \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u043d\u0430 \u0442\u043e\u043c \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u0440\u0443\u043f\u043d\u044b\u043c\u0438 \u043c\u0430\u0437\u043a\u0430\u043c\u0438, \u0437\u0430\u0442\u0435\u043c \u0441\u0440\u0435\u0434\u043d\u0438\u043c\u0438, \u0437\u0430\u0442\u0435\u043c \u043c\u0435\u043b\u043a\u0438\u043c \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435 \u0434\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u043c\u0435\u043b\u043a\u043e\u0441\u0442\u0438 \u0438\u043b\u0438 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0439 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430. \u0422\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0434\u0430\u0435\u0442 \u0438\u043d\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u043f\u043e\u0438\u0441\u043a\u0430, \u0430 \u044d\u0442\u043e \u0443\u0436\u0435 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e<\/p>\n<p>\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u0434\u0430\u0447\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u043a: \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0443\u0437\u0435\u043b-\u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a, \u0447\u0442\u043e \u043e\u043d \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u043e\u0442 \u0432\u0441\u0435\u0445 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0443\u0437\u043b\u043e\u0432. \u041f\u0435\u0440\u0432\u044b\u043c\u0438 \u0443\u0437\u043b\u0430\u043c\u0438 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0443\u043c\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0435\u0440\u0448\u0438\u043d\u044b \u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431\u0430 (\u043e\u0442\u0440\u0435\u0437\u043a\u0430\/\u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\/\u043a\u0443\u0431\u0430 \u0434\u043b\u044f 1D\/2D\/3D), \u044f\u0432\u043b\u044f\u044e\u0449\u0438\u043c\u0441\u044f \u043d\u0430\u0448\u0438\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432, \u0447\u0442\u043e \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435: <\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c \u0438 \u043b\u0435\u0433\u043a\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u043c, \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0435\u0433\u043e \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f\u00a0<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044f \u0432\u0437\u044f\u043b \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u0435\u0432\u043a\u043b\u0438\u0434\u043e\u0432\u043e\u0439 \u043d\u043e\u0440\u043c\u044b \u0438 \u0442\u043e\u0447\u043a\u0438-\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0430\u043c\u0438 \u043e\u0442\u0440\u0435\u0437\u043a\u043e\u0432, \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0436\u0435 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0442\u0440\u0435\u0437\u043a\u0430 \u043d\u0435\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0413\u0440\u0430\u0444\u0438\u043a\u0438 (x-xl)^2 \u0434\u043b\u044f k=3 \u0438 k=5<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0430\u043c \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u0438 \u0442\u043e\u0447\u043a\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u041f\u0430\u0440\u0435\u0442\u043e-\u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 (\u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u043d\u0435\u043b\u044c\u0437\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043e\u0432 \u043d\u0435 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0432 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u0438\u043d, \u044d\u0442\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u0431\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u044d\u043a\u0441\u0442\u0440\u0435\u043c\u0443\u043c\u0430 \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u043e\u043c\u0435\u0440\u043d\u044b\u0445 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u0432)<\/p>\n<p>\u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0431\u0435\u0437 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043a\u0440\u0438\u0432\u044b\u0445 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0439<\/p>\n<figure class=\"full-width\">\n<div><figcaption>depth = 4, \u0442\u043e \u0435\u0441\u0442\u044c \u0443\u0437\u043b\u043e\u0432 16. \u041a\u0440\u0430\u0441\u043d\u044b\u043c \u043d\u0430 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u0443\u0437\u0435\u043b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438, \u0430 \u0441\u0438\u043d\u0438\u043c \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435. \u041d\u0430 \u043d\u0438\u0436\u043d\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u043a\u0440\u0430\u0441\u043d\u044b\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u044b \u0443\u0437\u043b\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0436\u0435 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435, \u0430 \u0441\u0438\u043d\u0438\u043c \u0442\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0449\u0435 \u043d\u0435\u0442<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u043e \u043a\u0430\u043a \u044d\u0442\u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0431\u043e\u0431\u0449\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f N-\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f? \u0417\u0434\u0435\u0441\u044c \u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431\u044b \u0438 \u0444\u0440\u0430\u043a\u0442\u0430\u043b. \u0422\u043e\u0447\u043a\u0430\u043c\u0438-\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0431\u0443\u0434\u0443\u0442 \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432\u0435\u0440\u0448\u0438\u043d\u044b \u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431\u0430, \u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430  \u0441 \u0432\u0434\u0432\u043e\u0435 \u043c\u0435\u043d\u044c\u0448\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0430 \u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431\u043e\u0432, \u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0449\u0430\u044f \u0444\u0440\u0430\u043a\u0442\u0430\u043b, \u0432\u0435\u0440\u0448\u0438\u043d\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u0434\u0430\u0447\u0438 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0438\u0432\u0430\u043d\u0438\u044f\u00a0<\/p>\n<p>\u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u044d\u0442\u0443 \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0438 \u0432 \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043d\u043e \u043d\u0430 \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u043e\u043c \u0443\u0436\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u0435\u0435<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041a\u0440\u0430\u0441\u043d\u044b\u0435 \u0443\u0436\u0435\u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0443\u0437\u043b\u044b, \u0430 \u0431\u0435\u043b\u044b\u0439 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0439 \u0441\u0435\u0439\u0447\u0430\u0441<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0440\u0435\u0447\u044c \u0438\u0434\u0435\u0442 \u043e \u043f\u043e\u0438\u0441\u043a\u0435 \u043d\u0430 \u0441\u0435\u0442\u043a\u0435, \u0442\u043e \u044f \u0441\u0432\u043e\u0436\u0443 \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u043a \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u043c\u0443, \u0430 \u043d\u0435 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e\u043c\u0443, \u0430 \u044d\u0442\u043e \u0434\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 \u0432\u043a\u043b\u0430\u0434: 1) \u044d\u0442\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043c\u044b \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0447\u0435\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u043f\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438 \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0439, \u0438 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u0434\u0430 \u0435\u0449\u0435 \u0438 \u0441 \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u044b\u043c\u0438 \u043f\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e \u0448\u0430\u0433\u0430 \u0441\u0435\u0442\u043a\u0430\u043c\u0438 2) \u041f\u0430\u0440\u0435\u0442\u043e-\u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0443 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u0430\u043b\u0435\u043a\u043e\u0435 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043e\u0442 0 \u0438 15 \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0442\u0440\u0435\u0437\u043a\u0430 \u044d\u0442\u043e 7.5, \u0430 \u0441\u0430\u043c\u044b\u0445 \u0434\u0430\u043b\u0435\u043a\u0438\u0445 \u0446\u0435\u043b\u044b\u0445 \u0443\u0436\u0435 \u0434\u0432\u0430 &#8212; 7 \u0438 8 \u0438 \u044d\u0442\u0443 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c, \u0438\u043d\u0430\u0447\u0435 \u0431\u0443\u0434\u0443\u0442 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0438 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f <\/p>\n<h3>\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e<\/h3>\n<p>\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0443\u0437\u043b\u043e\u0432 \u043f\u043e \u0441\u0443\u0442\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435\u043c dim-\u0430\u0440\u043d\u043e\u0433\u043e \u0434\u0435\u0440\u0435\u0432\u0430 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u0433\u043b\u0443\u0431\u0438\u043d\u044b \u0438 \u043e\u0431\u0445\u043e\u0434 \u0435\u0433\u043e \u0443\u0437\u043b\u043e\u0432 \u043f\u043e\u044d\u0442\u0430\u0436\u043d\u043e.<\/p>\n<p>\u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0435\u0433\u043e \u0434\u0432\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 &#8212; Hypercube \u0438 ProgressiveGridSearch<\/p>\n<pre><code class=\"python\">import numpy as np from typing import Callable, List, Union  # \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \"\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\" \u0434\u043b\u044f \u0443\u0437\u043b\u043e\u0432-\u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u0449\u0435 \u0438 \u0434\u0430\u0435\u0442 \u043f\u043e\u0442\u043e\u043c\u043a\u043e\u0432 # \u043b\u0435\u0436\u0430\u0449\u0438\u0445 \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0433\u043e \u0433\u0438\u043f\u0435\u0440\u043a\u0443\u0431\u043e\u0432 \u0438 \u0442\u043e\u0436\u0435 \u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \"\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438\" \u0434\u043b\u044f \u0443\u0437\u043b\u043e\u0432-\u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432 class Hypercube:     def __init__(self, resolution_degree: int, start_point: np.array, parent=None):         self.resolution_degree = resolution_degree         self.start_indexes = start_point         self.parent = parent          self.side = 2 ** resolution_degree - 1         self.dim = self.start_indexes.shape[0]          self.node_order_graph = None         self.set_node_order_graph()      def set_node_order_graph(self):         self.node_order_graph = []                  schema_string = '{0:0' + str(self.dim) + 'b}'          for node_number in range(2 ** self.dim):             binary_mask = schema_string.format(node_number)              point = np.array(self.start_indexes)              for index, flag in enumerate(binary_mask):                 if flag == '1':                     point[index] += self.side              self.node_order_graph.append(point)      def split(self):         for node in self.node_order_graph:             yield Hypercube(resolution_degree=self.resolution_degree - 1,                             start_point=np.around((node + self.start_indexes) \/ 2).astype(int),                             parent=self)      def compute_curr_depth(self):         res = 0         if self.parent is None:             return res         else:             parent = self.parent             while parent is not None:                 res += 1                 parent = parent.parent              return res   class ProgressiveGridSearch:     def __init__(self, func: Callable, params: List, stop_criterion: Callable, max_resolution_degree: int = 10):         self.func = func         self.params = params         self.stop_criterion = stop_criterion         self.max_resolution_degree = max_resolution_degree          self.number_of_nodes = 2 ** max_resolution_degree          self.dim = 0         self.grids = []          for param in self.params:             if type(param) is Real:                 self.dim += 1                 grid = np.linspace(param.left_boundary, param.right_boundary, num=self.number_of_nodes)                 self.grids.append(grid)             elif type(param) is Integer:                 self.dim += 1                 grid = np.arange(param.left_boundary, param.right_boundary)                 self.grids.append(grid)          self.mask = np.zeros([self.number_of_nodes] * self.dim).astype(bool)         self.values = np.full_like(self.mask, fill_value=np.nan).astype(float)          self.nodes_queue = None         self.curr_hypercube = None         self.number_of_functions_calls = None      def __iter__(self):         hypercube = Hypercube(resolution_degree=self.max_resolution_degree, start_point=np.zeros(self.dim).astype(int))          self.generator = (curr_hc.node_order_graph for curr_hc in self.append_generator(hypercube))         self.number_of_functions_calls = 0          self.nodes_queue = iter([])         return self      def __next__(self):         try:             node_indexes = next(self.nodes_queue)              # \u042d\u0442\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0439             if self.mask[tuple(node_indexes)].item() is True:                 return next(self)              node_point = []              for k, index in enumerate(node_indexes):                 node_point.append(self.grids[k][index])              node_point = np.array(node_point)              # \u042d\u0442\u043e \u043f\u0440\u0435\u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0439             if self.curr_hypercube.resolution_degree != self.max_resolution_degree and self.curr_hypercube.resolution_degree != 1:                 if np.any(node_indexes % 2 == 0) and np.sum(node_indexes) % 2 == 0 and np.sum(node_point) != 0:                     return next(self)                  b = node_indexes - self.curr_hypercube.start_indexes                  if np.any(b % 2 == 0) and np.all(node_indexes != 0):                     return next(self)              self.mask[tuple(node_indexes)] = True             self.number_of_functions_calls += 1              return node_point, node_indexes         except StopIteration:             self.nodes_queue = iter(next(self.generator))             return next(self)      def append_generator(self, hypercube: Hypercube):         lst = [hypercube]          while lst:              self.curr_hypercube = lst.pop(0)             yield self.curr_hypercube              if self.curr_hypercube.resolution_degree == 1:                 continue              for sub_elem in self.curr_hypercube.split():                 lst.append(sub_elem)      # \u0417\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0441\u0430\u043c \u0446\u0438\u043a\u043b \u043f\u043e\u0438\u0441\u043a\u0430 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u0430\/\u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430 \u0441\u0435\u0442\u043a\u0435 \u0441 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f\u043c\u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-397425","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/397425","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=397425"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/397425\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=397425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=397425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=397425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}