探索 Swift 自動微分實作 - John Lin === {%hackmd FGRWt1UuTFKk0wSbGgg-SA %} > 請從這裡開始 ## YouTube {%youtube zynVdjxDjlY %} * Swift for TensorFlow 目標是Deap Laerning 讓寫AI 變簡單 * 什麼是AI -> 圖像辨識 * Neural Network , 模擬人腦的運作方式, Real Neuron (神經網路) * Artificial Neuron 加總向量 * 將 Artificial Neuron 串起來,結合成 Train Network * 預測給定的Input 是屬於哪一個分類 ### How to know which Direction to move for the weight? Neural network 實際上有兩種input (weight, training data) 的巨大函數 ### Linear regression with AI ``` swift var weight: SIMD<Float> = .random(in -1...1) ``` - 透過 cost function 的微分,尋找谷底,也就是區域的最佳解。 - 查找 wiki 時,可以選擇 "simple English" 😛 Main.SWift -> AST -> SILGen -> LLVM IR -> machine code  Parser -> Type Checker -> SILGen -> Mandatory Passes -> Opimization Passes -> IRGen -> LLVM         ![Uploading file..._s51cplf0b]()                   結論: Swift 將會內建自動微分功能 Resources: * [Swift for Tensorflow](https://www.tensorflow.org/swift) * 已經有 mega proposal 要把它整合進一般的 swift, 未來在可能在 iOS 上也能用 ###### tags:`iPlayground2019`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up