{"id":1057577,"date":"2024-12-31T15:09:15","date_gmt":"2024-12-31T07:09:15","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1057577.html"},"modified":"2024-12-31T15:09:17","modified_gmt":"2024-12-31T07:09:17","slug":"python%e6%89%8b%e7%bb%98%e4%b8%ad%e6%a2%af%e5%ba%a6%e5%a6%82%e4%bd%95%e5%bd%92%e4%b8%80%e5%8c%96","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1057577.html","title":{"rendered":"python\u624b\u7ed8\u4e2d\u68af\u5ea6\u5982\u4f55\u5f52\u4e00\u5316"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/a47578b4-04e2-41ec-bb8e-64a577ddaf01.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u624b\u7ed8\u4e2d\u68af\u5ea6\u5982\u4f55\u5f52\u4e00\u5316\" \/><\/p>\n<p><p> <strong>\u68af\u5ea6\u5f52\u4e00\u5316\u7684\u4e3b\u8981\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u6700\u5c0f-\u6700\u5927\u5f52\u4e00\u5316\u3001\u6807\u51c6\u5316\u3001L2\u6b63\u5219\u5316<\/strong>\u3002\u5176\u4e2d\u6700\u5c0f-\u6700\u5927\u5f52\u4e00\u5316\u662f\u5c06\u68af\u5ea6\u503c\u7f29\u653e\u5230\u4e00\u4e2a\u6307\u5b9a\u7684\u8303\u56f4\uff08\u901a\u5e38\u662f0\u52301\uff09\uff0c\u901a\u8fc7\u7ebf\u6027\u53d8\u6362\u7684\u65b9\u6cd5\u5b9e\u73b0\u3002\u6807\u51c6\u5316\u5219\u662f\u901a\u8fc7\u51cf\u53bb\u5747\u503c\u5e76\u9664\u4ee5\u6807\u51c6\u5dee\u6765\u4f7f\u6570\u636e\u7b26\u5408\u6807\u51c6\u6b63\u6001\u5206\u5e03\uff08\u5747\u503c\u4e3a0\uff0c\u6807\u51c6\u5dee\u4e3a1\uff09\u3002L2\u6b63\u5219\u5316\u662f\u5728\u68af\u5ea6\u66f4\u65b0\u8fc7\u7a0b\u4e2d\u52a0\u5165\u4e00\u4e2a\u6b63\u5219\u9879\uff0c\u4ece\u800c\u9632\u6b62\u6a21\u578b\u8fc7\u62df\u5408\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u548c\u8ba8\u8bba\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u6700\u5c0f-\u6700\u5927\u5f52\u4e00\u5316<\/h3>\n<\/p>\n<p><p>\u6700\u5c0f-\u6700\u5927\u5f52\u4e00\u5316\u901a\u8fc7\u7ebf\u6027\u53d8\u6362\u5c06\u68af\u5ea6\u503c\u7f29\u653e\u5230\u4e00\u4e2a\u6307\u5b9a\u7684\u8303\u56f4\uff08\u901a\u5e38\u662f0\u52301\uff09\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u516c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p>[ X_{norm} = \\frac{X &#8211; X_{min}}{X_{max} &#8211; X_{min}} ]<\/p>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u5355\u76f4\u89c2\uff0c\u4e14\u80fd\u4fdd\u7559\u539f\u59cb\u6570\u636e\u7684\u5206\u5e03\u7279\u6027\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u8ba1\u7b97\u6700\u5c0f\u503c\u548c\u6700\u5927\u503c<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u8ba1\u7b97\u68af\u5ea6\u77e9\u9635\u7684\u6700\u5c0f\u503c\u548c\u6700\u5927\u503c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u793a\u4f8b\u68af\u5ea6\u77e9\u9635<\/strong><\/h2>\n<p>gradient_matrix = np.array([[0.1, 0.2, 0.3], [0.4, 0.5, 0.6], [0.7, 0.8, 0.9]])<\/p>\n<p>X_min = np.min(gradient_matrix)<\/p>\n<p>X_max = np.max(gradient_matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5e94\u7528\u6700\u5c0f-\u6700\u5927\u5f52\u4e00\u5316<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u4e0a\u8ff0\u516c\u5f0f\u5c06\u68af\u5ea6\u77e9\u9635\u5f52\u4e00\u5316\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">X_norm = (gradient_matrix - X_min) \/ (X_max - X_min)<\/p>\n<p>print(X_norm)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u5c06\u68af\u5ea6\u77e9\u9635\u7684\u503c\u7f29\u653e\u5230\u4e860\u52301\u4e4b\u95f4\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u6807\u51c6\u5316<\/h3>\n<\/p>\n<p><p>\u6807\u51c6\u5316\u7684\u76ee\u7684\u662f\u4f7f\u6570\u636e\u7684\u5747\u503c\u4e3a0\uff0c\u6807\u51c6\u5dee\u4e3a1\uff0c\u4f7f\u5f97\u6570\u636e\u7b26\u5408\u6807\u51c6\u6b63\u6001\u5206\u5e03\u3002\u5176\u516c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p>[ X_{norm} = \\frac{X &#8211; \\mu}{\\sigma} ]<\/p>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c(\\mu)\u662f\u6570\u636e\u7684\u5747\u503c\uff0c(\\sigma)\u662f\u6570\u636e\u7684\u6807\u51c6\u5dee\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u8ba1\u7b97\u5747\u503c\u548c\u6807\u51c6\u5dee<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u8ba1\u7b97\u68af\u5ea6\u77e9\u9635\u7684\u5747\u503c\u548c\u6807\u51c6\u5dee\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">X_mean = np.mean(gradient_matrix)<\/p>\n<p>X_std = np.std(gradient_matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5e94\u7528\u6807\u51c6\u5316<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u4e0a\u8ff0\u516c\u5f0f\u5c06\u68af\u5ea6\u77e9\u9635\u6807\u51c6\u5316\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">X_norm = (gradient_matrix - X_mean) \/ X_std<\/p>\n<p>print(X_norm)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001L2\u6b63\u5219\u5316<\/h3>\n<\/p>\n<p><p>L2\u6b63\u5219\u5316\u901a\u8fc7\u5728\u68af\u5ea6\u66f4\u65b0\u8fc7\u7a0b\u4e2d\u52a0\u5165\u4e00\u4e2a\u6b63\u5219\u9879\uff0c\u4ee5\u9632\u6b62\u6a21\u578b\u8fc7\u62df\u5408\u3002\u5176\u516c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p>[ X_{norm} = \\frac{X}{|X|_2} ]<\/p>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c(|X|_2)\u662f\u68af\u5ea6\u77e9\u9635\u7684L2\u8303\u6570\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u8ba1\u7b97L2\u8303\u6570<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u8ba1\u7b97\u68af\u5ea6\u77e9\u9635\u7684L2\u8303\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">L2_norm = np.linalg.norm(gradient_matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5e94\u7528L2\u6b63\u5219\u5316<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u4e0a\u8ff0\u516c\u5f0f\u5c06\u68af\u5ea6\u77e9\u9635\u8fdb\u884cL2\u5f52\u4e00\u5316\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">X_norm = gradient_matrix \/ L2_norm<\/p>\n<p>print(X_norm)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u9009\u62e9\u5f52\u4e00\u5316\u65b9\u6cd5\u7684\u8003\u8651\u56e0\u7d20<\/h3>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u68af\u5ea6\u5f52\u4e00\u5316\u65b9\u6cd5\u65f6\uff0c\u9700\u8981\u8003\u8651\u4ee5\u4e0b\u56e0\u7d20\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u6570\u636e\u7684\u5206\u5e03<\/strong>\uff1a\u5982\u679c\u6570\u636e\u7684\u5206\u5e03\u6709\u8f83\u5927\u5dee\u5f02\uff0c\u6807\u51c6\u5316\u53ef\u80fd\u66f4\u9002\u7528\uff0c\u56e0\u4e3a\u5b83\u5c06\u6570\u636e\u8f6c\u6362\u4e3a\u6807\u51c6\u6b63\u6001\u5206\u5e03\u3002<\/li>\n<li><strong>\u6a21\u578b\u7684\u9700\u6c42<\/strong>\uff1a\u67d0\u4e9b\u6a21\u578b\u5bf9\u6570\u636e\u7684\u8303\u56f4\u548c\u5206\u5e03\u6709\u7279\u5b9a\u8981\u6c42\uff0c\u4f8b\u5982\u795e\u7ecf\u7f51\u7edc\u901a\u5e38\u9700\u8981\u8f93\u5165\u6570\u636e\u5728\u4e00\u4e2a\u7279\u5b9a\u8303\u56f4\u5185\uff0c\u6b64\u65f6\u6700\u5c0f-\u6700\u5927\u5f52\u4e00\u5316\u53ef\u80fd\u66f4\u9002\u7528\u3002<\/li>\n<li><strong>\u8ba1\u7b97\u590d\u6742\u5ea6<\/strong>\uff1a\u4e0d\u540c\u5f52\u4e00\u5316\u65b9\u6cd5\u7684\u8ba1\u7b97\u590d\u6742\u5ea6\u4e0d\u540c\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/li>\n<\/ul>\n<p><h3>\u4e94\u3001\u5b9e\u6218\u6848\u4f8b<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\u68af\u5ea6\u5f52\u4e00\u5316\uff0c\u6211\u4eec\u4ee5\u4e00\u4e2a\u5b9e\u9645\u6848\u4f8b\u4e3a\u4f8b\uff0c\u5c55\u793a\u5982\u4f55\u5728\u4e00\u4e2a\u7b80\u5355\u7684\u795e\u7ecf\u7f51\u7edc\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u5e94\u7528\u68af\u5ea6\u5f52\u4e00\u5316\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u6784\u5efa\u7b80\u5355\u795e\u7ecf\u7f51\u7edc<\/h4>\n<\/p>\n<p><p>\u6211\u4eec\u9996\u5148\u6784\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u795e\u7ecf\u7f51\u7edc\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tensorflow as tf<\/p>\n<p>from tensorflow.keras.models import Sequential<\/p>\n<p>from tensorflow.keras.layers import Dense<\/p>\n<h2><strong>\u6784\u5efa\u7b80\u5355\u7684\u795e\u7ecf\u7f51\u7edc\u6a21\u578b<\/strong><\/h2>\n<p>model = Sequential([<\/p>\n<p>    Dense(64, activation=&#39;relu&#39;, input_shape=(32,)),<\/p>\n<p>    Dense(64, activation=&#39;relu&#39;),<\/p>\n<p>    Dense(10, activation=&#39;softmax&#39;)<\/p>\n<p>])<\/p>\n<h2><strong>\u7f16\u8bd1\u6a21\u578b<\/strong><\/h2>\n<p>model.compile(optimizer=&#39;adam&#39;, loss=&#39;sparse_categorical_crossentropy&#39;, metrics=[&#39;accuracy&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u751f\u6210\u793a\u4f8b\u6570\u636e<\/h4>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u751f\u6210\u4e00\u4e9b\u793a\u4f8b\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u751f\u6210\u968f\u673a\u6570\u636e<\/p>\n<p>X_tr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n = np.random.rand(1000, 32)<\/p>\n<p>y_train = np.random.randint(0, 10, 1000)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u8bad\u7ec3\u524d\u68af\u5ea6\u5f52\u4e00\u5316<\/h4>\n<\/p>\n<p><p>\u5728\u8bad\u7ec3\u6a21\u578b\u4e4b\u524d\uff0c\u6211\u4eec\u5bf9\u68af\u5ea6\u8fdb\u884c\u5f52\u4e00\u5316\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from tensorflow.keras.callbacks import Callback<\/p>\n<p>class GradientNormalizationCallback(Callback):<\/p>\n<p>    def on_train_batch_end(self, batch, logs=None):<\/p>\n<p>        for layer in self.model.layers:<\/p>\n<p>            if hasattr(layer, &#39;kernel&#39;):<\/p>\n<p>                grad = layer.kernel.numpy()<\/p>\n<p>                grad_norm = (grad - np.min(grad)) \/ (np.max(grad) - np.min(grad))<\/p>\n<p>                layer.kernel.assign(grad_norm)<\/p>\n<h2><strong>\u8bad\u7ec3\u6a21\u578b\uff0c\u6dfb\u52a0\u81ea\u5b9a\u4e49\u56de\u8c03\u51fd\u6570\u8fdb\u884c\u68af\u5ea6\u5f52\u4e00\u5316<\/strong><\/h2>\n<p>model.fit(X_train, y_train, epochs=10, callbacks=[GradientNormalizationCallback()])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u6211\u4eec\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u5bf9\u68af\u5ea6\u8fdb\u884c\u4e86\u6700\u5c0f-\u6700\u5927\u5f52\u4e00\u5316\uff0c\u4ece\u800c\u4f18\u5316\u4e86\u6a21\u578b\u7684\u8bad\u7ec3\u6548\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u68af\u5ea6\u5f52\u4e00\u5316\u662f\u6df1\u5ea6\u5b66\u4e60\u4e2d\u4e00\u4e2a\u91cd\u8981\u7684\u6b65\u9aa4\uff0c\u5b83\u80fd\u5e2e\u52a9\u6211\u4eec\u7a33\u5b9a\u8bad\u7ec3\u8fc7\u7a0b\uff0c\u63d0\u9ad8\u6a21\u578b\u7684\u6027\u80fd\u3002\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u8be6\u7ec6\u8ba8\u8bba\u4e86\u6700\u5c0f-\u6700\u5927\u5f52\u4e00\u5316\u3001\u6807\u51c6\u5316\u3001L2\u6b63\u5219\u5316\u4e09\u79cd\u4e3b\u8981\u65b9\u6cd5\uff0c\u5e76\u7ed3\u5408\u5b9e\u9645\u6848\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u5e94\u7528\u8fd9\u4e9b\u65b9\u6cd5\u3002\u5e0c\u671b\u8fd9\u4e9b\u5185\u5bb9\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u5e94\u7528\u68af\u5ea6\u5f52\u4e00\u5316\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u68af\u5ea6\u5f52\u4e00\u5316\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u68af\u5ea6\u5f52\u4e00\u5316\u901a\u5e38\u901a\u8fc7\u5c06\u68af\u5ea6\u503c\u7f29\u653e\u5230\u4e00\u4e2a\u7279\u5b9a\u8303\u56f4\u5185\u6765\u5b8c\u6210\u3002\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528Min-Max\u5f52\u4e00\u5316\u6216Z-score\u6807\u51c6\u5316\u3002Min-Max\u5f52\u4e00\u5316\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u516c\u5f0f\u5b9e\u73b0\uff1a<code>normalized_value = (value - min) \/ (max - min)<\/code>\u3002\u8fd9\u5c06\u68af\u5ea6\u503c\u7f29\u653e\u52300\u52301\u4e4b\u95f4\u3002\u4f7f\u7528NumPy\u5e93\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5bf9\u6570\u7ec4\u8fdb\u884c\u8fd9\u6837\u7684\u5f52\u4e00\u5316\u5904\u7406\u3002<\/p>\n<p><strong>\u5728\u624b\u7ed8\u4e2d\u68af\u5ea6\u5f52\u4e00\u5316\u7684\u6700\u4f73\u5b9e\u8df5\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728\u624b\u7ed8\u8fc7\u7a0b\u4e2d\uff0c\u786e\u4fdd\u68af\u5ea6\u5e73\u6ed1\u548c\u4e00\u81f4\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002\u4f7f\u7528\u6e10\u53d8\u5de5\u5177\u548c\u9002\u5f53\u7684\u8272\u5f69\u9009\u62e9\u53ef\u4ee5\u5e2e\u52a9\u5b9e\u73b0\u8fd9\u4e00\u76ee\u6807\u3002\u6b64\u5916\uff0c\u5efa\u8bae\u5728\u5f52\u4e00\u5316\u524d\u5148\u8fdb\u884c\u9884\u5904\u7406\uff0c\u6bd4\u5982\u5bf9\u56fe\u50cf\u8fdb\u884c\u5e73\u6ed1\u5904\u7406\uff0c\u51cf\u5c11\u566a\u58f0\u3002\u5bf9\u4e8e\u989c\u8272\u6e10\u53d8\uff0c\u4f7f\u7528HSV\u6216HSL\u8272\u5f69\u7a7a\u95f4\u8fdb\u884c\u8c03\u6574\u53ef\u80fd\u4f1a\u66f4\u52a0\u76f4\u89c2\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528Python\u4e2d\u7684\u5e93\u6765\u5b9e\u73b0\u68af\u5ea6\u5f52\u4e00\u5316\uff1f<\/strong><br \/>Python\u4e2d\u6709\u591a\u4e2a\u5e93\u53ef\u4ee5\u5e2e\u52a9\u5b9e\u73b0\u68af\u5ea6\u5f52\u4e00\u5316\uff0c\u5e38\u7528\u7684\u6709NumPy\u548cMatplotlib\u3002\u901a\u8fc7NumPy\uff0c\u53ef\u4ee5\u5904\u7406\u6570\u7ec4\u548c\u77e9\u9635\uff0c\u8f7b\u677e\u8ba1\u7b97\u6700\u5c0f\u503c\u548c\u6700\u5927\u503c\u3002\u800cMatplotlib\u5219\u53ef\u4ee5\u7528\u6765\u53ef\u89c6\u5316\u7ed3\u679c\u3002\u5728\u5f52\u4e00\u5316\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528Matplotlib\u4e2d\u7684imshow\u51fd\u6570\u663e\u793a\u56fe\u50cf\u6548\u679c\uff0c\u5e2e\u52a9\u9a8c\u8bc1\u68af\u5ea6\u7684\u5e73\u6ed1\u7a0b\u5ea6\u548c\u8fc7\u6e21\u6548\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u68af\u5ea6\u5f52\u4e00\u5316\u7684\u4e3b\u8981\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u6700\u5c0f-\u6700\u5927\u5f52\u4e00\u5316\u3001\u6807\u51c6\u5316\u3001L2\u6b63\u5219\u5316\u3002\u5176\u4e2d\u6700\u5c0f-\u6700\u5927\u5f52\u4e00\u5316\u662f\u5c06\u68af\u5ea6\u503c\u7f29\u653e\u5230\u4e00\u4e2a\u6307\u5b9a [&hellip;]","protected":false},"author":3,"featured_media":1057587,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1057577"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1057577"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1057577\/revisions"}],"predecessor-version":[{"id":1057594,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1057577\/revisions\/1057594"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1057587"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1057577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1057577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1057577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}