{"id":272963,"date":"2016-01-27T00:26:02","date_gmt":"2016-01-26T21:26:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=272963"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=272963","title":{"rendered":"Python \u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u043d\u043e\u0436\u043a\u0438 \u2014 \u043a\u0430\u043a \u0431\u044b \u044f \u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b \u0441\u044b\u043d\u0430 \u0441 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u043e\u0439 \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c"},"content":{"rendered":"<p>       \u0420\u0430\u043d\u044c\u0448\u0435 \u043c\u044b \u0443\u0436\u0435 <a href=\"https:\/\/habrahabr.ru\/post\/251225\/\">\u0438\u0441\u043a\u0430\u043b\u0438<\/a> \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 Playboy \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Python Scikit-learn. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a SymPy, SciPy, Matplotlib \u0438 Pandas \u043d\u0430 \u0436\u0438\u0432\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0438\u0437 \u0440\u0430\u0437\u0440\u044f\u0434\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0448\u043a\u043e\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u043f\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0435. \u0426\u0435\u043b\u044c \u2014 \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u0442\u044c \u043f\u043e\u0440\u043e\u0433 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0438 Python \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. <\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h2>\u0417\u0430\u0434\u0430\u0447\u0430 1<\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b3c\/d96\/580\/b3cd965808524f82ae23bee0a80e476b.jpg\" \/><\/div>\n<p>  \u0421\u0442\u043e\u0438\u0442 \u0434\u0435\u0432\u0443\u0448\u043a\u0430 \u0441 \u0438\u0437\u044f\u0449\u043d\u044b\u043c\u0438, \u043d\u0430\u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438, \u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u043e\u0433\u043e\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043d\u043e\u0436\u043a\u0430\u043c\u0438. \u0421\u043a\u0443\u0447\u0430\u0435\u0442. \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 (n+1)-\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u043b\u0430\u0434\u0435\u043d\u0438\u044f \u0442\u0435\u0445\u043d\u0438\u043a\u043e\u0439 \u043f\u0438\u043a\u0430\u043f\u0430, \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0448\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u043e\u0436\u043a\u0438 \u0434\u0435\u0432\u0443\u0448\u043a\u0438 \u2014 \u0430 \u0441\u0442\u043e\u0438\u0442 \u043b\u0438 \u043e\u0432\u0447\u0438\u043d\u043a\u0430 \u0432\u044b\u0434\u0435\u043b\u043a\u0438? \u041f\u043e\u043b\u0443\u0447\u0448\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u2014 \u044d\u0442\u043e \u043f\u043e\u0434 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0443\u0433\u043b\u043e\u043c. \u041c\u043e\u0436\u043d\u043e \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0434\u0435\u0432\u0443\u0448\u043a\u0435 (\u0442\u0438\u043f\u0430 \u0432\u0434\u0430\u043b\u044c \u0441\u043c\u043e\u0442\u0440\u0438\u0448\u044c), \u043d\u043e \u043f\u0440\u0438\u0441\u0435\u0434\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f \u2014 \u043d\u0430\u0434\u043e \u0436\u0435 \u043a\u0430\u043a-\u0442\u043e \u0438 \u043f\u0440\u0438\u043b\u0438\u0447\u0438\u044f \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u0442\u044c. \u0421 \u043a\u0430\u043a\u043e\u0433\u043e \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043d\u043e\u0436\u043a\u0438 \u0432\u0438\u0434\u043d\u044b \u043f\u043e\u0434 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0443\u0433\u043b\u043e\u043c? \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0412\u0430\u0448 \u0440\u043e\u0441\u0442 \u0442\u0430\u043a\u043e\u0432, \u0447\u0442\u043e \u0433\u043b\u0430\u0437\u0430 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0430 \u0432\u044b\u0441\u043e\u0442\u0435 m \u043d\u0430\u0434 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0435\u043c\u043b\u0438. \u041d\u043e\u0433\u0438 \u0434\u0435\u0432\u0443\u0448\u043a\u0438 \u043e\u0433\u043e\u043b\u0435\u043d\u044b \u0434\u043e \u0432\u044b\u0441\u043e\u0442\u044b f.<\/p>\n<h2>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h2>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/890\/0a5\/fed\/8900a5fed924498f85160bb688bdde69.jpg\"\/><\/p>\n<p>  <i>\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0438 \u043f\u0435\u0440\u0435\u0444\u0440\u0430\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0438\u0437 \u00ab\u041a\u0440\u0438\u0441\u0442\u043e\u0444 \u0414\u0440\u0435\u0441\u0441\u0435\u0440: \u041e\u0431\u043e\u043b\u044c\u0441\u0442\u0438\u0442\u044c \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u043e\u0439. \u0427\u0438\u0441\u043b\u043e\u0432\u044b\u0435 \u0438\u0433\u0440\u044b \u043d\u0430 \u0432\u0441\u0435 \u0441\u043b\u0443\u0447\u0430\u0438 \u0436\u0438\u0437\u043d\u0438. \u0411\u0438\u043d\u043e\u043c. \u041b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0438\u044f \u0437\u043d\u0430\u043d\u0438\u0439, 2015\u00bb<\/i><\/p>\n<p>  \u041f\u043e\u044f\u0441\u043d\u0438\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443. \u0418\u0437\u0434\u0430\u043b\u0435\u043a\u0430 \u043f\u043b\u043e\u0445\u043e \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043d\u043e\u0433\u0438 \u2014 \u043e\u043d\u0438 \u0432\u0438\u0434\u043d\u044b \u043f\u043e\u0434 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u0430\u043b\u044b\u043c \u0443\u0433\u043b\u043e\u043c. \u041d\u043e \u0438 \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u043e\u0439\u0442\u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043b\u0438\u0437\u043a\u043e, \u043d\u043e\u0433\u0438 \u0442\u043e\u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u043d\u044b \u043f\u043e\u0434 \u043c\u0430\u043b\u044b\u043c \u0443\u0433\u043b\u043e\u043c. \u0413\u0434\u0435-\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435.<\/p>\n<p>  \u041f\u0443\u0441\u0442\u044c x \u2014 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0434\u043e \u0434\u0435\u0432\u0443\u0448\u043a\u0438, f \u2014 \u0434\u043b\u0438\u043d\u0430 \u043e\u0433\u043e\u043b\u0435\u043d\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043d\u043e\u0433 \u0434\u0435\u0432\u0443\u0448\u043a\u0438, alpha \u2014 \u0443\u0433\u043e\u043b, \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043d\u043e\u0433\u0438 \u0432\u0438\u0434\u043d\u044b (\u043d\u0430\u0434\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c).<\/p>\n<p>  \u0423\u0433\u043e\u043b alpha \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0430\u0439\u0442\u0438, \u0432\u044b\u0447\u0438\u0442\u0430\u044f \u0438\u0437 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u0443\u0433\u043b\u0430 \u0443\u0433\u043b\u044b beta \u0438 gamma. \u0415\u0441\u043b\u0438 \u0448\u043a\u043e\u043b\u044c\u043d\u0430\u044f \u0442\u0440\u0438\u0433\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u044f \u0435\u0449\u0435 \u043a\u0430\u043a-\u0442\u043e \u0436\u0438\u0432\u0430 \u0432 \u0437\u0430\u043a\u043e\u0443\u043b\u043a\u0430\u0445 \u043c\u043e\u0437\u0433\u0430, \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043c, \u0447\u0442\u043e<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/96d\/382\/23e\/96d38223ebcc4cccbc3e6fc2cc1a00db.png\"\/><\/p>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0430 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u043c\u0430\u043a\u0441\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 alpha(x) \u043f\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 x.<br \/>  \u041d\u0443 \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u0441\u043a\u0430\u0436\u0435\u043c \u043c\u044b: \u0437\u0430\u043d\u0443\u043b\u044f\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0443\u044e \u2014 \u0438 \u0432\u043f\u0435\u0440\u0435\u0434! <\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043c \u0433\u0440\u0430\u0444\u0438\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0438 alpha(x). \u0414\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 m=1.7 \u043c \u0438 f=0.7 \u043c (\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b 1 \u043c, \u043d\u043e \u0432\u0441\u0435 \u0436\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043d\u0435\u043a\u0430\u044f \u044e\u0431\u043a\u0430.)<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u043e\u0434. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0431\u043e\u0440\u043a\u0430 Anaconda \u0438 \u0442\u0435\u0442\u0440\u0430\u0434\u043a\u0438 IPython. \u041a\u043e\u0434 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c, \u043b\u0435\u0436\u0438\u0442 \u0432 <a href=\"https:\/\/github.com\/Yorko\/ipython_demonstrations\/\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/a> GitHub.<\/p>\n<pre><code class=\"python\"># \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043c \u043b\u0438\u0448\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f Anaconda import warnings warnings.filterwarnings('ignore') # \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 IPython, \u0447\u0442\u043e\u0431 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043f\u0440\u044f\u043c\u043e \u0432 \u0442\u0435\u0442\u0440\u0430\u0434\u043a\u0435 \u0440\u0438\u0441\u043e\u0432\u0430\u043b\u0438\u0441\u044c %pylab inline  import numpy as np from math import pi, atan <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"python\">def alpha(x, m, f):     return pi\/2 - atan(x\/m) - atan((m-f)\/x) # \u0437\u0430\u0434\u0430\u0435\u043c \u0438\u043a\u0441\u044b \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u0435\u043b\u043a\u0438\u043c \u0448\u0430\u0433\u043e\u043c x = np.arange(0, 6, 0.05) plot(x, [alpha(i, 1.7, 0.7) for i in x]) <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/8f3\/7a9\/e21\/8f37a9e21fd64c42ba72c5c9d98d1c7e.png\"\/><\/p>\n<p>  \u041e! \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u043b\u043e\u0441\u044c: \u0433\u0434\u0435-\u0442\u043e \u0432 1-1.5 \u043c \u043e\u0442 \u0434\u0435\u0432\u0443\u0448\u043a\u0438 \u0435\u0435 \u043d\u043e\u0433\u0438 \u0432\u0438\u0434\u043d\u044b \u043f\u043e\u0434 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0443\u0433\u043b\u043e\u043c. \u041d\u0443\u2026 \u044d\u0442\u043e \u0443\u0436\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u0431\u0435\u0437 \u043f\u0430\u043b\u0435\u0432\u0430. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0439\u0434\u0435\u043c \u0442\u043e\u0447\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0434\u043e \u0434\u0435\u0432\u0443\u0448\u043a\u0438.<\/p>\n<h2>\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u00ab\u043e\u0442 \u0440\u0443\u043a\u0438\u00bb<\/h2>\n<p>  \u0410\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0435, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0443\u044e \u0430\u0440\u043a\u0442\u0430\u043d\u0433\u0435\u043d\u0441\u0430. \u041d\u0430 \u0425\u0430\u0431\u0440\u0435 LaTeX \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u0430 \u0447\u0430\u0441\u0442\u044c \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0442\u0435\u0442\u0440\u0430\u0434\u043a\u0435 IPython. <br \/>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0439:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/276\/319\/9cd\/2763199cdf374a9d9674148e6abbe4cb.png\"\/><\/p>\n<h2>\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441 SymPy<\/h2>\n<p>  SymPy \u2014 \u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u0441 \u0435\u0435 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0435 (\u043c\u0435\u0442\u043e\u0434 diff) \u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u043a\u043e\u0440\u043d\u0438 \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0439 (\u043c\u0435\u0442\u043e\u0434 solve).<\/p>\n<pre><code class=\"python\">import sympy as sym <\/code><\/pre>\n<p>  \u0417\u0430\u0432\u0435\u0434\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e x \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044e alpha(x). \u0414\u043b\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u0447\u0438\u0441\u043b\u043e \u041f\u0438 \u0438 \u0430\u0440\u043a\u0442\u0430\u043d\u0433\u0435\u043d\u0441 \u0442\u043e\u0436\u0435 \u043d\u0430\u0434\u043e \u0432\u0437\u044f\u0442\u044c \u0438\u0437 SymPy.<\/p>\n<pre><code class=\"python\">x = sym.Symbol('x') alpha = sym.pi\/2 - sym.atan(x\/1.7) - sym.atan(1\/x) <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"python\">alpha #  -atan(1\/x) - atan(0.588235294117647*x) + pi\/2 <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u0443\u044e alpha'(x). \u041c\u0435\u0442\u043e\u0434\u0443 diff \u043d\u0430\u0434\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u043e\u0439, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 1.<\/p>\n<pre><code class=\"python\">alpha_deriv = sym.diff(alpha, x, 1) <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"python\">alpha_deriv # -0.59\/(0.35*x**2 + 1) + 1\/(x**2*(1 + x**(-2))) <\/code><\/pre>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u043e\u0441\u044c, \u0435\u0441\u043b\u0438 \u0432\u0437\u044f\u0442\u044c \u0432 \u0440\u0443\u043a\u0438 \u043a\u0430\u0440\u0430\u043d\u0434\u0430\u0448 \u0438 \u0431\u0443\u043c\u0430\u0433\u0443. <br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/7ca\/b1b\/11c\/7cab1b11c72942708cbe37a60b386362.png\"\/><br \/>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u043a \u043e\u0431\u0449\u0435\u043c\u0443 \u0437\u043d\u0430\u043c\u0435\u043d\u0430\u0442\u0435\u043b\u044e SymPy \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043d\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434 simplify.<\/p>\n<pre><code class=\"python\">sym.simplify(alpha_deriv) # (-0.24*x**2 + 0.41)\/((0.35*x**2 + 1)*(x**2 + 1)) <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0439\u0434\u0435\u043c \u043d\u0443\u043b\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u043e\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430 solve.<\/p>\n<pre><code class=\"python\">sym.solve(alpha_deriv, x) # [-1.30384048104053, 1.30384048104053] <\/code><\/pre>\n<p>  \u041e\u043f\u044f\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438, \u0447\u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0434\u0435\u0432\u0443\u0448\u043a\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441 1.3 \u043c. \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u044b \u0442\u043e\u0436\u0435 \u0442\u0430\u043a\u0438\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0432\u043e\u0434\u044f\u0442?<\/p>\n<h2>\u0427\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 c SciPy<\/h2>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/3df\/e44\/e9f\/3dfe44e9f7b1488ab35d31f76778a835.png\"\/><br \/>  <i>\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0438\u0437 \u043a\u0443\u0440\u0441\u0430 Andrew Ng \u043f\u043e \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u043c\u0443 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044e<\/i><\/p>\n<p>  \u0412 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 SciPy \u043f\u043e\u043c\u0438\u043c\u043e \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0439 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043c\u043d\u043e\u0433\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u0445 \u0438 \u043c\u043d\u043e\u0433\u043e\u043c\u0435\u0440\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0434\u0430\u043d\u044b \u0432 <a href=\"http:\/\/docs.scipy.org\/doc\/scipy-0.15.1\/reference\/generated\/scipy.optimize.minimize.html\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a> \u043c\u0435\u0442\u043e\u0434\u0430 scipy.optimize.minimize.<\/p>\n<p>  \u041c\u0435\u0442\u043e\u0434\u0430 maximize \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0432\u043e\u0433\u043e \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u0434\u0430\u0447\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u044d\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0434\u043e\u043c\u043d\u043e\u0436\u0435\u043d\u043d\u043e\u0439 \u043d\u0430 (-1). \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u2014 \u043c\u0438\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0441\u043a\u0430\u043b\u044f\u0440\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0434\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439. \u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u043c\u0435\u0442\u043e\u0434\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 &#8216;brent&#8217;, &#8216;bounded&#8217; \u0438 &#8216;golden&#8217;, \u043d\u043e \u043e\u0442\u043b\u0438\u0447\u0438\u044f \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u0442\u043e\u043b\u043a\u043e\u043c <a href=\"http:\/\/docs.scipy.org\/doc\/scipy-0.17.0\/reference\/generated\/scipy.optimize.minimize_scalar.html#scipy.optimize.minimize_scalar\">\u043d\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b<\/a>. <\/p>\n<pre><code class=\"python\">from scipy.optimize import minimize_scalar alpha = lambda x: -(pi\/2 - atan(x\/1.7) - atan(1\/x)) result = minimize_scalar(alpha, bounds=[0., 100.], method = 'bounded') <\/code><\/pre>\n<p>  \u041e\u0442\u0432\u0435\u0442 \u043f\u0440\u0435\u0436\u043d\u0438\u0439, \u043a\u0430\u043a \u0438 \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c.<\/p>\n<pre><code class=\"python\">result.x # 1.3038404104038319 <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u0431\u0435\u0440\u0435\u043c \u0434\u0435\u0432\u0443\u0448\u043a\u0443, \u043d\u0430 \u0447\u044c\u0438 \u043d\u043e\u0433\u0438 \u0431\u0443\u0434\u0435\u043c \u043b\u044e\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u0412\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u0437\u043d\u0430\u043a\u043e\u043c\u043e\u043c\u0443 \u043d\u0430\u0431\u043e\u0440\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 <a href=\"https:\/\/yadi.sk\/d\/FCGEKxaKeqDrS\">girls.csv<\/a> \u043f\u043e \u043c\u043e\u0434\u0435\u043b\u044f\u043c \u043c\u0435\u0441\u044f\u0446\u0430 \u043f\u043e Playboy. \u0412\u044b\u0431\u0435\u0440\u0435\u043c \u0441\u0430\u043c\u0443\u044e \u0432\u044b\u0441\u043e\u043a\u0443\u044e \u0438\u0437 \u043d\u0435\u0434\u0438\u0441\u0442\u0440\u043e\u0444\u0438\u0447\u043d\u044b\u0445 \u0434\u0435\u0432\u0443\u0448\u0435\u043a. \u0417\u0430\u043e\u0434\u043d\u043e \u043f\u043e\u043a\u0430\u0436\u0435\u043c \u043a\u043e\u0435-\u0447\u0442\u043e \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Pandas. <\/p>\n<h2>\u0417\u0430\u0434\u0430\u0447\u0430 2<\/h2>\n<p>  \u041d\u0430\u0439\u0442\u0438 \u0441\u0440\u0435\u0434\u0438 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 Playboy \u0434\u0435\u0432\u0443\u0448\u043a\u0443 \u0441 \u0441\u0430\u043c\u044b\u043c \u0432\u044b\u0441\u043e\u043a\u0438\u043c \u0440\u043e\u0441\u0442\u043e\u043c \u043f\u0440\u0438 \u00ab\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u043c\u00bb \u0438\u043d\u0434\u0435\u043a\u0441\u0435 \u043c\u0430\u0441\u0441\u044b \u0442\u0435\u043b\u0430 \u2014 \u043e\u0442 18 \u0434\u043e 18.5.<\/p>\n<h2>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h2>\n<pre><code class=\"python\">import pandas as pd girls = pd.read_csv('girls.csv') # \u043e\u0431\u044a\u0435\u043a\u0442 Pandas.DataFrame girls.head() # \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c 5 \u043f\u0435\u0440\u0432\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1ec\/006\/a89\/1ec006a894c64803a932ada8e6269292.png\"\/><\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u0438\u0437\u043d\u0430\u043a BMI \u2014 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%98%D0%BD%D0%B4%D0%B5%D0%BA%D1%81_%D0%BC%D0%B0%D1%81%D1%81%D1%8B_%D1%82%D0%B5%D0%BB%D0%B0\">\u0438\u043d\u0434\u0435\u043a\u0441 \u043c\u0430\u0441\u0441\u044b \u0442\u0435\u043b\u0430<\/a>, \u0440\u0430\u0432\u043d\u044b\u0439 \u0432\u0435\u0441\u0443, \u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u043d\u0430 \u0440\u043e\u0441\u0442 \u0432 \u043c\u0435\u0442\u0440\u0430\u0445 \u0432 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0435.<\/p>\n<pre><code class=\"python\">girls['BMI'] = 100 ** 2 * girls['Weight'] \/ (girls['Height'] ** 2) <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u0442\u0440\u043e\u0438\u043c \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f BMI.<\/p>\n<pre><code class=\"python\">girls['BMI'].hist() <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/cd1\/f9c\/82f\/cd1f9c82fe6b4d9294682cd1d717c431.png\"\/><\/p>\n<p>  \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044f \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u0447\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 BMI \u2014 18,5\u201424,99. \u0412\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0441\u0440\u0435\u0434\u043d\u0438\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u0443 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 Playboy \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043d\u0430 \u043d\u0438\u0436\u043d\u0435\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 \u043d\u043e\u0440\u043c\u044b. <br \/>  \u041e\u0442\u0431\u0435\u0440\u0435\u043c \u0434\u0435\u0432\u0443\u0448\u0435\u043a \u0441 BMI \u043e\u0442 18 \u0434\u043e 18.5.<\/p>\n<pre><code class=\"python\">selected_girls = girls[(girls['BMI'] &gt;= 18) &        (girls['BMI'] &lt;= 18.5)] <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"python\">selected_girls.sort(columns=['Height', 'Bust'],                      ascending=[False, False]).head(1) #    Month  Year  Bust  Waist  Hips  Height  Weight        BMI #430  July  1994    91     61    91     180      59  18.209877  <\/code><\/pre>\n<p>  \u042d\u0442\u043e Miss July 1994 \u043f\u043e \u0432\u0435\u0440\u0441\u0438\u0438 Playboy Traci Adell. \u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a \u0432 \u043f\u043e\u043c\u043e\u0449\u044c. \u0422\u0430\u043a\u043e\u0439 \u0432\u044b\u0431\u043e\u0440 \u0432\u0440\u044f\u0434 \u043b\u0438 \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u0443\u0435\u0442.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043c\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0441\u0430\u043c\u044b\u0435 \u043e\u0441\u043d\u043e\u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a Python SymPy, SciPy \u0438 Pandas. \u041e\u0431\u0438\u043b\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0443\u0436\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u0445 GitHub. \u041e\u0434\u0438\u043d \u0438\u0437 \u043e\u0431\u0437\u043e\u0440\u043e\u0432 \u0442\u0430\u043a\u0438\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 <a href=\"https:\/\/habrahabr.ru\/post\/270449\/\">\u0442\u0443\u0442<\/a>.               <\/p>\n<div class=\"clear\"><\/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:\/\/habrahabr.ru\/post\/275963\/\"> https:\/\/habrahabr.ru\/post\/275963\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0420\u0430\u043d\u044c\u0448\u0435 \u043c\u044b \u0443\u0436\u0435 <a href=\"https:\/\/habrahabr.ru\/post\/251225\/\">\u0438\u0441\u043a\u0430\u043b\u0438<\/a> \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 Playboy \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Python Scikit-learn. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a SymPy, SciPy, Matplotlib \u0438 Pandas \u043d\u0430 \u0436\u0438\u0432\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0438\u0437 \u0440\u0430\u0437\u0440\u044f\u0434\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0448\u043a\u043e\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u043f\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0435. \u0426\u0435\u043b\u044c \u2014 \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u0442\u044c \u043f\u043e\u0440\u043e\u0433 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0438 Python \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. <\/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-272963","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/272963","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=272963"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/272963\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}