{"id":304658,"date":"2020-06-01T15:01:06","date_gmt":"2020-06-01T15:01:06","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=304658"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=304658","title":{"rendered":"\u0410\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0448\u0435\u0434\u0435\u0432\u0440\u044b \u0436\u0438\u0432\u043e\u043f\u0438\u0441\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e ML"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/504806\/\">\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442! \u041e\u0434\u0438\u043d \u043c\u043e\u0439 \u0434\u0440\u0443\u0433 \u0443\u0447\u0438\u0442\u0441\u044f \u043d\u0430 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0430 \u0438 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043e \u0442\u043e\u043c \u0438\u043b\u0438 \u0438\u043d\u043e\u043c \u0448\u0435\u0434\u0435\u0432\u0440\u0435, \u043e \u043d\u0435\u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043c\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u0435\u043c\u0430\u0445, \u043e \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u0438, \u043e\u0431 \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u0438 \u0436\u0438\u0432\u043e\u043f\u0438\u0441\u0438 \u0438 \u0433\u0435\u043d\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0430\u0445. \u041d\u0430 \u0444\u043e\u043d\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0433\u043e \u0432\u043e\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0433\u043e\u0434\u044f\u0442\u0441\u044f \u043b\u0438 \u043c\u043e\u0438 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f \u0438 \u043d\u0430\u0432\u044b\u043a\u0438 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043c\u0438\u0440\u043e\u0432\u043e\u0433\u043e \u043a\u0443\u043b\u044c\u0442\u0443\u0440\u043d\u043e\u0433\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u0438\u044f.<\/p>\n<p>  \u0412\u043e\u043e\u0440\u0443\u0436\u0438\u0432\u0448\u0438\u0441\u044c \u0441\u0430\u043c\u043e\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0430\u0440\u0441\u0435\u0440\u043e\u043c \u043f\u043e\u0434 \u043f\u043e\u043a\u0440\u043e\u0432\u043e\u043c \u043d\u043e\u0447\u0438 \u044f \u0432\u043e\u0440\u0432\u0430\u043b\u0441\u044f \u0432 \u043e\u043d\u043b\u0430\u0439\u043d \u0433\u0430\u043b\u0435\u0440\u0435\u044e \u0438 \u0432\u044b\u043d\u0435\u0441 \u043e\u0442\u0442\u0443\u0434\u0430 \u043f\u043e\u0447\u0442\u0438 50 \u0442\u044b\u0441\u044f\u0447 \u043a\u0430\u0440\u0442\u0438\u043d. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c, \u0447\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u0441 \u044d\u0442\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0435 ML \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b (\u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e, \u0442\u0440\u0430\u0444\u0438\u043a).<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u041d\u0430\u0438\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/h2>\n<p>  \u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u0437 \u043d\u0430\u0441 \u043f\u043e\u043c\u043d\u044f\u0442 \u0438\u0437 \u0443\u0440\u043e\u043a\u043e\u0432 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0431\u0430\u0439\u0442, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0445 \u0437\u0430 \u0446\u0432\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0438\u043a\u0441\u0435\u043b\u044f. \u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0445\u0435\u043c\u0430 RGB, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0446\u0432\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d \u043d\u0430 \u0442\u0440\u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 (\u043a\u0440\u0430\u0441\u043d\u044b\u0439\/\u0437\u0435\u043b\u0435\u043d\u044b\u0439\/\u0441\u0438\u043d\u0438\u0439), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438 \u0441\u0443\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0441 \u0447\u0435\u0440\u043d\u044b\u043c \u0444\u043e\u043d\u043e\u043c \u0434\u0430\u044e\u0442 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439, \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c \u0446\u0432\u0435\u0442.<\/p>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0441\u0435\u0439\u0447\u0430\u0441 \u0434\u043b\u044f \u043d\u0430\u0441 \u0432\u0441\u0435 \u0448\u0435\u0434\u0435\u0432\u0440\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441\u0442\u0430\u043b\u0438 \u043b\u0438\u0448\u044c \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438 \u0447\u0438\u0441\u0435\u043b \u043d\u0430 \u0434\u0438\u0441\u043a\u0435, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u044d\u0442\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u043e\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c, \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0432 \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0442\u043e\u0442 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430.<\/p>\n<p>  \u0414\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c numpy, \u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e matplotlib.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\"># \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0441 \u0434\u0438\u0441\u043a\u0430 \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u044b def load_image_by_index(i):     image_path = paintings_links.iloc[i].img_path     img = cv2.imdecode(np.fromfile(str(Path.cwd()\/image_path), np.uint8), cv2.IMREAD_UNCHANGED)     return img     # \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u0435 def get_hist_data_by_index(img_index):     bin_div = 5      img = load_image_by_index(img_index)     b, bins=  np.histogram(img[:,:,0], bins=255\/\/bin_div, range=(0,255), density=True)     g = np.histogram(img[:,:,1], bins=255\/\/bin_div, range=(0,255), density=True)[0]     r = np.histogram(img[:,:,2], bins=255\/\/bin_div, range=(0,255), density=True)[0]     return bins, r, g, b # \u0441\u0442\u0440\u043e\u0438\u043c \u043a\u0430\u0440\u0442\u0438\u043d\u0443 \u0438 \u0440\u044f\u0434\u044b\u0448\u043a\u043e\u043c \u0441 \u043d\u0435\u0439 \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b def plot_image_with_hist_by_index(img_index, height=6):     bins, r, g, b = get_hist_data_by_index(img_index)     img = load_image_by_index(img_index)     fig = plt.figure(constrained_layout=True)      if img.shape[0] &lt; img.shape[1]:         width_ratios = [3,1]     else:         width_ratios = [1,1]              gs = GridSpec(3, 2, figure=fig,                    width_ratios = [3,1]                  )     ax_img = fig.add_subplot(gs[:,0])      ax_r = fig.add_subplot(gs[0, 1])     ax_g = fig.add_subplot(gs[1, 1], sharey=ax_r)     ax_b = fig.add_subplot(gs[2, 1], sharey=ax_r)      ax_img.imshow(cv2.cvtColor(img, cv2.COLOR_BGR2RGB),aspect = 'equal')     ax_img.axis('off')          ax_r.bar(bins[:-1], r, width = 5, color='red',alpha=0.7)     ax_g.bar(bins[:-1], g, width = 5, color='green',alpha=0.7)     ax_b.bar(bins[:-1], b, width = 5, color='blue',alpha=0.7)      ax_r.axes.get_xaxis().set_ticks([])     ax_r.axes.get_yaxis().set_ticks([])     ax_g.axes.get_xaxis().set_ticks([])     ax_g.axes.get_yaxis().set_ticks([])     ax_b.axes.get_xaxis().set_ticks([])     ax_b.axes.get_yaxis().set_ticks([])     fig.suptitle(&quot;{} - {}&quot;.format(paintings_links.iloc[img_index].artist_name,                                   paintings_links.iloc[img_index].picture_name),ha= &quot;left&quot;)          fig.set_figheight(height)     plt.axis('tight')     if img.shape[0] &lt; img.shape[1]:         fig.set_figwidth(img.shape[1] *height \/ img.shape[0] *1.25)     else:         fig.set_figwidth(img.shape[1] *height \/ img.shape[0] *1.5)     plt.show() <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <b>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/yj\/ac\/bc\/yjacbc51wte7lh07zahocnlozzi.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wp\/yy\/qp\/wpyyqpcp92rc4bx1bpn-x5kmpyg.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/a3\/yi\/ha\/a3yihacuqjnukieinyqixfwjfbi.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/pr\/j2\/xq\/prj2xqxmdnulpfcsysnslhlrbyi.png\"\/><\/p>\n<p>  \u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u043d\u0430 \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u0430\u0440\u0442\u0438\u043d \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0438\u0445 \u0444\u043e\u0440\u043c\u0430 \u0432\u0435\u0441\u044c\u043c\u0430 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u0430 \u0438 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u0430\u0440\u044c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u043a \u0440\u0430\u0431\u043e\u0442\u0435.<\/p>\n<p>  \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u044d\u0442\u0438\u043c \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u044d\u0442\u043e \u043d\u0435\u043a\u0438\u0439 \u0441\u043b\u0435\u043f\u043e\u043a \u043a\u0430\u0440\u0442\u0438\u043d\u044b, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0435\u0435 \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u0435\u0440\u0435 \u043e\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c. <\/p>\n<h2>\u041f\u0435\u0440\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c\u043a\u0430<\/h2>\n<p>  \u0421\u043e\u0431\u0435\u0440\u0435\u043c \u0432\u0441\u0435 \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432 \u043e\u0434\u0438\u043d \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0434\u0430\u0442\u0430\u0441\u0435\u0442 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u0438\u0441\u043a\u0430\u0442\u044c \u0432 \u043d\u0435\u043c \u043d\u0435\u043a\u0438\u0435 \u201c\u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0438\u201d. \u0411\u044b\u0441\u0442\u0440\u044b\u0439, \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043c\u043e\u0439 \u0441\u0430\u043c\u044b\u0439 \u043b\u044e\u0431\u0438\u043c\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 \u2014 one class svm. \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 sklearn <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\"># \u043f\u0440\u043e\u0431\u0435\u0436\u0438\u043c\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c \u0432 \u043d\u0430\u0448\u0435\u0439 \u0431\u0430\u0437\u0435, \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438 \u0441\u043e\u0431\u0435\u0440\u0435\u043c \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0434\u0430\u0442\u0430\u0441\u0435\u0442 res = [] error = [] for img_index in tqdm(range(paintings_links.shape[0])):     try:         bins, r, g, b = get_hist_data_by_index(img_index)         res.append(np.hstack([r,g,b]))     except:         res.append(np.zeros(153,))         error.append(img_index)          np_res = np.vstack(res) # \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f pd.DataFrame(np_res).to_pickle(&quot;histograms.pkl&quot;) histograms = pd.read_pickle(&quot;histograms.pkl&quot;) # \u043e\u0431\u0443\u0447\u0438\u043c \u043c\u043e\u0434\u0435\u043b\u044c\u043a\u0443. \u043d\u0430 \u0432\u0445\u043e\u0434 \u043e\u043d\u0430 \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u043e\u0442 \u043d\u0430\u0441 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c\u0443\u044e \u0434\u043e\u043b\u044e \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0439. \u043f\u0443\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442 10 \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0439 \u043d\u0430 \u0432\u0435\u0441\u044c \u0434\u0430\u0442\u0430\u0441\u0435\u0442 one_class_svm = OneClassSVM(nu=10 \/ histograms.shape[0], gamma='auto') one_class_svm.fit(histograms[~histograms.index.isin(bad_images)]) # \u0432\u044b\u0434\u0435\u043b\u0438\u043c \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0438 svm_outliers = one_class_svm.predict(histograms) svm_outliers = np.array([1 if label == -1 else 0 for label in svm_outliers]) # \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043c \u0438\u0445 uncommon_images = paintings_links[(svm_outliers ==1) & (~histograms.index.isin(bad_images))].index.values for i in uncommon_images:     plot_image_with_hist_by_index(i,4) <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0436\u0435 \u0430\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u044b \u043d\u0430\u0439\u0434\u0435\u043c \u0432 \u0437\u0430\u043a\u0440\u043e\u043c\u0430\u0445 \u043d\u0430\u0448\u0435\u0439 \u0433\u0430\u043b\u0435\u0440\u0435\u0438.<\/p>\n<p>  <b>\u0420\u0430\u0431\u043e\u0442\u0430, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u0430\u044f \u043a\u0430\u0440\u0430\u043d\u0434\u0430\u0448\u043e\u043c:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/im\/ep\/qu\/imepquuzdn8ke0ew51sn6hn2ivc.png\"\/><br \/>  <b>\u0420\u0430\u0431\u043e\u0442\u0430 \u0432 \u043e\u0447\u0435\u043d\u044c \u0442\u0435\u043c\u043d\u044b\u0445 \u0442\u043e\u043d\u0430\u0445:<\/b><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/lo\/7d\/a8\/lo7da8nynv4qhglimt4bzweldry.png\"\/><br \/>  <b>\u0414\u0430\u043c\u0430 \u0432 \u043a\u0440\u0430\u0441\u043d\u043e\u043c:<\/b><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/rh\/8s\/jf\/rh8sjfwuwvy7drjkvy3fdqycwkw.png\"\/><br \/>  <b>\u0427\u0442\u043e-\u0442\u043e \u0441\u0445\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e\u0435:<\/b><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ep\/eg\/rw\/epegrw0xehln4thu0fpqiwamxiu.png\"\/><br \/>  <b>\u041e\u0447\u0435\u043d\u044c \u0442\u0435\u043c\u043d\u044b\u0439 \u043f\u043e\u0440\u0442\u0440\u0435\u0442:<\/b><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ny\/-9\/vj\/ny-9vjxin4gszzsfb4paptnbjqm.png\"\/><\/p>\n<h2>\u041f\u043e\u0438\u0441\u043a \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u0440\u0430\u0431\u043e\u0442<\/h2>\n<p>  \u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u043d\u0430\u0448\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u0447\u0442\u043e-\u0442\u043e \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0435, \u0434\u0430\u043b\u0435\u043a\u043e\u0435 \u043e\u0442 \u0432\u0441\u0435\u0433\u043e \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e.<\/p>\n<p>  \u0410 \u043c\u043e\u0436\u0435\u043c \u043b\u0438 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u0431\u043b\u0438\u0437\u043a\u0438\u0435 \u043f\u043e \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u044b?<\/p>\n<p>  \u0421\u0435\u0439\u0447\u0430\u0441 \u043a\u0430\u0436\u0434\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u0430 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u043c \u0438\u0437 153 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 (\u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0438 \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0431\u0438\u043b \u043d\u0430 \u0431\u0438\u043d\u044b \u043f\u043e 5 \u0435\u0434\u0438\u043d\u0438\u0446 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u0438, \u0438\u0442\u043e\u0433\u043e 255\/5 = 51 \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430). <\/p>\n<p>  \u201c\u0421\u0442\u0435\u043f\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0435\u0441\u0442\u0438\u201d \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0432 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u043c\u0438 \u043d\u0430\u0441 \u0432\u0435\u043a\u0442\u043e\u0440\u0430\u043c\u0438. \u0417\u043d\u0430\u043a\u043e\u043c\u043e\u0435 \u0435\u0449\u0435 \u0441\u043e \u0448\u043a\u043e\u043b\u044b \u0435\u0432\u043a\u043b\u0438\u0434\u043e\u0432\u043e \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0437\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0443\u0434\u0435\u043b\u044f\u0442\u044c \u0434\u043b\u0438\u043d\u0435 \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0430 \u043d\u0430\u043c \u0431\u044b \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0443\u0434\u0435\u043b\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043d\u0430\u0431\u043e\u0440\u0430\u043c \u043e\u0442\u0442\u0435\u043d\u043a\u043e\u0432, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u043c \u043a\u0430\u0440\u0442\u0438\u043d\u0443. \u0417\u0434\u0435\u0441\u044c \u043d\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u0430 \u043a\u043e\u0441\u0438\u043d\u0443\u0441\u043d\u0430\u044f \u043c\u0435\u0440\u0430 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u0448\u0438\u0440\u043e\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0435 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 scipy.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\"># \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u043f\u043e \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0439 \u0433\u0430\u043c\u043c\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u044b from scipy import spatial def find_closest(target_id,n=5):     distance_vector = np.apply_along_axis(spatial.distance.cosine,                         arr=histograms,                        axis=1,                        v=histograms.values[target_id])     return np.argsort(distance_vector)[:n] <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <b>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u201c\u0414\u0435\u0432\u044f\u0442\u044b\u0439 \u0432\u0430\u043b\u201d \u0410\u0439\u0432\u0430\u0437\u043e\u0432\u0441\u043a\u043e\u0433\u043e.<\/b><\/p>\n<p>  <b>\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/td\/fu\/ch\/tdfuchnecvcct86pylvewtdjge4.png\"\/><\/p>\n<p>  <b>\u041f\u043e\u0445\u043e\u0436\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u044b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/29\/vx\/qf\/29vxqf1kta5ltjx6s5-hjrypjai.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sz\/df\/yq\/szdfyqii6l1u5xcdt9euoa_ox5e.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-n\/ep\/i8\/-nepi8un8if2kireirtuebrrcqo.png\"\/><\/p>\n<p>  <b>\u0427\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u201c\u0426\u0432\u0435\u0442\u0443\u0449\u0438\u0439 \u043c\u0438\u043d\u0434\u0430\u043b\u044c\u201d \u0412\u0430\u043d \u0413\u043e\u0433\u0430.<\/b><\/p>\n<p>  <b>\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/az\/uo\/bt\/azuobt-fygm4g4rebyllquelwei.png\"\/><\/p>\n<p>  <b>\u041f\u043e\u0445\u043e\u0436\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u044b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/k-\/ja\/du\/k-jaduimeo1mqfxizf2kjwrricy.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/lr\/oy\/-g\/lroy-g1ndcd2amrspvepvnpp1ui.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/7k\/eh\/90\/7keh90lya9xuhwjvksb1gaamzhw.png\"\/><\/p>\n<p>  <b>\u0410 \u0447\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u0443\u044e \u0440\u0430\u043d\u0435\u0435 \u0430\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u0430\u043c\u0443 \u0432 \u043a\u0440\u0430\u0441\u043d\u043e\u043c?<\/b><\/p>\n<p>  <b>\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/rh\/8s\/jf\/rh8sjfwuwvy7drjkvy3fdqycwkw.png\"\/><\/p>\n<p>  <b>\u041f\u043e\u0445\u043e\u0436\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u044b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/o3\/qd\/qd\/o3qdqddzr51pshyhebapl7qjk7w.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/m2\/5b\/iq\/m25biqtph5egli7uhnpreu8m8bk.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/cc\/rk\/fl\/ccrkfluoskwpjq-gs1mk9atx1w0.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/we\/nr\/hz\/wenrhzhwffmjh2qql4pmcpynvk4.png\"\/><\/p>\n<h2>\u0426\u0432\u0435\u0442\u043e\u0432\u044b\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430<\/h2>\n<p>  \u0414\u043e \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043c\u044b \u0441 \u0432\u0430\u043c\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0432 \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 RGB. \u041e\u043d\u043e \u0432\u0435\u0441\u044c\u043c\u0430 \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u043d\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0437\u0430\u0434\u0430\u0447.<\/p>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430 \u0433\u0440\u0430\u043d\u0438 \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u0443\u0431\u0430 RGB<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/or\/q2\/3s\/orq23sn8jnhe9kkhnwnudwbeug0.png\"\/><\/p>\n<p>  \u041d\u0435\u0432\u043e\u043e\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u043c \u0432\u0437\u0433\u043b\u044f\u0434\u043e\u043c \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043d\u0430 \u0433\u0440\u0430\u043d\u044f\u0445 \u0435\u0441\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0443\u0447\u0430\u0441\u0442\u043a\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0448 \u0433\u043b\u0430\u0437 \u043d\u0435 \u0432\u0438\u0434\u0438\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439, \u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0437\u043e\u043d\u044b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0448\u0435 \u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u0440\u0435\u0437\u043a\u043e. \u0422\u0430\u043a\u0430\u044f \u043d\u0435\u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u044f \u043c\u0435\u0448\u0430\u0435\u0442 \u043c\u0430\u0448\u0438\u043d\u0435 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u0446\u0432\u0435\u0442\u0430 \u0442\u0430\u043a, \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b \u0431\u044b \u0447\u0435\u043b\u043e\u0432\u0435\u043a.<\/p>\n<p>  \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0446\u0432\u0435\u0442\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432, \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u043a\u0430\u043a\u043e\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0437\u0430\u0434\u0430\u0447. <\/p>\n<p>  \u0412\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043b\u044e\u0431\u0438\u043c\u043e\u0435 \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0431\u0443\u0434\u0435\u043c, \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044f \u0435\u0433\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0441\u0442\u044c \u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u0414\u0430\u0432\u0430\u0439\u0442\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0430 \u043f\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u043c\u0443 \u0445\u043e\u043b\u0441\u0442\u0430!<\/p>\n<p>  \u0412\u043e\u0437\u044c\u043c\u0435\u043c \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u043e\u0432\u044b\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 opencv, \u043e\u0431\u0443\u0447\u0438\u043c xgboost \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043d\u0430 \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0439 \u0432\u044b\u0431\u043e\u0440\u043a\u0435.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\"># \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043d\u0430\u043c \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432 \u043d\u0443\u0436\u043d\u043e\u043c \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 def get_hist_data_by_index_and_colorspace(bgr_img, colorspace):     bin_div = 5     img_cvt = cv2.cvtColor(bgr_img, getattr(cv2, colorspace))     c1, bins =  np.histogram(img_cvt[:,:,0], bins=255\/\/bin_div, range=(0,255), density=True)     c2 = np.histogram(img_cvt[:,:,1], bins=255\/\/bin_div, range=(0,255), density=True)[0]     c3 = np.histogram(img_cvt[:,:,2], bins=255\/\/bin_div, range=(0,255), density=True)[0]     return bins, c1, c2, c3 # \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432\u0441\u0435\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0432\u043e \u0432\u0441\u0435\u0445 \u0446\u0432\u0435\u0442\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430\u0445 all_res = {} all_errors = {} for colorspace in list_of_color_spaces:     all_res[colorspace] =[]     all_errors[colorspace] =[] for img_index in tqdm(range(paintings_links.shape[0]) ):          for colorspace in list_of_color_spaces:         try:             bgr_img = load_image_by_index(img_index)             bins, c1, c2, c3 = get_hist_data_by_index_and_colorspace(bgr_img, colorspace)             all_res[colorspace].append(np.hstack([c1, c2, c3]))         except:             all_res[colorspace].append(np.zeros(153,))             all_errors[colorspace].append(img_index) all_res_np = {} for colorspace in list_of_color_spaces:       all_res_np[colorspace] = np.vstack(all_res[colorspace]) res = [] # \u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043c \u043c\u043e\u0434\u0435\u043b\u044c\u043a\u0443 for colorspace in tqdm(list_of_color_spaces):     temp_df = pd.DataFrame(all_res_np.get(colorspace))     temp_x_train =   temp_df[temp_df.index.isin(X_train.index.values)]     temp_x_test =   temp_df[temp_df.index.isin(X_test.index.values)]      xgb=XGBClassifier()     xgb.fit(temp_x_train, y_train)     current_res = classification_report(y_test, xgb.predict(temp_x_test), labels=None, target_names=None, output_dict=True).get(&quot;macro avg&quot;)     current_res[&quot;colorspace&quot;] = colorspace     res.append(current_res) pd.DataFrame(res).sort_values(by=&quot;f1-score&quot;) <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<tr>\n<th><b>precision<\/b><\/th>\n<th><b>recall<\/b><\/th>\n<th><b>f1-score<\/b><\/th>\n<th><b>colorspace<\/b><\/th>\n<\/tr>\n<tr>\n<td>0.001329<\/td>\n<td>0.003663<\/td>\n<td>0.001059<\/td>\n<td>COLOR_BGR2YUV<\/td>\n<\/tr>\n<tr>\n<td>0.003229<\/td>\n<td>0.004689<\/td>\n<td>0.001849<\/td>\n<td>COLOR_BGR2RGB<\/td>\n<\/tr>\n<tr>\n<td>0.003026<\/td>\n<td>0.004131<\/td>\n<td>0.001868<\/td>\n<td>COLOR_BGR2HSV<\/td>\n<\/tr>\n<tr>\n<td>0.002909<\/td>\n<td>0.004578<\/td>\n<td>0.001934<\/td>\n<td>COLOR_BGR2XYZ<\/td>\n<\/tr>\n<tr>\n<td>0.003545<\/td>\n<td>0.004434<\/td>\n<td>0.001941<\/td>\n<td>COLOR_BGR2HLS<\/td>\n<\/tr>\n<tr>\n<td>0.003922<\/td>\n<td>0.004784<\/td>\n<td>0.002098<\/td>\n<td>COLOR_BGR2LAB<\/td>\n<\/tr>\n<tr>\n<td>0.005118<\/td>\n<td>0.004836<\/td>\n<td>0.002434<\/td>\n<td>COLOR_BGR2LUV<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>  \u041e\u0449\u0443\u0442\u0438\u043c\u044b\u0439 \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0434\u0430\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 LUV.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u0448\u043a\u0430\u043b\u044b \u0441\u0442\u0430\u0440\u0430\u043b\u0438\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u043c \u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0446\u0432\u0435\u0442\u0430 \u0432\u0434\u043e\u043b\u044c \u043e\u0441\u0435\u0439 \u0448\u043a\u0430\u043b\u044b. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u0438 \u0435\u0433\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043e\u0446\u0435\u043d\u043a\u0430 \u0431\u0443\u0434\u0443\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u044b. <\/p>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u0440\u0435\u0437 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u043f\u0440\u0438 \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u0438 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043e\u0441\u0435\u0439:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/62\/_a\/xy\/62_axyknj2mifko-ust0y7sppf0.png\"\/><\/p>\n<h2>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043c\u043e\u0434\u0435\u043b\u044c\u043a\u0443<\/h2>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0448\u0430\u0433\u0430 \u0443 \u043d\u0430\u0441 \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u043c\u043e\u0434\u0435\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u043c\u0435\u0435\u0442 \u0447\u0442\u043e-\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c.<br \/>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u044c\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u044b \u0443\u0437\u043d\u0430\u0451\u043c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u043e.  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<tr>\n<th><b>precision<\/b><\/th>\n<th><b>recall<\/b><\/th>\n<th><b>f1-score<\/b><\/th>\n<th><b>\u0425\u0443\u0434\u043e\u0436\u043d\u0438\u043a<\/b><\/th>\n<\/tr>\n<tr>\n<td>0.042553<\/td>\n<td>0.019417<\/td>\n<td>0.026667<\/td>\n<td>\u0418\u043b\u044c\u044f \u0415\u0444\u0438\u043c\u043e\u0432\u0438\u0447 \u0420\u0435\u043f\u0438\u043d<\/td>\n<\/tr>\n<tr>\n<td>0.055556<\/td>\n<td>0.020000<\/td>\n<td>0.029412<\/td>\n<td>\u0423\u0438\u043b\u044c\u044f\u043c \u041c\u0435\u0440\u0440\u0438\u0442 \u0427\u0435\u0439\u0437<\/td>\n<\/tr>\n<tr>\n<td>0.071429<\/td>\n<td>0.022222<\/td>\n<td>0.033898<\/td>\n<td>Bonnard, Pierre<\/td>\n<\/tr>\n<tr>\n<td>0.035461<\/td>\n<td>0.035211<\/td>\n<td>0.035336<\/td>\n<td>\u0414\u0436\u0438\u043b \u042d\u043b\u0432\u0433\u0440\u0435\u043d<\/td>\n<\/tr>\n<tr>\n<td>0.100000<\/td>\n<td>0.021739<\/td>\n<td>0.035714<\/td>\n<td>\u0416\u0430\u043d \u041e\u0433\u044e\u0441\u0442 \u0414\u043e\u043c\u0438\u043d\u0438\u043a \u042d\u043d\u0433\u0440<\/td>\n<\/tr>\n<tr>\n<td>0.022814<\/td>\n<td>0.224066<\/td>\n<td>0.041411<\/td>\n<td>\u041f\u044c\u0435\u0440 \u041e\u0433\u044e\u0441\u0442 \u0420\u0435\u043d\u0443\u0430\u0440<\/td>\n<\/tr>\n<tr>\n<td>0.100000<\/td>\n<td>0.028571<\/td>\n<td>0.044444<\/td>\n<td>\u0410\u043b\u044c\u0431\u0435\u0440\u0442 \u0411\u0438\u0440\u0448\u0442\u0430\u0434\u0442<\/td>\n<\/tr>\n<tr>\n<td>0.250000<\/td>\n<td>0.032258<\/td>\n<td>0.057143<\/td>\n<td>\u0425\u0430\u043d\u0441 \u0417\u0430\u0446\u043a\u0430<\/td>\n<\/tr>\n<tr>\n<td>0.030396<\/td>\n<td>0.518797<\/td>\n<td>0.057428<\/td>\n<td>\u041a\u043b\u043e\u0434 \u041e\u0441\u043a\u0430\u0440 \u041c\u043e\u043d\u0435<\/td>\n<\/tr>\n<tr>\n<td>0.250000<\/td>\n<td>0.037037<\/td>\n<td>0.064516<\/td>\n<td>Girotto, Walter<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>  \u0421\u0430\u043c\u0438 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0434\u0430\u043b\u0435\u043a\u0438 \u043e\u0442 \u0438\u0434\u0435\u0430\u043b\u0430, \u043d\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u043c\u0430\u043b\u0430\u044f \u0434\u043e\u043b\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0440\u0430\u0431\u043e\u0442\u0435. \u0425\u0443\u0434\u043e\u0436\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432. \u0422\u043e, \u0447\u0442\u043e \u043c\u044b \u043d\u0430\u0448\u043b\u0438 \u0432 \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u00ab\u043f\u043e\u0447\u0435\u0440\u043a\u00bb \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0430 \u044d\u0442\u043e \u0443\u0436\u0435 \u043f\u043e\u0431\u0435\u0434\u0430.<\/p>\n<p>  \u0412\u044b\u0431\u0435\u0440\u0435\u043c \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u043e\u0432 \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430. \u041f\u0443\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u041a\u043b\u043e\u0434 \u041e\u0441\u043a\u0430\u0440 \u041c\u043e\u043d\u0435 (\u0441\u0434\u0435\u043b\u0430\u044e \u043f\u0440\u0438\u044f\u0442\u043d\u043e \u0441\u0443\u043f\u0440\u0443\u0433\u0435, \u0435\u0439 \u043d\u0440\u0430\u0432\u044f\u0442\u0441\u044f \u0438\u043c\u043f\u0440\u0435\u0441\u0441\u0438\u043e\u043d\u0438\u0441\u0442\u044b).<\/p>\n<p>  \u0412\u043e\u0437\u044c\u043c\u0435\u043c \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u044b, \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043d\u0430\u043c \u0430\u0432\u0442\u043e\u0440\u0430 \u0438 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0447\u0430\u0441\u0442\u043e\u0442\u044b  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<tr>\n<th><b>\u041f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0430\u0432\u0442\u043e\u0440<\/b><\/th>\n<th><b>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u0439<\/b><\/th>\n<\/tr>\n<tr>\n<td>\u041a\u043b\u043e\u0434 \u041e\u0441\u043a\u0430\u0440 \u041c\u043e\u043d\u0435<\/td>\n<td>186<\/td>\n<\/tr>\n<tr>\n<td>\u041f\u044c\u0435\u0440 \u041e\u0433\u044e\u0441\u0442 \u0420\u0435\u043d\u0443\u0430\u0440<\/td>\n<td>171<\/td>\n<\/tr>\n<tr>\n<td>\u0412\u0438\u043d\u0441\u0435\u043d\u0442 \u0412\u0430\u043d \u0413\u043e\u0433<\/td>\n<td>25<\/td>\n<\/tr>\n<tr>\n<td>\u041f\u0438\u0442\u0435\u0440 \u041f\u0430\u0443\u043b\u044c \u0420\u0443\u0431\u0435\u043d\u0441<\/td>\n<td>19<\/td>\n<\/tr>\n<tr>\n<td>\u0413\u044e\u0441\u0442\u0430\u0432 \u0414\u043e\u0440\u0435<\/td>\n<td>17<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>  \u041c\u043d\u043e\u0433\u0438\u0435 \u043b\u044e\u0434\u0438, \u0441\u043a\u043b\u043e\u043d\u043d\u044b \u043f\u0443\u0442\u0430\u0442\u044c \u041c\u043e\u043d\u0435 \u0438 \u041c\u0430\u043d\u0435, \u0430 \u043d\u0430\u0448\u0430 \u043c\u043e\u0434\u0435\u043b\u044c\u043a\u0430 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u0443\u0442\u0430\u0442\u044c \u0435\u0433\u043e \u0441 \u0420\u0435\u043d\u0443\u0430\u0440\u043e\u043c \u0438 \u0412\u0430\u043d \u0413\u043e\u0433\u043e\u043c. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043f\u043e \u043c\u043d\u0435\u043d\u0438\u044e \u043c\u043e\u0434\u0435\u043b\u044c\u043a\u0438 \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u0412\u0430\u043d \u0413\u043e\u0433\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/u2\/ft\/la\/u2ftlay3hv5v0quac6zbacyvgjc.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/t-\/fz\/0h\/t-fz0hh74hxcopgjzpbyvi69b3c.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sx\/zq\/y7\/sxzqy7ofzv-gem6a2s2akx1d2j4.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/gz\/c3\/p1\/gzc3p1g2gycyqmnnqdo6uyjga2a.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wi\/s8\/ql\/wis8ql7ko3batjx-n6e6jcfhvic.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/k9\/pw\/dy\/k9pwdynhkux1h0mma8jvu2iaxpg.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/mm\/qy\/qk\/mmqyqkpc-54ki_kqcg8gcvleqaw.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/_w\/yp\/t9\/_wypt9veh0hed6vnnbkpb4ltswg.png\"\/><\/p>\n<p>  \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043d\u0430\u0448\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u0440\u0430\u0431\u043e\u0442 \u0438 \u043d\u0430\u0439\u0434\u0435\u043c \u043a\u0430\u0440\u0442\u0438\u043d\u044b \u0412\u0430\u043d \u0413\u043e\u0433\u0430, \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u043d\u0430 \u0432\u044b\u0448\u0435\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u044b (\u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u043c \u043c\u0435\u0440\u0438\u0442\u044c \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 LUV).<\/p>\n<p>  <b>\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/2_\/mx\/0q\/2_mx0q2-ue0e7hetq9bdcgxdwl4.png\"\/><\/p>\n<p>  <b>\u041f\u043e\u0445\u043e\u0436\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hd\/fj\/yk\/hdfjykmlx07stpuy48x_4rsr6mg.png\"\/><\/p>\n<p>  <b>\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fm\/4p\/e3\/fm4pe3g6bugjsa2neslxe4rrhye.png\"\/><\/p>\n<p>  <b>\u041f\u043e\u0445\u043e\u0436\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u044b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jl\/j0\/2u\/jlj02uoglr1zhbe3dwhnpqmay2i.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/v9\/bo\/vp\/v9bovpvyl32t8cyl4zwszu59ali.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/1w\/km\/dn\/1wkmdn6vlpbbm30he8ogrmwgfn0.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ih\/93\/hu\/ih93huxi9z6rg2l3hcla3npqucw.png\"\/><\/p>\n<p>  <b>\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/4g\/ub\/qy\/4gubqydk1tjocx0zotewdjhfphq.png\"\/><\/p>\n<p>  <b>\u041f\u043e\u0445\u043e\u0436\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u044b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/h9\/bt\/nr\/h9btnr9g4lsrbfsn5xfgaf7ogxm.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zz\/vc\/mv\/zzvcmv1cg8cnq3zzycuin33yo5m.png\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fe\/o7\/mh\/feo7mhenbz3x-ws_s22r2diwaai.png\"\/><\/p>\n<p>  \u0414\u043e\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0441\u043e\u0431\u043e\u0439 \u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0440\u0443\u0433\u0443 \u0438 \u0443\u0437\u043d\u0430\u043b, \u0447\u0442\u043e \u043f\u043e\u0434\u0445\u043e\u0434 \u0441 \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u043c\u0438 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0433\u0440\u0443\u0431, \u0442\u0430\u043a \u043a\u0430\u043a \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430, \u0430 \u0435\u0433\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0432\u0430\u0436\u043d\u044b \u043d\u0435 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0446\u0432\u0435\u0442\u043e\u0432, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044f. \u0412\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0443 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u043e\u0432 \u0435\u0441\u0442\u044c \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u043a \u0432\u044b\u0431\u043e\u0440\u0443 \u0446\u0432\u0435\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. \u0422\u0430\u043a \u044f \u0443\u0437\u043d\u0430\u043b \u043f\u0440\u043e \u0418\u043e\u0433\u0430\u043d\u043d\u0435\u0441\u0430 \u0418\u0442\u0442\u0435\u043d\u0430 \u0438 \u0435\u0433\u043e \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0439 \u043a\u0440\u0443\u0433.<\/p>\n<h2>\u0426\u0432\u0435\u0442\u043e\u0432\u043e\u0439 \u043a\u0440\u0443\u0433 \u0418\u0442\u0442\u0435\u043d\u0430<\/h2>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/na\/pp\/n0\/nappn0jkkajcnv1aau52ore1j9y.png\"\/><\/p>\n<p>  \u0419\u043e\u0445\u0430\u043d\u043d\u0435\u0441 \u0418\u0442\u0442\u0435\u043d \u2014 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a, \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u043a \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0430 \u0438 \u043f\u0435\u0434\u0430\u0433\u043e\u0433, \u0430\u0432\u0442\u043e\u0440 \u0437\u043d\u0430\u043c\u0435\u043d\u0438\u0442\u044b\u0445 \u043a\u043d\u0438\u0433 \u043e \u0444\u043e\u0440\u043c\u0435 \u0438 \u0446\u0432\u0435\u0442\u0435. \u0426\u0432\u0435\u0442\u043e\u0432\u043e\u0439 \u043a\u0440\u0443\u0433 \u2014 \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0449\u0438\u0439 \u0441\u043e\u0447\u0435\u0442\u0430\u0442\u044c \u0446\u0432\u0435\u0442\u0430 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c \u0433\u043b\u0430\u0437. <\/p>\n<p>  \u041f\u0440\u043e\u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0432\u044b\u0431\u043e\u0440\u0430 \u0446\u0432\u0435\u0442\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/y1\/p8\/dj\/y1p8djuogkryt2cwcixurj5msni.png\"\/><\/p>\n<ol>\n<li>\u041a\u043e\u043c\u043f\u043b\u0438\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 \u2014 \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0435\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u044b\u0445 \u0447\u0430\u0441\u0442\u044f\u0445 \u043a\u0440\u0443\u0433\u0430<\/li>\n<li>\u0421\u043c\u0435\u0436\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 \u2014 \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0435\u0441\u044f \u043f\u043e \u0441\u043e\u0441\u0435\u0434\u0441\u0442\u0432\u0443 \u043d\u0430 \u043a\u0440\u0443\u0433\u0435<\/li>\n<li>\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0442\u0440\u0438\u0430\u0434\u0430 \u2014 \u0446\u0432\u0435\u0442\u0430 \u043d\u0430 \u0432\u0435\u0440\u0448\u0438\u043d\u0430\u0445 \u0440\u0430\u0432\u043d\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0433\u043e \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430<\/li>\n<li>\u041a\u043e\u043d\u0442\u0440\u0430\u0441\u0442\u043d\u0430\u044f \u0442\u0440\u0438\u0430\u0434\u0430 \u2014 \u0446\u0432\u0435\u0442\u0430 \u043d\u0430 \u0432\u0435\u0440\u0448\u0438\u043d\u0430\u0445 \u0440\u0430\u0432\u043d\u043e\u0431\u0435\u0434\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430<\/li>\n<li>\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u2014 \u0446\u0432\u0435\u0442\u0430 \u043d\u0430 \u0432\u0435\u0440\u0448\u0438\u043d\u0430\u0445 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430<\/li>\n<li>\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u2014 \u0446\u0432\u0435\u0442\u0430 \u043d\u0430 \u0432\u0435\u0440\u0448\u0438\u043d\u0430\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430<\/li>\n<\/ol>\n<p>  <\/p>\n<h2>\u0410\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043a\u0430\u043a \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0438<\/h2>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0446\u0432\u0435\u0442\u043e\u0432, \u043b\u0435\u0436\u0430\u0449\u0438\u0445 \u043d\u0430 \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u043c \u043a\u0440\u0443\u0433\u0435, \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432 \u0438\u0445 \u0438\u0437 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/r8\/cj\/t1\/r8cjt1cwf_shz1x2mu7ygzulcba.png\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u043f\u043e\u043f\u0430\u0440\u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0438\u043a\u0441\u0435\u043b\u044c \u043d\u0430\u0448\u0438\u0445 \u043a\u0430\u0440\u0442\u0438\u043d \u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c \u0446\u0432\u0435\u0442\u043e\u0432 \u043a\u0440\u0443\u0433\u0430 \u0418\u0442\u0442\u0435\u043d\u0430. \u041f\u043e\u0434\u043c\u0435\u043d\u0438\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0438\u043a\u0441\u0435\u043b\u044c \u043d\u0430 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u043f\u043e \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u043c\u0443 \u043a\u0440\u0443\u0433\u0443 \u0438 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0446\u0432\u0435\u0442\u043e\u0432 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0435\u0433\u043e\u0441\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\"># \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u044b \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0447\u0430\u0441\u0442\u043e\u0442 \u043f\u043e \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u043c\u0443 \u043a\u0440\u0443\u0433\u0443 def plot_composition_analysis(image_index):     img = load_image_by_index(image_index)     luv_img = cv2.cvtColor(load_image_by_index(image_index), cv2.COLOR_BGR2LUV)     closest_colors = np.argmin(euclidean_distances(luv_img.reshape(-1,3),wheel_colors_luv),axis=1)     wheel_colors2[closest_colors].reshape(luv_img.shape)     color_areas_img = wheel_colors2[closest_colors].reshape(img.shape)      v, c = get_image_colors(image_index)     # \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043c \u0432 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438 \u043e\u0442\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c \u043f\u043e \u0448\u0438\u0440\u0438\u043d\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u044b     c_int = (c*img.shape[1]).astype(int)     c_int_delta = img.shape[1] - sum(c_int)     c_int[np.argmax(c_int)] = c_int[np.argmax(c_int)] + c_int_delta      _ = []      for i, vi in enumerate(v):         bar_width = c_int[i]         _.append(np.tile(wheel_colors2[vi], (150,bar_width,1)))     color_bar_img = np.hstack(_)     final_image = np.hstack([                                 np.vstack([img,                                            np.tile(np.array([254,254,254]),(160,img.shape[1],1))]),                                  np.tile(np.array([254,254,254]),(img.shape[0]+160,10,1)),                                 np.vstack([color_areas_img,                                            np.tile(np.array([254,254,254]),(10,img.shape[1],1)),                                            color_bar_img])                             ])     h = 12     w = h \/ final_image.shape[1] * final_image.shape[0]     fig = plt.figure(figsize=(h,w))     plt.imshow(cv2.cvtColor(final_image.astype(np.uint8), cv2.COLOR_BGR2RGB),interpolation='nearest', aspect='auto')     plt.title(&quot;{} - {}&quot;.format(paintings_links.iloc[image_index].artist_name,                               paintings_links.iloc[image_index].picture_name),ha= &quot;center&quot;)     plt.axis('off'); <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fp\/2p\/ma\/fp2pmaailir_ye0jt1clgagjtvm.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/c1\/4l\/ar\/c14lar4pb5c0kfksw_7lxvmnmpk.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/e5\/j1\/hu\/e5j1huw7dyq6pyoou9nqjzkoss4.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/db\/7f\/v0\/db7fv0-8gzyuipjaqvberc1mr0s.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jj\/3q\/ui\/jj3quitp7yk5grj6xrktbb4ic7q.png\"\/><\/p>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u043b\u0438 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u043a\u0430\u043a \u0441\u043b\u0430\u0431\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c \u201c\u041c\u043e\u043b\u043e\u0434\u0430\u044f \u0430\u0440\u043b\u0435\u0437\u0438\u0430\u043d\u043a\u0430\u201d \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f? \u041f\u043e\u0436\u0430\u043b\u0443\u0439 \u0441\u0442\u043e\u0438\u0442 \u0438\u0437\u043c\u0435\u0440\u044f\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u043d\u043e\u0432\u044b\u0439 \u0446\u0432\u0435\u0442\u043e\u0432, \u043d\u043e \u0438 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u043e \u043e\u0448\u0438\u0431\u043a\u0430\u043c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u2014 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u043d\u0430\u043c \u0432 \u0430\u043d\u0430\u043b\u0438\u0437\u0435.<\/p>\n<p>  \u041d\u043e \u0438 \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u043b\u043e \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0438\u0449\u0435\u043c \u0433\u0430\u0440\u043c\u043e\u043d\u0438\u0447\u043d\u044b\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u043f\u043e \u043a\u0440\u0443\u0433\u0443?<\/p>\n<p>  <b>\u0412\u0441\u0435 \u043a\u043e\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u044b\u0435 \u043f\u0430\u0440\u044b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/lo\/9q\/t4\/lo9qt47hkn0-ghxlp1zqhqyzee4.png\"\/><\/p>\n<p>  <b>\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0442\u0440\u0438\u0430\u0434\u044b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/h-\/al\/sb\/h-alsbdg3ieqzjtbrhal_n8oun0.png\"\/><\/p>\n<p>  <b>\u0418 \u0432\u0441\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u044b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/mv\/xm\/7v\/mvxm7v3-gdy8yv-nqab2zgvhycm.png\"\/><\/p>\n<p>  \u0411\u0443\u0434\u0435\u043c \u0438\u0441\u043a\u0430\u0442\u044c \u044d\u0442\u0438 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u043d\u0430 \u043d\u0430\u0448\u0438\u0445 \u043a\u0430\u0440\u0442\u0438\u043d\u0430\u0445, \u043d\u0430\u0439\u0434\u0435\u043c \u0441\u0430\u043c\u044b\u0435 \u0432\u0435\u0441\u043e\u043c\u044b\u0435 (\u043f\u043e \u0447\u0430\u0441\u0442\u043e\u0442\u0435) \u0438 <br \/>  \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f.<\/p>\n<p>  <b>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0430\u0440\u044b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/na\/xj\/hz\/naxjhz31yyujq1zwbvkhzhoqfsk.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/f4\/-r\/kg\/f4-rkgkuzsvl_zgu9kmzb3ouccq.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fe\/89\/z3\/fe89z35byjb4wrvemxqyfs9wdby.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ao\/1h\/te\/ao1htez9nac4krnoxh0czm4xv_y.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/cn\/bp\/-h\/cnbp-h85tasbu2-_tpqmf2tbmle.png\"\/><\/p>\n<p>  <b>\u0417\u0430\u0442\u0435\u043c \u0442\u0440\u0438\u0430\u0434\u044b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/qb\/ei\/vj\/qbeivjrfg4ychewj5m4a2ooazsc.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/kn\/mb\/np\/knmbnpnuqujjzo3xp-utw5b7n8w.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fw\/ak\/g9\/fwakg96zbki7kyynnh0fcphxyug.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/s6\/ol\/n7\/s6oln7t05tlrf3ad3xm7m0zyw84.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/i-\/9n\/or\/i-9norvbf3gp8i4jyhqrkklks10.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/q5\/nt\/8b\/q5nt8by4_qtewnooas-lqfzarfc.png\"\/><\/p>\n<p>  <b>\u0418, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u044b:<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/10\/_y\/0c\/10_y0cwv4uw4-bua9bbsy3kmnfa.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sz\/rc\/3q\/szrc3qvqb8d4vaewweorjotm2ds.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/0h\/vh\/0x\/0hvh0xpslvtkkva_xk_1xwb9zqc.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/uj\/4l\/_d\/uj4l_d5fwzhgnrd_zjcqy4raxmu.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/bv\/q9\/ls\/bvq9lsyij7yfgg36aul1sg1srdc.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/m2\/rw\/yq\/m2rwyqruadciqfaf6su5jeji78i.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/s_\/pv\/gk\/s_pvgkbr9-jp2zp-egznee0ndpc.png\"\/><\/p>\n<p>  \u041d\u0430 \u0433\u043b\u0430\u0437\u043e\u043a \u043d\u0435\u043f\u043b\u043e\u0445\u043e, \u043d\u043e \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u043b\u0438 \u043d\u043e\u0432\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0430 \u0440\u0430\u0431\u043e\u0442\u044b?<\/p>\n<p>  \u041e\u0431\u0443\u0447\u0438\u043c \u043c\u043e\u0434\u0435\u043b\u044c\u043a\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0446\u0432\u0435\u0442\u043e\u0432 \u0418\u0442\u0442\u0435\u043d\u0430, \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0433\u0430\u0440\u043c\u043e\u043d\u0438\u0447\u043d\u044b\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u201c\u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u044b\u0445\u201d \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u043e\u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0441\u044f, \u0430 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0438\u043d\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u0430\u043d\u0430\u043b\u0438\u0437\u0443 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b \u043d\u0430\u043c \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438\u0437 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u044b.  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<tr>\n<th><b>precision<\/b><\/th>\n<th><b>recall<\/b><\/th>\n<th><b>f1-score<\/b><\/th>\n<th><b>\u0425\u0443\u0434\u043e\u0436\u043d\u0438\u043a<\/b><\/th>\n<\/tr>\n<tr>\n<td>0.043478<\/td>\n<td>0.012195<\/td>\n<td>0.019048<\/td>\n<td>Martin, Henri-Jean-Guillaume<\/td>\n<\/tr>\n<tr>\n<td>0.032680<\/td>\n<td>0.029070<\/td>\n<td>0.030769<\/td>\n<td>\u041a\u0430\u043c\u0438\u043b\u044c \u041f\u0438\u0441\u0441\u0430\u0440\u0440\u043e<\/td>\n<\/tr>\n<tr>\n<td>0.166667<\/td>\n<td>0.019608<\/td>\n<td>0.035088<\/td>\n<td>\u0416\u0430\u043d-\u041b\u0435\u043e\u043d \u0416\u0435\u0440\u043e\u043c<\/td>\n<\/tr>\n<tr>\n<td>0.076923<\/td>\n<td>0.027778<\/td>\n<td>0.040816<\/td>\n<td>Turner, Joseph Mallord William<\/td>\n<\/tr>\n<tr>\n<td>0.133333<\/td>\n<td>0.024390<\/td>\n<td>0.041237<\/td>\n<td>Poortvliet, Rien<\/td>\n<\/tr>\n<tr>\n<td>0.100000<\/td>\n<td>0.026316<\/td>\n<td>0.041667<\/td>\n<td>\u041c\u0430\u043a\u0441 \u041a\u043b\u0438\u043d\u0433\u0435\u0440<\/td>\n<\/tr>\n<tr>\n<td>0.026725<\/td>\n<td>0.228216<\/td>\n<td>0.047847<\/td>\n<td>\u041f\u044c\u0435\u0440 \u041e\u0433\u044e\u0441\u0442 \u0420\u0435\u043d\u0443\u0430\u0440<\/td>\n<\/tr>\n<tr>\n<td>0.200000<\/td>\n<td>0.028571<\/td>\n<td>0.050000<\/td>\n<td>Brasilier, Andre<\/td>\n<\/tr>\n<tr>\n<td>0.028745<\/td>\n<td>0.639098<\/td>\n<td>0.055016<\/td>\n<td>\u041a\u043b\u043e\u0434 \u041e\u0441\u043a\u0430\u0440 \u041c\u043e\u043d\u0435<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p>  <\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u041f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0430 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b \u0438 \u043d\u0435\u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043c\u044b. \u0425\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u0435\u043c\u043e\u0432, \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u043d\u0430\u0441 \u0432\u043e\u0441\u0445\u0438\u0449\u0430\u0442\u044c\u0441\u044f \u0438\u0445 \u0440\u0430\u0431\u043e\u0442\u0430\u043c\u0438 \u0441\u043d\u043e\u0432\u0430 \u0438 \u0441\u043d\u043e\u0432\u0430.<br \/>  \u0426\u0432\u0435\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u0432\u0430\u0436\u043d\u0430\u044f, \u043d\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f \u0432 \u0430\u043d\u0430\u043b\u0438\u0437\u0435 \u0440\u0430\u0431\u043e\u0442 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u043e\u0432.<\/p>\n<p>  \u041c\u043d\u043e\u0433\u0438\u0435 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u043e\u0432\u0435\u0434\u044b \u043f\u043e\u0441\u043c\u0435\u044e\u0442\u0441\u044f \u043d\u0430\u0434 \u043d\u0430\u0438\u0432\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430, \u043d\u043e \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u043e\u0439 \u044f \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u0435\u043d. \u0415\u0441\u0442\u044c \u0435\u0449\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0434\u0435\u0439, \u0434\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0434\u043e\u0448\u043b\u0438 \u0440\u0443\u043a\u0438:<\/p>\n<ol>\n<li>\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043a \u0430\u043d\u0430\u043b\u0438\u0437\u0443 \u0446\u0432\u0435\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u043e\u0432. \u041d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u043c\u044b \u0441\u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0442\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b, \u043e\u0442\u043b\u0438\u0447\u0438\u043b\u0438 \u0431\u044b \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0442\u0435\u0447\u0435\u043d\u0438\u044f \u0432 \u0436\u0438\u0432\u043e\u043f\u0438\u0441\u0438<\/li>\n<li>\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043a\u0430\u0440\u0442\u0438\u043d\u0430\u043c. \u041f\u043e\u0438\u0441\u043a\u0430\u0442\u044c \u201c\u0441\u044e\u0436\u0435\u0442\u044b\u201d, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u044e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430\u0445 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0435\u0439\u0437\u0430\u0436\u0438, \u043f\u043e\u0440\u0442\u0440\u0435\u0442\u044b \u0438 \u043d\u0430\u0442\u044e\u0440\u043c\u043e\u0440\u0442\u044b<\/li>\n<li>\u041f\u043e\u0438\u0441\u043a\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u044b, \u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u044b, \u043d\u043e \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0441 \u043a\u0440\u0443\u0433\u0430 \u0418\u0442\u0442\u0435\u043d\u0430<\/li>\n<li>\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043e\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0447\u0430\u0441\u0442\u043e\u0442 \u043a \u0430\u043d\u0430\u043b\u0438\u0437\u0443 \u201c\u0446\u0432\u0435\u0442\u043e\u0432\u044b\u0445 \u043f\u044f\u0442\u0435\u043d\u201d, \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u044f \u043f\u0438\u043a\u0441\u0435\u043b\u0438 \u043f\u043e \u043c\u0435\u0441\u0442\u043e\u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044e<\/li>\n<li>\u041d\u0430\u0439\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0430\u0432\u0442\u043e\u0440\u0441\u0442\u0432\u043e \u043f\u043e\u0434 \u0441\u043e\u043c\u043d\u0435\u043d\u0438\u0435\u043c \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0437\u0430 \u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u0443\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u044c<\/li>\n<\/ol>\n<p>  <\/p>\n<h2>P.S.<\/h2>\n<p>  \u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u043b\u0430 \u0432\u044b\u043f\u0443\u0441\u043a\u043d\u044b\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u0434\u043b\u044f \u043a\u0443\u0440\u0441\u0430 \u043f\u043e \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u043c\u0443 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044e, \u043e\u0434\u043d\u0430\u043a\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u044e\u0434\u0435\u0439 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043b\u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0435\u0435 \u0432 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0434\u043b\u044f \u0425\u0430\u0431\u0440\u0430.<\/p>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u0432\u0430\u043c \u0431\u044b\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e.<\/p>\n<p>  \u0412\u0435\u0441\u044c \u043a\u043e\u0434, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 \u0440\u0430\u0431\u043e\u0442\u0435, \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 <a href=\"https:\/\/github.com\/KurochkinVasiliy\/OTUS_ML\/blob\/master\/final%20project\/part%202%20-%20eda.ipynb\">github<\/a>.<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/504806\/\"> https:\/\/habr.com\/ru\/post\/504806\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/504806\/\">\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442! \u041e\u0434\u0438\u043d \u043c\u043e\u0439 \u0434\u0440\u0443\u0433 \u0443\u0447\u0438\u0442\u0441\u044f \u043d\u0430 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0430 \u0438 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043e \u0442\u043e\u043c \u0438\u043b\u0438 \u0438\u043d\u043e\u043c \u0448\u0435\u0434\u0435\u0432\u0440\u0435, \u043e \u043d\u0435\u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043c\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u0435\u043c\u0430\u0445, \u043e \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u0438, \u043e\u0431 \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u0438 \u0436\u0438\u0432\u043e\u043f\u0438\u0441\u0438 \u0438 \u0433\u0435\u043d\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0430\u0445. \u041d\u0430 \u0444\u043e\u043d\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0433\u043e \u0432\u043e\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0433\u043e\u0434\u044f\u0442\u0441\u044f \u043b\u0438 \u043c\u043e\u0438 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f \u0438 \u043d\u0430\u0432\u044b\u043a\u0438 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043c\u0438\u0440\u043e\u0432\u043e\u0433\u043e \u043a\u0443\u043b\u044c\u0442\u0443\u0440\u043d\u043e\u0433\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u0438\u044f.<\/p>\n<p>  \u0412\u043e\u043e\u0440\u0443\u0436\u0438\u0432\u0448\u0438\u0441\u044c \u0441\u0430\u043c\u043e\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0430\u0440\u0441\u0435\u0440\u043e\u043c \u043f\u043e\u0434 \u043f\u043e\u043a\u0440\u043e\u0432\u043e\u043c \u043d\u043e\u0447\u0438 \u044f \u0432\u043e\u0440\u0432\u0430\u043b\u0441\u044f \u0432 \u043e\u043d\u043b\u0430\u0439\u043d \u0433\u0430\u043b\u0435\u0440\u0435\u044e \u0438 \u0432\u044b\u043d\u0435\u0441 \u043e\u0442\u0442\u0443\u0434\u0430 \u043f\u043e\u0447\u0442\u0438 50 \u0442\u044b\u0441\u044f\u0447 \u043a\u0430\u0440\u0442\u0438\u043d. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c, \u0447\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u0441 \u044d\u0442\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0435 ML \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b (\u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e, \u0442\u0440\u0430\u0444\u0438\u043a).  <\/p>\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-304658","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/304658","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=304658"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/304658\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=304658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=304658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=304658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}