{"id":291,"date":"2017-04-14T11:15:13","date_gmt":"2017-04-14T03:15:13","guid":{"rendered":"http:\/\/www.tastestars.com\/?p=291"},"modified":"2017-04-14T11:15:13","modified_gmt":"2017-04-14T03:15:13","slug":"matlab1","status":"publish","type":"post","link":"https:\/\/tastestars.com\/index.php\/2017\/04\/14\/matlab1\/","title":{"rendered":"\u4e24\u5c42\u524d\u9988\u7f51\u7edc\u7684\u5b9e\u73b0"},"content":{"rendered":"\n<pre class=\"lang:matlab decode:true \" >clear all;\r\nx=[0 1 2 3 4 5 6 7 8];\r\nt=[0 0.84 0.91 0.14 -0.77 -0.96 -0.28 0.66 0.99];\r\nplot(x,t,'o');\r\nnet=feedforwardnet(10); %\u521b\u5efa\u4e24\u5c42\u524d\u53cd\u9988\u7f51\u7edc\uff0c\u670910\u5143\r\nnet=configure(net,x,t);\r\ny1=net(x)\r\nplot(x,t,'o',x,y1,'x');\r\n%%\u6b64\u65f6\u7684y1\uff1a = -1.8260   -0.1460    1.5486    2.1347    3.5209    4.6727    4.3351    3.4458    4.0257\r\nnet=train(net,x,t); %\u5bf9\u7f51\u7edc\u8fdb\u884c\u8bad\u7ec3\r\ny2=net(x);\r\nplot(x,t,'o',x,y1,'x',x,y2,'*');\r\n%%\u6b64\u65f6\u7684y2\uff1a -0.5608    0.8365   -0.3636    0.1337   -0.7477   -0.9427   -0.3031    0.6589  0.9676<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/app.yinxiang.com\/shard\/s56\/res\/7f0f6f8f-752a-4889-b2c7-1efddfe4b0ea\" width=\"493\" height=\"698\" class=\"alignnone size-medium\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/app.yinxiang.com\/shard\/s56\/res\/7d2f7de7-0e6e-4365-ae0b-97aaea41ccc5\" width=\"576\" height=\"514\" class=\"alignnone size-medium\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>clear all; x=[0 1 2 3 4 5 6 7 8]; t=[0 0.84 0.91 0.14 &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[39],"tags":[43,41,27,42,7],"class_list":["post-291","post","type-post","status-publish","format-standard","hentry","category-matlabstudy","tag-matlab","tag-41","tag-27","tag-42","tag-7"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s9Hs6X-matlab1","_links":{"self":[{"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/posts\/291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/comments?post=291"}],"version-history":[{"count":1,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/posts\/291\/revisions"}],"predecessor-version":[{"id":292,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/posts\/291\/revisions\/292"}],"wp:attachment":[{"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/media?parent=291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/categories?post=291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tastestars.com\/index.php\/wp-json\/wp\/v2\/tags?post=291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}