# 第五堂社課 ## Al淺談 & Machine Learning原理介紹 --- # Artificial Intelligence * 起源 * 弱人工智慧(Weak Artificial Intelligence) * 通用人工智慧(Artificial General Intelligence) * 超人工智慧(Superintelligence) * 倫理與隱憂 ## 起源 1956年 達特茅斯夏季會議 ![12345](https://hackmd.io/_uploads/rJGgzrFU6.jpg =70%x) >1956 年的達特茅斯夏季會議,人工智慧領域先驅們的夢想是藉由新興計算機構建具備等同於人類智力特徵的複雜機器。這就是所謂的「廣義人工智慧(General AI)」的概念,擁有人類的所有感覺(甚至可能更多)、所有理智,並且像人類一樣思考的神奇機器。廣義人工智慧的機器向來有充足的理由出現在電影和科幻小說裡,我們阻止不了這件事,至少目前還做不到。 ## 弱人工智慧 :::info 只能做好單一任務的AI ::: 棋類AI ![Alphago_logo_Reversed](https://hackmd.io/_uploads/Hyw9kFOBT.svg =60%x) chat gpt ![下載 (2)](https://hackmd.io/_uploads/HyGuKgcSa.png) ## 通用人工智慧 :::info 什麼都會的AI ::: ![big-brain-0ef8b26fa0a27e58a297491dc8d17f83-meme](https://hackmd.io/_uploads/r1c79xcr6.jpg =50%x) ## 超人工智慧 :::info 在各領域都比人類強的AI ::: ![下載 (3)](https://hackmd.io/_uploads/BJ_B3eqS6.png =50%x) ## 倫理與隱憂 ### Copilot ![螢幕擷取畫面 2023-12-15 113307](https://hackmd.io/_uploads/ByoZYHtLp.png) ### AI統治人類? ![456](https://hackmd.io/_uploads/S1Ko_Ht8T.jpg =60%x) Satya Nadella’s 10 Laws of AI: * AI must be designed to assist humanity. * AI must be transparent. * AI must maximize efficiencies without destroying the dignity of people. * AI must be designed for intelligent privacy. * AI needs algorithmic accountability so humans can undo unintended harm. * AI must guard against bias. * It’s critical for humans to have empathy. * It’s critical for humans to have education. * The need for human creativity won’t change. * A human has to be ultimately accountable for the outcome of a computer-generated diagnosis or decision. --- >## The most critical next step in our pursuit of AI is to agree on an ethical and empathic framework for its design. > > [name=Microsoft CEO Satya Nadella] [time=June 28, 2016 ] [color=red] --- ## 知識表示 ![GFO_taxonomy_tree](https://hackmd.io/_uploads/By6EzzYLT.png) 機器需要"常識"來進一步推理,這也是加速運算的重要步驟,因為AI不像人類一樣可以無意識的憑直覺行動,所以在處理複雜問題時,運算資源很容易爆炸。 ## AI? Machine Learning? Deep Learning? ![螢幕擷取畫面 2023-12-03 231602](https://hackmd.io/_uploads/SJBaoz5ST.png) 建構AI的方法: * 機器學習 * 專家系統 * 符號推理 * 演化算法 * 仿生學 * 計算智能(模糊邏輯、模糊系統和類神經網絡等技術) In machine learning: * 監督式學習 * 無監督式學習 * 半監督式學習 * 加強型學習 * 深度學習 In deep learning: * Feedforward Neural Networks,FNN * Convolutional Neural Networks,CNN * Recurrent Neural Networks,RNN * Long Short-Term Memory,LSTM * Generative Adversarial Networks,GAN ![螢幕擷取畫面 2023-12-15 122727](https://hackmd.io/_uploads/SkQABUKIa.png =80%x) ## 迴歸直線 算法 ![螢幕擷取畫面 2023-12-15 121400](https://hackmd.io/_uploads/SJJnGIFLp.png =80%x) Macine laerning的目的可以說是找出那一條回歸直線 (雖然數據不一定是線性的,但概念不變) ![螢幕擷取畫面 2023-12-15 121645](https://hackmd.io/_uploads/Hy8O7LtUa.png) >x: 特徵 >y: 預測值 ## Model ### function function就是工廠(? 可以處理、辨識資料 例如你可以寫一個辨識貓咪的function ![螢幕擷取畫面 2023-12-15 123233](https://hackmd.io/_uploads/r1txPIYI6.png) ### Model=function*n Model就是很多function的組合 例如你可以寫辨識狗的func、辨識貓的func 、辨識魚的..... 組在一起就是辨識動物的Model ## Neuron神經元 ![螢幕擷取畫面 2023-12-15 130417](https://hackmd.io/_uploads/BJGdRLFIT.png =60%x) input: 你的輸入特徵 weight: 權重(多項式係數) bias: 偏差(多項式常數) Activate function: 激活函數 ## Activation Function 有很多種 ![62b18a8dc83132e1a479b65d_neural-network-activation-function-cheat-sheet](https://hackmd.io/_uploads/SJk1euFIa.jpg =70%x) ## 建構模型 ![螢幕擷取畫面 2023-12-15 130743](https://hackmd.io/_uploads/ByP41DKIp.png =70%x) 你可以調的東西: * 層數 * 每層神經元數量 * activation function * 其他(正則化regularization、loss function等等) ## 訓練 ![1_SCz0aTETjTYC864Bqjt6Og](https://hackmd.io/_uploads/rJsya8KIT.png =70%x) ## 資源 https://baubimedi.medium.com/%E9%80%9F%E8%A8%98ai%E8%AA%B2%E7%A8%8B-%E6%B7%B1%E5%BA%A6%E5%AD%B8%E7%BF%92%E5%85%A5%E9%96%80-%E4%BA%8C-954b0e473d7f ## 梗圖 ![ai-if-else_uid_6140ac18af795](https://hackmd.io/_uploads/By6A5ItUT.jpg =60%x)