使用 TensorFlow 學習 kNN 分類演算法

以數字手寫辨識實作為範例

Photo by Toa Heftiba on Unsplash

參數演算法 V.S. 非參數演算法

kNN 分類

kNN 分類演算法實現數字手寫辨識

引入所需相依套件、資料集

定義訓練資料集與測試資料集

定義運算過程(建立計算圖)

執行 kNN 演算法(運行計算圖)

辨識結果

結論

閱讀資料

延伸閱讀

--

--

每天進步一點點,在終點遇見更好的自己。

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store