{"id":346482,"date":"2023-03-08T21:00:46","date_gmt":"2023-03-08T21:00:46","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=346482"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=346482","title":{"rendered":"<span>Data Fusion Contest 2023. \u0414\u043b\u044f \u043e\u043f\u044b\u0442\u0430 \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e\u2026 \u0421\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0442 \u0412\u0422\u0411 \u0441 \u043f\u0440\u0438\u0437\u043e\u0432\u044b\u043c \u0444\u043e\u043d\u0434\u043e\u043c \u0432 2 \u043c\u043b\u043d \u0440\u0443\u0431\u043b\u0435\u0439<\/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<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/310\/f23\/f36\/310f23f366e57d8d11c7ebd7f4089f11.jpg\" alt=\"\u0421\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0435 Data Fusion Contest 2023\" title=\"\u0421\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0435 Data Fusion Contest 2023\" width=\"800\" height=\"447\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/310\/f23\/f36\/310f23f366e57d8d11c7ebd7f4089f11.jpg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>\u0421\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0435 Data Fusion Contest 2023<\/figcaption><\/div>\n<\/figure>\n<p>\u042f, \u043a\u0430\u043a \u043d\u043e\u0432\u0438\u0447\u043e\u043a, \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u044e \u0437\u0430 \u0432\u0441\u0435\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u043c \u0432\u043e\u043a\u0440\u0443\u0433, \u0438 \u0437\u0430\u043c\u0435\u0447\u0430\u044e, \u0447\u0442\u043e \u0442\u0440\u0435\u043d\u0434 \u043d\u0430 IT-\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439. \u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043a\u0443\u0440\u0441\u043e\u0432 \u0437\u0430\u043c\u0430\u043d\u0438\u0432\u0430\u044e\u0442 \u043e\u0431\u0435\u0449\u0430\u043d\u0438\u044f\u043c\u0438 \u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0437\u0430\u0440\u043f\u043b\u0430\u0442\u043e\u0439, \u043d\u043e \u0441\u043f\u0443\u0441\u0442\u044f \u043f\u043e\u043b\u0433\u043e\u0434\u0430 \u043f\u043e\u0441\u043b\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043a\u0443\u0440\u0441\u043e\u0432 \u0432\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u043d\u0430 &#171;\u0440\u044b\u043d\u043a\u0435&#187; \u043f\u043e\u043b\u043d\u043e \u0442\u0430\u043a\u0438\u0445 \u0436\u0435 \u043a\u0430\u043a \u0432\u044b \u0431\u0435\u0437 \u043e\u043f\u044b\u0442\u0430, \u0430 \u0432\u0441\u0435\u043c \u043d\u0443\u0436\u043d\u044b \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044b. \u0417\u043d\u0430\u043a\u043e\u043c\u043e?<\/p>\n<p>\u042f \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d \u0431\u044b\u043b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u0443\u0442\u044c \u043a \u0440\u0430\u0431\u043e\u0442\u0435 \u043c\u0435\u0447\u0442\u044b, \u0438 \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f\u0445, \u0447\u0435\u043c\u043f\u0438\u043e\u043d\u0430\u0442\u0430\u0445 \u0438 \u0445\u0430\u043a\u0430\u0442\u043e\u043d\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u043d\u043e\u0441\u044f\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u044b\u0442 \u0438 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430, \u043d\u043e \u0438 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0435 \u043f\u0440\u0438\u0437\u044b \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0431\u043e\u043d\u0443\u0441\u044b.  <\/p>\n<p>\u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0434\u0432\u0430 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u043c\u0443 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044e \u0441 \u043a\u0440\u0443\u043f\u043d\u044b\u043c \u043f\u0440\u0438\u0437\u043e\u0432\u044b\u043c \u0444\u043e\u043d\u0434\u043e\u043c, \u043e\u0434\u043d\u0430\u043a\u043e \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043d\u0438\u0445 \u0442\u0430\u043a\u0430\u044f \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u044f, \u0447\u0442\u043e \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u044f \u0447\u0435\u0433\u043e-\u043b\u0438\u0431\u043e \u043d\u0443\u0436\u043d\u043e \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u043d\u0430 \u044d\u0442\u043e 24 \u0447\u0430\u0441\u0430 \u0432 \u0441\u0443\u0442\u043a\u0438. \u0412\u0442\u043e\u0440\u043e\u0435 \u0436\u0435 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0435, <a href=\"https:\/\/ods.ai\/tracks\/data-fusion-2023-competitions\" rel=\"noopener noreferrer nofollow\">Data Fusion Contest 2023<\/a>, \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0445\u043e\u0442\u044f \u0444\u043e\u0440\u043c\u0430\u0442 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439. \u042d\u0442\u043e \u0442\u0443\u0440\u043d\u0438\u0440 \u043f\u043e Adversarial ML \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 \u0430\u0442\u0430\u043a\u0443\u044e\u0449\u0438\u0445 \u0438 \u0437\u0430\u0449\u0438\u0449\u0430\u044e\u0449\u0438\u0445 ML-\u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043d\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0432\u0435 \u0437\u0430\u0434\u0430\u0447\u0438: <\/p>\n<p>? \u0412 \u0437\u0430\u0434\u0430\u0447\u0435\u00a0<a href=\"https:\/\/ods.ai\/tracks\/data-fusion-2023-competitions\/competitions\/data-fusion2023-attack\" rel=\"noopener noreferrer nofollow\"><strong>\u0410\u0442\u0430\u043a\u0430<\/strong><\/a>\u00a0\u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0430\u0442\u0430\u043a\u0438 \u043d\u0430 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c, \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u0443\u044e \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439.\u00a0<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c03\/35a\/04c\/c0335a04c01691decd48a2a9aed5a77e.png\" width=\"1041\" height=\"122\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c03\/35a\/04c\/c0335a04c01691decd48a2a9aed5a77e.png\"\/><\/figure>\n<p>? \u0412 \u0437\u0430\u0434\u0430\u0447\u0435\u00a0<a href=\"https:\/\/ods.ai\/tracks\/data-fusion-2023-competitions\/competitions\/data-fusion2023-defence\" rel=\"noopener noreferrer nofollow\"><strong>\u0417\u0430\u0449\u0438\u0442\u0430<\/strong><\/a><strong>\u00a0<\/strong>\u2014 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0437\u0430\u0449\u0438\u0449\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0442 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043e\u0433\u043e\u0432\u043e\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430 \u0430\u0442\u0430\u043a.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f79\/7c8\/aaa\/f797c8aaa4756785071887a4610afb29.png\" width=\"1054\" height=\"124\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f79\/7c8\/aaa\/f797c8aaa4756785071887a4610afb29.png\"\/><\/figure>\n<p>? \u041f\u0440\u0438\u0437\u0435\u0440\u043e\u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u00a0<a href=\"https:\/\/ods.ai\/tracks\/data-fusion-2023-competitions\/tournament\" rel=\"noopener noreferrer nofollow\"><strong>\u0422\u0443\u0440\u043d\u0438\u0440\u044b<\/strong><\/a>\u00a0\u2014 \u043b\u0443\u0447\u0448\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043e\u0431\u0435\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u0442\u0441\u044f \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c \u0437\u0430 \u043f\u0440\u0438\u0437\u043e\u0432\u043e\u0439 \u0444\u043e\u043d\u0434 \u0432\u00a0<strong>2 000 000 \u0440\u0443\u0431\u043b\u0435\u0439<\/strong>!\u00a0\u00a0<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u0436\u0434\u0435\u0442 \u043c\u043d\u043e\u0433\u043e <strong>\u043c\u0435\u0440\u0447\u0430<\/strong> \u0438 \u043f\u043e\u0434\u0430\u0440\u043a\u043e\u0432, \u043e\u043d\u043b\u0430\u0439\u043d-\u043c\u0438\u0442\u0430\u043f\u044b \u0441 \u0432\u043e\u0440\u043a\u0448\u043e\u043f\u0430\u043c\u0438 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043a\u0440\u0443\u0442\u043e \u043f\u0440\u043e\u043a\u0430\u0447\u0430\u0442\u044c\u0441\u044f \u0432 \u043d\u043e\u0432\u044b\u0445 DS\/ML \u043c\u0435\u0442\u043e\u0434\u0430\u0445<\/p>\n<p>\u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u0442\u0440\u0438 \u0440\u0430\u0437\u0430, \u043c\u043d\u0435, \u043a\u0430\u043a \u043d\u043e\u0432\u0438\u0447\u043a\u0443, \u043c\u0430\u043b\u043e \u0447\u0442\u043e \u0441\u0442\u0430\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e. \u041d\u043e \u043d\u0438\u0437\u043a\u0430\u044f \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u044f, \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u0438\u0437\u043e\u0432\u043e\u0439 \u0444\u043e\u043d\u0434, \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0434\u0430\u0440\u043a\u043e\u0432 \u0438 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u0441\u0442\u0432\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043c\u0435\u043d\u044f \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u041c\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0417\u0430\u0449\u0438\u0442\u044b.<\/p>\n<p>\u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0432 \u0432\u0441\u0435 \u0432\u0432\u043e\u0434\u043d\u044b\u0435, \u0444\u043e\u0440\u0443\u043c \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u043c\u0438\u0442\u0430\u043f\u044b, \u044f \u043e\u0441\u043e\u0437\u043d\u0430\u043b \u043a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0443 \u0437\u0430\u0449\u0438\u0442\u0430, \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 zip. <\/p>\n<p>\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0441\u0432\u043e\u0439 \u0431\u0435\u0439\u0437\u043b\u0430\u0439\u043d \u0437\u0430\u0449\u0438\u0442\u044b  submit_defence.zip, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 4 \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f4f\/130\/9c0\/f4f1309c03eecfe5b48701e762268d20.png\" alt=\"\u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043a \u0437\u0430\u0434\u0430\u0447\u0435 \u0437\u0430\u0449\u0438\u0442\u0430\" title=\"\u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043a \u0437\u0430\u0434\u0430\u0447\u0435 \u0437\u0430\u0449\u0438\u0442\u0430\" width=\"745\" height=\"211\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f4f\/130\/9c0\/f4f1309c03eecfe5b48701e762268d20.png\"\/><\/p>\n<div><figcaption>\u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043a \u0437\u0430\u0434\u0430\u0447\u0435 \u0437\u0430\u0449\u0438\u0442\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u2013 metadata.json \u2013 \u043a\u0430\u043a\u043e\u0439 \u043e\u0431\u0440\u0430\u0437 \u0432\u0437\u044f\u0442\u044c \u0438 \u043a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/251\/ad6\/101\/251ad6101644417569b09e28d8cd310c.png\" alt=\"metadata.json\" title=\"metadata.json\" width=\"365\" height=\"97\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/251\/ad6\/101\/251ad6101644417569b09e28d8cd310c.png\"\/><\/p>\n<div><figcaption>metadata.json<\/figcaption><\/div>\n<\/figure>\n<p>\u2013 model.py \u2013 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u0440\u0435\u0434\u0438\u043a\u0442. \u041d\u0430 \u0432\u0445\u043e\u0434 \u0438\u043c\u044f .csv \u0444\u0430\u0439\u043b\u0430 \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0438\u043a\u0442\u0430 \u0438 \u0438\u043c\u044f \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0433\u043e .csv \u0444\u0430\u0439\u043b\u0430 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b <\/p>\n<p>\u2013 nn_bins.pickle nn_weights.ckpt \u2013 \u0444\u0430\u0439\u043b\u044b, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u0435\u0439\u0437\u043b\u0430\u0439\u043d\u0430<\/p>\n<p>\u041c\u044b \u043f\u043e\u043a\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u043b\u0435\u0437\u0442\u044c \u0432 \u0434\u0435\u0431\u0440\u0438 \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0432\u0435\u0441\u0430 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. \u041c\u044b \u0437\u0430\u043b\u0435\u0437\u0435\u043c \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0434\u0435\u043b\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 <strong>model.py<\/strong> \u0438 \u0431\u0443\u0434\u0435\u043c \u043c\u0435\u043d\u044f\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u044d\u0442\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 &#8212; \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u0432 \u0442\u043e\u043f-10.  <\/p>\n<p>\u0412 \u043a\u043b\u0430\u0441\u0441\u0435 TransactionsRnn \u044f \u043c\u0435\u043d\u044f\u044e \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f (Learning rate=5e-2) \u0438 Droupout (nn.Dropout2d(0.1)) \u0438 \u0441\u043c\u043e\u0442\u0440\u044e \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442.  <\/p>\n<pre><code>class TransactionsRnn(pl.LightningModule):     def __init__(self, rnn_units=128, top_classifier_units=64, lr=5e-2, out_features=2):         super().__init__()         self._transaction_cat_embeddings = nn.ModuleList(             [                 self._create_embedding_projection(*embedding_projections[feature])                 for feature in embedding_projections.keys()             ]         )          self._spatial_dropout = nn.Dropout2d(0.1)         concat_embed = sum([embedding_projections[x][1] for x in embedding_projections.keys()])         self._gru = nn.GRU(input_size=concat_embed, hidden_size=rnn_units, batch_first=True, bidirectional=True,)          self._hidden_size = rnn_units<\/code><\/pre>\n<p>\u041c\u0435\u043d\u044f\u044e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0439 \u043d\u0430 50 \u0438 random_seed \u043d\u0430 42.<\/p>\n<pre><code>def reliable_predict(source_file, bins_path, model_path, random_seed=42):     REPETITIONS = 50  # \u0421\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0439<\/code><\/pre>\n<p>\u0423\u0432\u0435\u043b\u0438\u0447\u044e batch_size \u0434\u043e 256.<\/p>\n<pre><code>def get_dataloader(dataset, device, batch_size=256, is_validation=False):     def collate_loader(x):         return tuple(x_.to(device) for x_ in default_collate(x))      return DataLoader(dataset, batch_size=batch_size, collate_fn=collate_loader, shuffle=not is_validation,) def predict(source_file, bins_path, model_path, random_seed=42):     pl.seed_everything(random_seed)<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 .zip \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0430\u0431\u043c\u0438\u0442 \u043f\u043e\u0441\u043b\u0435 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u0435\u043d\u044f\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0434\u0435\u043b\u0438 \u0438\/\u0438\u043b\u0438 \u043c\u043e\u0434\u0435\u043b\u044c, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0441\u043b\u043e\u0438, \u043c\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u043b\u044f \u043d\u0430\u0441 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0438 \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u043c \u043b\u0443\u0447\u0448\u0435\u0433\u043e \u0441\u043a\u043e\u0440\u0430 \u0432 \u043b\u0438\u0434\u0435\u0440\u0431\u043e\u0440\u0434\u0435. <\/p>\n<h3>\u041c\u0435\u0442\u0440\u0438\u043a\u0430 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n<p>Mean Harm ROC-AUC. \u042d\u0442\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0433\u0430\u0440\u043c\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 ROC-AUC \u043d\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043d\u0430 \u0430\u0442\u0430\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0445. \u041c\u0435\u0442\u0440\u0438\u043a\u0430 \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u0435 \u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0438\u0441\u0441 \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u0435\u043c \u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430.<\/p>\n<h3>Mean Harm ROC-AUC: 0,71016<\/h3>\n<p><a href=\"https:\/\/github.com\/blinov-89\/data_fusion_protect_2023\" rel=\"noopener noreferrer nofollow\"><strong>\u041a\u043e\u0434 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d  \u043d\u0430 githab<\/strong><\/a> <\/p>\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\/post\/721174\/\"> https:\/\/habr.com\/ru\/post\/721174\/<\/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<figure class=\"full-width\">\n<div><figcaption>\u0421\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0435 Data Fusion Contest 2023<\/figcaption><\/div>\n<\/figure>\n<p>\u042f, \u043a\u0430\u043a \u043d\u043e\u0432\u0438\u0447\u043e\u043a, \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u044e \u0437\u0430 \u0432\u0441\u0435\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u043c \u0432\u043e\u043a\u0440\u0443\u0433, \u0438 \u0437\u0430\u043c\u0435\u0447\u0430\u044e, \u0447\u0442\u043e \u0442\u0440\u0435\u043d\u0434 \u043d\u0430 IT-\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439. \u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043a\u0443\u0440\u0441\u043e\u0432 \u0437\u0430\u043c\u0430\u043d\u0438\u0432\u0430\u044e\u0442 \u043e\u0431\u0435\u0449\u0430\u043d\u0438\u044f\u043c\u0438 \u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0437\u0430\u0440\u043f\u043b\u0430\u0442\u043e\u0439, \u043d\u043e \u0441\u043f\u0443\u0441\u0442\u044f \u043f\u043e\u043b\u0433\u043e\u0434\u0430 \u043f\u043e\u0441\u043b\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043a\u0443\u0440\u0441\u043e\u0432 \u0432\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u043d\u0430 &#171;\u0440\u044b\u043d\u043a\u0435&#187; \u043f\u043e\u043b\u043d\u043e \u0442\u0430\u043a\u0438\u0445 \u0436\u0435 \u043a\u0430\u043a \u0432\u044b \u0431\u0435\u0437 \u043e\u043f\u044b\u0442\u0430, \u0430 \u0432\u0441\u0435\u043c \u043d\u0443\u0436\u043d\u044b \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044b. \u0417\u043d\u0430\u043a\u043e\u043c\u043e?<\/p>\n<p>\u042f \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d \u0431\u044b\u043b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u0443\u0442\u044c \u043a \u0440\u0430\u0431\u043e\u0442\u0435 \u043c\u0435\u0447\u0442\u044b, \u0438 \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f\u0445, \u0447\u0435\u043c\u043f\u0438\u043e\u043d\u0430\u0442\u0430\u0445 \u0438 \u0445\u0430\u043a\u0430\u0442\u043e\u043d\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u043d\u043e\u0441\u044f\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u044b\u0442 \u0438 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430, \u043d\u043e \u0438 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0435 \u043f\u0440\u0438\u0437\u044b \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0431\u043e\u043d\u0443\u0441\u044b.  <\/p>\n<p>\u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0434\u0432\u0430 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u043c\u0443 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044e \u0441 \u043a\u0440\u0443\u043f\u043d\u044b\u043c \u043f\u0440\u0438\u0437\u043e\u0432\u044b\u043c \u0444\u043e\u043d\u0434\u043e\u043c, \u043e\u0434\u043d\u0430\u043a\u043e \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043d\u0438\u0445 \u0442\u0430\u043a\u0430\u044f \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u044f, \u0447\u0442\u043e \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u044f \u0447\u0435\u0433\u043e-\u043b\u0438\u0431\u043e \u043d\u0443\u0436\u043d\u043e \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u043d\u0430 \u044d\u0442\u043e 24 \u0447\u0430\u0441\u0430 \u0432 \u0441\u0443\u0442\u043a\u0438. \u0412\u0442\u043e\u0440\u043e\u0435 \u0436\u0435 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0435, <a href=\"https:\/\/ods.ai\/tracks\/data-fusion-2023-competitions\" rel=\"noopener noreferrer nofollow\">Data Fusion Contest 2023<\/a>, \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0445\u043e\u0442\u044f \u0444\u043e\u0440\u043c\u0430\u0442 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439. \u042d\u0442\u043e \u0442\u0443\u0440\u043d\u0438\u0440 \u043f\u043e Adversarial ML \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 \u0430\u0442\u0430\u043a\u0443\u044e\u0449\u0438\u0445 \u0438 \u0437\u0430\u0449\u0438\u0449\u0430\u044e\u0449\u0438\u0445 ML-\u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043d\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0432\u0435 \u0437\u0430\u0434\u0430\u0447\u0438: <\/p>\n<p>? \u0412 \u0437\u0430\u0434\u0430\u0447\u0435\u00a0<a href=\"https:\/\/ods.ai\/tracks\/data-fusion-2023-competitions\/competitions\/data-fusion2023-attack\" rel=\"noopener noreferrer nofollow\"><strong>\u0410\u0442\u0430\u043a\u0430<\/strong><\/a>\u00a0\u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0430\u0442\u0430\u043a\u0438 \u043d\u0430 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c, \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u0443\u044e \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439.\u00a0<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>? \u0412 \u0437\u0430\u0434\u0430\u0447\u0435\u00a0<a href=\"https:\/\/ods.ai\/tracks\/data-fusion-2023-competitions\/competitions\/data-fusion2023-defence\" rel=\"noopener noreferrer nofollow\"><strong>\u0417\u0430\u0449\u0438\u0442\u0430<\/strong><\/a><strong>\u00a0<\/strong>\u2014 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0437\u0430\u0449\u0438\u0449\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0442 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043e\u0433\u043e\u0432\u043e\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430 \u0430\u0442\u0430\u043a.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>? \u041f\u0440\u0438\u0437\u0435\u0440\u043e\u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u00a0<a href=\"https:\/\/ods.ai\/tracks\/data-fusion-2023-competitions\/tournament\" rel=\"noopener noreferrer nofollow\"><strong>\u0422\u0443\u0440\u043d\u0438\u0440\u044b<\/strong><\/a>\u00a0\u2014 \u043b\u0443\u0447\u0448\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043e\u0431\u0435\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u0442\u0441\u044f \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c \u0437\u0430 \u043f\u0440\u0438\u0437\u043e\u0432\u043e\u0439 \u0444\u043e\u043d\u0434 \u0432\u00a0<strong>2 000 000 \u0440\u0443\u0431\u043b\u0435\u0439<\/strong>!\u00a0\u00a0<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u0436\u0434\u0435\u0442 \u043c\u043d\u043e\u0433\u043e <strong>\u043c\u0435\u0440\u0447\u0430<\/strong> \u0438 \u043f\u043e\u0434\u0430\u0440\u043a\u043e\u0432, \u043e\u043d\u043b\u0430\u0439\u043d-\u043c\u0438\u0442\u0430\u043f\u044b \u0441 \u0432\u043e\u0440\u043a\u0448\u043e\u043f\u0430\u043c\u0438 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043a\u0440\u0443\u0442\u043e \u043f\u0440\u043e\u043a\u0430\u0447\u0430\u0442\u044c\u0441\u044f \u0432 \u043d\u043e\u0432\u044b\u0445 DS\/ML \u043c\u0435\u0442\u043e\u0434\u0430\u0445<\/p>\n<p>\u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u0442\u0440\u0438 \u0440\u0430\u0437\u0430, \u043c\u043d\u0435, \u043a\u0430\u043a \u043d\u043e\u0432\u0438\u0447\u043a\u0443, \u043c\u0430\u043b\u043e \u0447\u0442\u043e \u0441\u0442\u0430\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e. \u041d\u043e \u043d\u0438\u0437\u043a\u0430\u044f \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u044f, \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u0438\u0437\u043e\u0432\u043e\u0439 \u0444\u043e\u043d\u0434, \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0434\u0430\u0440\u043a\u043e\u0432 \u0438 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u0441\u0442\u0432\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043c\u0435\u043d\u044f \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u041c\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0417\u0430\u0449\u0438\u0442\u044b.<\/p>\n<p>\u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0432 \u0432\u0441\u0435 \u0432\u0432\u043e\u0434\u043d\u044b\u0435, \u0444\u043e\u0440\u0443\u043c \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u043c\u0438\u0442\u0430\u043f\u044b, \u044f \u043e\u0441\u043e\u0437\u043d\u0430\u043b \u043a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0443 \u0437\u0430\u0449\u0438\u0442\u0430, \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 zip. <\/p>\n<p>\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0441\u0432\u043e\u0439 \u0431\u0435\u0439\u0437\u043b\u0430\u0439\u043d \u0437\u0430\u0449\u0438\u0442\u044b  submit_defence.zip, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 4 \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043a \u0437\u0430\u0434\u0430\u0447\u0435 \u0437\u0430\u0449\u0438\u0442\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u2013 metadata.json \u2013 \u043a\u0430\u043a\u043e\u0439 \u043e\u0431\u0440\u0430\u0437 \u0432\u0437\u044f\u0442\u044c \u0438 \u043a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 <\/p>\n<figure class=\"\">\n<div><figcaption>metadata.json<\/figcaption><\/div>\n<\/figure>\n<p>\u2013 model.py \u2013 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u0440\u0435\u0434\u0438\u043a\u0442. \u041d\u0430 \u0432\u0445\u043e\u0434 \u0438\u043c\u044f .csv \u0444\u0430\u0439\u043b\u0430 \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0438\u043a\u0442\u0430 \u0438 \u0438\u043c\u044f \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0433\u043e .csv \u0444\u0430\u0439\u043b\u0430 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b <\/p>\n<p>\u2013 nn_bins.pickle nn_weights.ckpt \u2013 \u0444\u0430\u0439\u043b\u044b, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u0435\u0439\u0437\u043b\u0430\u0439\u043d\u0430<\/p>\n<p>\u041c\u044b \u043f\u043e\u043a\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u043b\u0435\u0437\u0442\u044c \u0432 \u0434\u0435\u0431\u0440\u0438 \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0432\u0435\u0441\u0430 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. \u041c\u044b \u0437\u0430\u043b\u0435\u0437\u0435\u043c \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0434\u0435\u043b\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 <strong>model.py<\/strong> \u0438 \u0431\u0443\u0434\u0435\u043c \u043c\u0435\u043d\u044f\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u044d\u0442\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 &#8212; \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u0432 \u0442\u043e\u043f-10.  <\/p>\n<p>\u0412 \u043a\u043b\u0430\u0441\u0441\u0435 TransactionsRnn \u044f \u043c\u0435\u043d\u044f\u044e \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f (Learning rate=5e-2) \u0438 Droupout (nn.Dropout2d(0.1)) \u0438 \u0441\u043c\u043e\u0442\u0440\u044e \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442.  <\/p>\n<pre><code>class TransactionsRnn(pl.LightningModule):     def __init__(self, rnn_units=128, top_classifier_units=64, lr=5e-2, out_features=2):         super().__init__()         self._transaction_cat_embeddings = nn.ModuleList(             [                 self._create_embedding_projection(*embedding_projections[feature])                 for feature in embedding_projections.keys()             ]         )          self._spatial_dropout = nn.Dropout2d(0.1)         concat_embed = sum([embedding_projections[x][1] for x in embedding_projections.keys()])         self._gru = nn.GRU(input_size=concat_embed, hidden_size=rnn_units, batch_first=True, bidirectional=True,)          self._hidden_size = rnn_units<\/code><\/pre>\n<p>\u041c\u0435\u043d\u044f\u044e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0439 \u043d\u0430 50 \u0438 random_seed \u043d\u0430 42.<\/p>\n<pre><code>def reliable_predict(source_file, bins_path, model_path, random_seed=42):     REPETITIONS = 50  # \u0421\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0439<\/code><\/pre>\n<p>\u0423\u0432\u0435\u043b\u0438\u0447\u044e batch_size \u0434\u043e 256.<\/p>\n<pre><code>def get_dataloader(dataset, device, batch_size=256, is_validation=False):     def collate_loader(x):         return tuple(x_.to(device) for x_ in default_collate(x))      return DataLoader(dataset, batch_size=batch_size, collate_fn=collate_loader, shuffle=not is_validation,) def predict(source_file, bins_path, model_path, random_seed=42):     pl.seed_everything(random_seed)<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 .zip \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0430\u0431\u043c\u0438\u0442 \u043f\u043e\u0441\u043b\u0435 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u0435\u043d\u044f\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0434\u0435\u043b\u0438 \u0438\/\u0438\u043b\u0438 \u043c\u043e\u0434\u0435\u043b\u044c, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0441\u043b\u043e\u0438, \u043c\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u043b\u044f \u043d\u0430\u0441 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0438 \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u043c \u043b\u0443\u0447\u0448\u0435\u0433\u043e \u0441\u043a\u043e\u0440\u0430 \u0432 \u043b\u0438\u0434\u0435\u0440\u0431\u043e\u0440\u0434\u0435. <\/p>\n<h3>\u041c\u0435\u0442\u0440\u0438\u043a\u0430 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n<p>Mean Harm ROC-AUC. \u042d\u0442\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0433\u0430\u0440\u043c\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 ROC-AUC \u043d\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043d\u0430 \u0430\u0442\u0430\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0445. \u041c\u0435\u0442\u0440\u0438\u043a\u0430 \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u0435 \u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0438\u0441\u0441 \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u0435\u043c \u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430.<\/p>\n<h3>Mean Harm ROC-AUC: 0,71016<\/h3>\n<p><a href=\"https:\/\/github.com\/blinov-89\/data_fusion_protect_2023\" rel=\"noopener noreferrer nofollow\"><strong>\u041a\u043e\u0434 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d  \u043d\u0430 githab<\/strong><\/a> <\/p>\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\/post\/721174\/\"> https:\/\/habr.com\/ru\/post\/721174\/<\/a><br \/><\/br><\/br><\/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-346482","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/346482","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=346482"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/346482\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=346482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=346482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=346482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}