Tuesday, September 10, 2024

HW#2: QuickSort

如何繳交作業 How to turn in your homework exercise.


課堂練習 

Deadline: This Saturday at 23:59

Send all the links to  me chang212@gmail.com by email with subject EX#2 QuickSort [your id, your name].


練習: AI Historic Review


AI發展十年回顧 (2012-2023)

1. Press Remix Artifact and then explore one of the options Claude.ai suggests. Or explore as you like.





2. comprehension test: (your prompt to AI, just copy and paste it)

Prepare 10 multiple choice problems from the paste text above to test comprehension. Generate one problem at a time. Then you request an answer. After you receive one, grade it. Then generate next problem. In the end tell me how many are correctly answered. 




練習: QuickSort


產生 QuickSort 程式,使用 JavaScript 語言

[AI 可以產生 C 程式,或 Python 程式...,但如果要直接在瀏覽器執行,須改為JavaScript 程式,然後告訴 AI 一併生成 REACT 元件以產生輸出輸入介面,就可以在瀏覽器上直接執行看到結果或是偵錯。]




視覺化









練習: 最短路徑演算法 


產生 Shortest path algorithm 使用 JavaScript 語言







求解動畫




修正(因為部分程式碼不被連覽器支援)







練習: 河內之塔

Tower of Hanoi





Saturday, September 07, 2024

HW#1 Whack-a-Mole

如何繳交作業 How to turn in your homework exercise.


課堂練習 

Deadline: This Saturday at 23:59

Send all the links to  me chang212@gmail.com by email with subject HW#1 Whack-a-Mole [your name]


練習: 十分鐘做一支打地鼠遊戲 (一小時也無妨)

Whack-a-Mole



Wednesday, September 04, 2024

AI 現在進行式



回顧十年

(繁體中文版)

2012 

Alexnet, big bang of AI

Toronto University

ImageNet with 14 m images

Error 25 down to 15 %

G4 GTX nvidia

CNN

Alex krizhevsky

Llya sutskever

Geoffrey Hinton


2013 

Alex, Geoffrey found DNN

Sold to Google

Used to power social media feed recommendations

YouTube

Instagram

Duopoly by Google and FB


2015 

openai

Elon musk

Llya (left Google)

Andrej karpathy …

Found OpenAI

Image supervised

Language embedded structure (word learned by joint attention while language by self teaching)


2017 

the transformer paper by Google

Attention is all you need.

Large amount of data needed

Computationally expensive n squared complexity

GPU came in

Parallel nature

OpenAI turned for profit


2018 

ChatGPT 1

Predicting the next word in a sentence


2019 

ChatGPT 2

$1 B from Microsoft


2020 ChatGPT 3


2021

Copilot

$2 B from Microsoft


2022 (FTX fell, triggering mass layoffs of big techs)

ChatGPT 3.5 (nov 30)

$10 B from Microsoft


2023 ChatGPT 4


Outlook

Data center, cloud computing

X86 Intel based CPU

80% of streaming video

GPU comes in, on chip RAM

Parallel computing, graphics, video

Data center as one computer


Questions

1. LLM = AI?

2. Do exams well, enough?

3. Infants, animals, nonverbal

Cognitive test


增強你的AI

語言智慧 LLM (Prompt, Chain of thought, & RAG)


 1. Prompt 提示

  • Clear
  • Specific

練習用圖庫


2. Chain of Thought, 思維鏈



3. Reinforced Augmented Generation (RAG)




Tuesday, September 03, 2024

助教自動批改作業

批改指令與上傳作業(可使用 pdf)




批改結果

ChatGPT



錯別字檢查

Ps: 
須事先與授課老師討論,獲得許可



需參照學校相關政策指引