{"id":71796,"student_id":10,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n\\t\u003ctitle\u003eDocument\u003c/title\u003e\\n\\t\u003cscript src=\\\"https://code.jquery.com/jquery-3.4.1.min.js\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003ch3\u003e體重\u003c/h3\u003e\\n \u003cinput id=\\\"a\\\"/\u003e\\n \u003ch3\u003e耳朵長度\u003c/h3\u003e\\n \u003cinput id=\\\"b\\\"/\u003e\\n \u003ch3\u003e尾巴長度\u003c/h3\u003e\\n \u003cinput id=\\\"c\\\"/\u003e\\n \\n \u003ch3\u003e輸出\u003c/h3\u003e\\n \u003cp\u003e\u003c/p\u003e\\n \\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"\",\"js\":\"var data = [\\n [4.5, 1.3, 0],\\n [4.5, 1.3, 0],\\n [4.5, 1.3, 0],\\n [4.5, 1.3, 0],\\n [4.5, 1.3, 0],\\n [4.5, 1.3, 0],\\n [4.5, 1.3, 0],\\n [4.5, 1.3, 0],\\n [4.5, 1.3, 0],\\n [4.5, 1.3, 0],\\n [3.0, 2.1, 1],\\n [3.0, 2.1, 1],\\n [3.0, 2.1, 1],\\n [3.0, 2.1, 1],\\n [3.0, 2.1, 1],\\n [3.0, 2.1, 1],\\n [3.0, 2.1, 1],\\n [3.0, 2.1, 1],\\n [3.0, 2.1, 1],\\n [3.0, 2.1, 1],\\n]\\n\\ndata.forEach((d) =\u003e {\\n var output = NN([w0], [d[0]]);\\n \\n var lose = d[2] - output;\\n console.log(output, lose);\\n var m0 = w0*lose;\\n w0 = m0 + w0;\\n});\\n\\n\"}","created_at":"2019-06-12T12:16:16.519+08:00","updated_at":"2019-11-11T10:13:17.040+08:00","name":"NN 分類","language":"web","screenshot":{"url":"https://cdn1.koding.school/uploads/project/screenshot/71796/c940c6ade6188196e97e5e7b06eb9d15.jpg"},"parent_id":3,"plugin":"var w0 = 1;\nvar w1 = 1;\nvar w2 = 1;\n\n$('#a, #b, #c').change(function() {\n var a = $('#a').val();\n var b = $('#b').val();\n var c = $('#c').val();\n \n a = Number(a) || 0;\n // b = Number(b) || 0;\n // c = Number(c) || 0;\n \n var output = NN([w0], [a]);\n \n $('p').text(output);\n});\n\nfunction NN (inputs, weights) {\n var i = inputs;\n var w = weights;\n return i[0]*w[0];\n // return i[0]*w[0] + i[1]*w[1] + i[2]*w[2];\n}","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":329,"hashid":"wdks92ky","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":1254098,"file_name":"koding.png","project_id":71796,"asset_id":107444,"created_at":"2019-06-12T12:16:16.524+08:00","updated_at":"2019-06-12T12:16:16.524+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦