{"id":34808,"date":"2025-05-01T06:02:39","date_gmt":"2025-04-30T22:02:39","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/34808.html"},"modified":"2025-05-01T06:02:39","modified_gmt":"2025-04-30T22:02:39","slug":"%e6%9c%ba%e5%99%a8%e5%ad%a6%e4%b9%a0%e7%ac%ac%e4%b8%80%e7%af%87-%e7%ba%bf%e6%80%a7%e5%9b%9e%e5%bd%92","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/34808.html","title":{"rendered":"\u673a\u5668\u5b66\u4e60\u7b2c\u4e00\u7bc7 \u7ebf\u6027\u56de\u5f52"},"content":{"rendered":"<p>\u6570\u636e\u96c6&#xff1a;\u516c\u5f00\u7684World Happiness Report | Kaggle\u4e2d\u7684happiness dataset2017.<\/p>\n<p>\u76ee\u6807&#xff1a;\u57fa\u4e8eGDP\u503c\u9884\u6d4b\u5e78\u798f\u6307\u6570\u3002&#xff08;\u5355\u7279\u5f81\u9884\u6d4b&#xff09;<\/p>\n<p>\u4ee3\u7801&#xff1a;<\/p>\n<p>\u6587\u4ef6\u4e00&#xff1a;prepare_for_traning.py<\/p>\n<p>&#034;&#034;&#034;\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u7684\u4e00\u4e2a\u5e93&#xff0c;\u63d0\u4f9b\u4e86\u591a\u7ef4\u6570\u7ec4\u5bf9\u8c61\u4ee5\u53ca\u64cd\u4f5c\u51fd\u6570&#034;&#034;&#034;<br \/>\nfrom utils.features import prepare_for_training<br \/>\n&#034;&#034;&#034;\u6570\u636e\u9884\u5904\u7406\u7684\u4e00\u4e2a\u79c1\u5e93&#034;&#034;&#034;<\/p>\n<p>class LinearRegression:<br \/>\n    def __init__(self,data,labels,polynomial_degree &#061; 0,sinusoid_degree &#061; 0,normalize_data &#061; True):<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u8fdb\u884c\u9884\u5904\u7406\u64cd\u4f5c<br \/>\n        :param data:<br \/>\n        :param labels:<br \/>\n        :param polynomial_degree:<br \/>\n        :param sinusoid_degree:<br \/>\n        :param normalize_data:<br \/>\n        &#034;&#034;&#034;<br \/>\n        (data_processed,<br \/>\n            features_mean,<br \/>\n            features_deviation) &#061; prepare_for_training(data,polynomial_degree &#061; 0,sinusoid_degree &#061; 0,normalize_data &#061; True)<br \/>\n        self.data &#061; data_processed<br \/>\n        self.labels &#061; labels<br \/>\n        self.features_mean &#061; features_mean<br \/>\n        self.features_deviation &#061; features_deviation<br \/>\n        self.polynomial_degree &#061; polynomial_degree<br \/>\n        self.sinusoid_degree &#061; sinusoid_degree<br \/>\n        self.normalize_data &#061; normalize_data<br \/>\n        num_features &#061; self.data.shape[1]<br \/>\n        self.theta &#061; np.zeros((num_features,1))<br \/>\n    &#034;&#034;&#034;&#034;\u6570\u636e&#xff0c;\u5b66\u4e60\u7387&#xff0c;\u8bad\u7ec3\u6b21\u6570&#034;&#034;&#034;<br \/>\n    def train(self,alpha,num_iterations &#061; 500):<br \/>\n        &#034;&#034;&#034;\u8bad\u7ec3\u6a21\u5757&#xff1a;\u68af\u5ea6\u4e0b\u964d&#034;&#034;&#034;<br \/>\n        cost_history &#061; self.gradient_descent(alpha,num_iterations)<br \/>\n        return self.theta,cost_history<\/p>\n<p>    def gradient_descent(self,alpha,num_iterations):<br \/>\n        &#034;&#034;&#034;\u8fed\u4ee3\u6a21\u5757&#034;&#034;&#034;<br \/>\n        cost_history &#061; []<br \/>\n        for _ in range(num_iterations):<br \/>\n            self.gradient_step(alpha)<br \/>\n            cost_history.append(self.cost_function(self.data,self.labels))<br \/>\n        return cost_history<\/p>\n<p>    def gradient_step(self,alpha):<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u68af\u5ea6\u4e0b\u964d\u53c2\u6570\u66f4\u65b0\u7b97\u6cd5&#xff0c;\u77e9\u9635\u8ba1\u7b97&#xff0c;\u4f7f\u7528\u5c0f\u6279\u91cf\u68af\u5ea6\u4e0b\u964d\u7b97\u6cd5<br \/>\n        :param self:<br \/>\n        :param alpha:<br \/>\n        :return:<br \/>\n        &#034;&#034;&#034;<br \/>\n        num_examples &#061; self.data.shape[0]<br \/>\n        prediction &#061; LinearRegression.hypothesis(self.data,self.theta)<br \/>\n        delta &#061; prediction &#8211; self.labels<br \/>\n        theta &#061; self.theta<br \/>\n        theta &#061; theta &#8211; alpha*(1\/num_examples)*(np.dot(delta.T,self.data)).T<br \/>\n        self.theta &#061; theta<\/p>\n<p>    def cost_function(self,data,labels):<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u635f\u5931\u8ba1\u7b97\u6a21\u5757<br \/>\n        :param self:<br \/>\n        :param data:<br \/>\n        :param labels:<br \/>\n        :return:<br \/>\n        &#034;&#034;&#034;<br \/>\n        num_examples &#061; data.shape[0]<br \/>\n        delta &#061; LinearRegression.hypothesis(self.data,self.theta) &#8211; labels<br \/>\n        cost &#061; (1\/2)*np.dot(delta.T,delta)\/num_examples<br \/>\n        &#034;&#034;&#034;print(cost.shape)&#034;&#034;&#034;<br \/>\n        return cost[0][0]<\/p>\n<p>    &#034;&#034;&#034;\u88c5\u9970\u5668&#034;&#034;&#034;<br \/>\n    &#064;staticmethod<br \/>\n    def hypothesis(data,theta):<br \/>\n        prediction &#061; np.dot(data,theta)<br \/>\n        return prediction<\/p>\n<p>    def get_cost(self,data,labels):<br \/>\n        data_processed &#061; prepare_for_training(data,<br \/>\n         self.polynomial_degree,<br \/>\n         self.sinusoid_degree,<br \/>\n         self.normalize_data<br \/>\n         )[0]<\/p>\n<p>        return self.cost_function(data_processed,labels)<\/p>\n<p>    def predict(self,data):<br \/>\n        data_processed &#061; prepare_for_training(data,<br \/>\n        self.polynomial_degree,<br \/>\n        self.sinusoid_degree,<br \/>\n        self.normalize_data<br \/>\n        )[0]<br \/>\n        predictions &#061; LinearRegression.hypothesis(data_processed,self.theta)<\/p>\n<p>        return predictions <\/p>\n<p>\u6587\u4ef62&#xff1a;Linear_regression.py\u00a0<\/p>\n<p>import numpy as np<br \/>\n&#034;&#034;&#034;\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u7684\u4e00\u4e2a\u5e93&#xff0c;\u63d0\u4f9b\u4e86\u591a\u7ef4\u6570\u7ec4\u5bf9\u8c61\u4ee5\u53ca\u64cd\u4f5c\u51fd\u6570&#034;&#034;&#034;<br \/>\nimport pandas as pd<br \/>\n&#034;&#034;&#034;\u4e00\u4e2a\u7528\u4e8e\u6570\u636e\u5bfc\u5165\u3001\u5bfc\u51fa\u3001\u6e05\u6d17\u548c\u5206\u6790\u7684\u5e93&#xff0c;\u672c\u6587\u4e2d\u5bfc\u5165csv\u683c\u5f0f\u6570\u636e\u7b49\u7b49&#034;&#034;&#034;<br \/>\nimport matplotlib.pyplot as plt<br \/>\n&#034;&#034;&#034;pyplot\u63d0\u4f9b\u4e86\u7ed8\u56fe\u63a5\u53e3&#034;&#034;&#034;<br \/>\nimport matplotlib<br \/>\n&#034;&#034;&#034;\u4e00\u4e2a\u5f3a\u5927\u7684\u7ed8\u56fe\u5e93&#034;&#034;&#034;<\/p>\n<p># \u8bbe\u7f6ematplotlib\u6b63\u5e38\u663e\u793a\u4e2d\u6587\u548c\u8d1f\u53f7<br \/>\nmatplotlib.rcParams[&#039;font.family&#039;] &#061; &#039;SimHei&#039;  # \u6307\u5b9a\u9ed8\u8ba4\u5b57\u4f53\u4e3a\u9ed1\u4f53<br \/>\nmatplotlib.rcParams[&#039;axes.unicode_minus&#039;] &#061; False  # \u6b63\u786e\u663e\u793a\u8d1f\u53f7<\/p>\n<p>from prepare_for_training import LinearRegression<\/p>\n<p>data &#061; pd.read_csv(&#034;D:\/machine_learning\/archive\/2017.csv&#034;)<br \/>\ntrain_data &#061; data.sample(frac &#061; 0.8)<br \/>\ntest_data &#061; data.drop(train_data.index)<\/p>\n<p>input_param_name &#061; &#039;Economy..GDP.per.Capita.&#039;<br \/>\noutput_param_name &#061; &#039;Happiness.Score&#039;<\/p>\n<p>x_train &#061; train_data[[input_param_name]].values<br \/>\ny_train &#061; train_data[[output_param_name]].values<\/p>\n<p>x_test &#061; test_data[[input_param_name]].values<br \/>\ny_test &#061; test_data[[output_param_name]].values<\/p>\n<p>plt.scatter(x_train,y_train,label &#061;&#039;Train data&#039;)<br \/>\nplt.scatter(x_test,y_test,label &#061;&#039;Test data&#039;)<br \/>\nplt.xlabel(input_param_name)<br \/>\nplt.ylabel(output_param_name)<br \/>\nplt.title(&#039;Happy&#039;)<br \/>\nplt.legend()<br \/>\nplt.show()<\/p>\n<p>&#034;&#034;&#034;\u8bad\u7ec3\u6b21\u6570&#xff0c;\u5b66\u4e60\u7387&#034;&#034;&#034;<br \/>\nnum_iterations &#061; 500<br \/>\nlearning_rate &#061; 0.01<\/p>\n<p>linear_regression &#061; LinearRegression(x_train,y_train)<br \/>\n(theta,cost_history) &#061; linear_regression.train(learning_rate,num_iterations)<br \/>\nprint(&#039;\u5f00\u59cb\u65f6\u7684\u635f\u5931&#039;,cost_history[0])<br \/>\nprint(&#039;\u8bad\u7ec3\u540e\u7684\u635f\u5931&#039;,cost_history[-1])<\/p>\n<p>plt.plot(range(num_iterations),cost_history)<br \/>\nplt.xlabel(&#039;Iter&#039;)<br \/>\nplt.ylabel(&#039;cost&#039;)<br \/>\nplt.title(&#039;\u635f\u5931\u503c&#039;)<br \/>\nplt.show()<\/p>\n<p>predictions_num &#061; 100<br \/>\nx_predictions &#061; np.linspace(x_train.min(),x_train.max(),predictions_num).reshape(predictions_num,1)<br \/>\ny_predictions &#061; linear_regression.predict(x_predictions)<\/p>\n<p>plt.scatter(x_train,y_train,label &#061;&#039;Train data&#039;)<br \/>\nplt.scatter(x_test,y_test,label &#061;&#039;Test data&#039;)<br \/>\nplt.plot(x_predictions,y_predictions,&#039;r&#039;,label &#061; &#039;Prediction&#039;)<br \/>\nplt.xlabel(input_param_name)<br \/>\nplt.ylabel(output_param_name)<br \/>\nplt.title(&#039;Happy&#039;)<br \/>\nplt.legend()<br \/>\nplt.show()<\/p>\n<p>\u6548\u679c\u56fe&#xff1a; <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"243\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250430220238-68129dfe5c79e.png\" width=\"282\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"259\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250430220238-68129dfe6fde2.png\" width=\"320\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"248\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250430220238-68129dfe811d1.png\" width=\"282\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"85\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250430220238-68129dfe94533.png\" width=\"987\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e50\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u673a\u5668\u5b66\u4e60\uff0c\u7ebf\u6027\u56de\u5f52\u9884\u6d4b<\/p>\n","protected":false},"author":2,"featured_media":34804,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[50,207,2949],"topic":[],"class_list":["post-34808","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-50","tag-207","tag-2949"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u673a\u5668\u5b66\u4e60\u7b2c\u4e00\u7bc7 \u7ebf\u6027\u56de\u5f52 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/34808.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u673a\u5668\u5b66\u4e60\u7b2c\u4e00\u7bc7 \u7ebf\u6027\u56de\u5f52 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e50\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u673a\u5668\u5b66\u4e60\uff0c\u7ebf\u6027\u56de\u5f52\u9884\u6d4b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/34808.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-30T22:02:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250430220238-68129dfe5c79e.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/34808.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/34808.html\",\"name\":\"\u673a\u5668\u5b66\u4e60\u7b2c\u4e00\u7bc7 \u7ebf\u6027\u56de\u5f52 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-30T22:02:39+00:00\",\"dateModified\":\"2025-04-30T22:02:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/34808.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/34808.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/34808.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u673a\u5668\u5b66\u4e60\u7b2c\u4e00\u7bc7 \u7ebf\u6027\u56de\u5f52\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u673a\u5668\u5b66\u4e60\u7b2c\u4e00\u7bc7 \u7ebf\u6027\u56de\u5f52 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/34808.html","og_locale":"zh_CN","og_type":"article","og_title":"\u673a\u5668\u5b66\u4e60\u7b2c\u4e00\u7bc7 \u7ebf\u6027\u56de\u5f52 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e50\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u673a\u5668\u5b66\u4e60\uff0c\u7ebf\u6027\u56de\u5f52\u9884\u6d4b","og_url":"https:\/\/www.wsisp.com\/helps\/34808.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-30T22:02:39+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250430220238-68129dfe5c79e.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/34808.html","url":"https:\/\/www.wsisp.com\/helps\/34808.html","name":"\u673a\u5668\u5b66\u4e60\u7b2c\u4e00\u7bc7 \u7ebf\u6027\u56de\u5f52 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-30T22:02:39+00:00","dateModified":"2025-04-30T22:02:39+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/34808.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/34808.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/34808.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u673a\u5668\u5b66\u4e60\u7b2c\u4e00\u7bc7 \u7ebf\u6027\u56de\u5f52"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/34808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=34808"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/34808\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/34804"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=34808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=34808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=34808"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=34808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}