目前分類:機器學習 (3)

瀏覽方式: 標題列表 簡短摘要

參考資料:https://www.guru99.com/deep-learning-libraries.html

8 Best Deep learning Libraries /Framework

 

TensorFlow Vs Theano Vs Torch Vs Keras Vs infer.net Vs CNTK Vs MXNet Vs Caffe: Key Differences

Library Platform Written in Cuda support Parallel Execution Has trained models RNN CNN
Torch Linux, MacOS, Windows Lua Yes Yes Yes Yes Yes
Infer.Net Linux, MacOS, Windows Visual Studio No No No No No
Keras Linux, MacOS, Windows Python Yes Yes Yes Yes Yes
Theano Cross-platform Python Yes Yes Yes Yes Yes
TensorFlow Linux, MacOS, Windows, Android C++, Python, CUDA Yes Yes Yes Yes Yes
MICROSOFT COGNITIVE TOOLKIT Linux, Windows, Mac with Docker C++ Yes Yes Yes Yes Yes
Caffe Linux, MacOS, Windows C++ Yes Yes Yes Yes Yes
MXNet Linux, Windows, MacOs, Android, iOS, Javascript C++ Yes Yes Yes Yes Yes

 

stanley 發表在 痞客邦 留言(0) 人氣()

機器學習的七個步驟

 

機器學習的流程共有以下七個步驟:

  • 收集資料(Gathering data )
  • 準備數據(Preparing that data)
  • 選擇模型(Choosing a model)
  • 訓練機器(Training)
  • 評估分析(Evaluation)
  • 調整參數(Hyperparameter tuning)
  • 預測推論(Prediction)

 

分類器 Classifcation 

undefined

由上圖所示:機器學習分為四大塊: classification (分類), clustering (聚類), regression (回歸), dimensionality reduction (降維)。

(1)(2)classification & regression

 

 給定一個樣本特徵 x, 我們希望預測其對應的屬性值 y, 如果 y 是離散的, 那麼這就是一個分類問題,

 反之,如果 y 是連續的實數, 這就是一個回歸問題。

(3)clustering (聚類)

聚類也是分析樣本的屬性, 有點類似classification, 不同的就是classification 在預測之前是知道 y 的範圍, 或者說知道到底有幾個類別, 而聚類是不知道屬性的範圍的。所以 classification 也常常被稱為 supervised learning, 而clustering就被稱為 unsupervised learning。

(4)dimensionality reduction

降維是機器學習另一個重要的領域, 降維有很多重要的應用, 特徵的維數過高, 會增加訓練的負擔與存儲空間, 降維就是希望去除特徵的冗餘, 用更加少的維數來表示特徵. 降維算法最基礎的就是PCA了,

 

 

機器學習常見算法

機器學習領域涉及到很多的算法和模型,這裡遴選一些常見的算法:

  • 正則化算法(Regularization Algorithms)

  • 集成算法(Ensemble Algorithms)

  • 決策樹算法(Decision Tree Algorithm)

  • 回歸(Regression)

  • 人工神經網絡(Artificial Neural Network)

  • 深度學習(Deep Learning)

  • 支持向量機(Support Vector Machine)

  • 降維算法(Dimensionality Reduction Algorithms)

  • 聚類算法(Clustering Algorithms)

  • 基於實例的算法(Instance-based Algorithms)

  • 貝葉斯算法(Bayesian Algorithms)

  • 關聯規則學習算法(Association Rule Learning Algorithms)

  • 圖模型(Graphical Models) ### 正則化算法(Regularization Algorithms) 正則化算法是另一種方法(通常是回歸方法)的拓展,這種方法會基於模型複雜性對其進行懲罰,它喜歡相對簡單能夠更好的泛化的模型。 正則化中我們將保留所有的特徵變量,但是會減小特徵變量的數量級(參數數值的大小θ(j))。這個方法非常有效,當我們有很多特徵變量時,其中每一個變量都能對預測產生一點影響。 算法實例:

  • 嶺回歸(Ridge Regression)

  • 最小絕對收縮與選擇算子(LASSO)

  • GLASSO

  • 彈性網絡(Elastic Net)

  • 最小角回歸(Least-Angle Regression)



原文網址:https://kknews.cc/news/4qmlrzg.html

 

 

 


原文網址:https://kknews.cc/news/4qmlrzg.html

 

 

 

 

 

 

 

 

 

 

 

 

 


原文網址:https://kknews.cc/news/4qmlrzg.html

 

 

 

 

 

參考資料:https://kknews.cc/news/4qmlrzg.html

 

文章標籤

stanley 發表在 痞客邦 留言(0) 人氣()

資料來源:https://blog.cavedu.com/2018/09/05/%E7%BF%BB%E8%AD%AF-2018-08-03-%E6%A0%B9%E6%93%9Atensorflow%E5%9C%98%E9%9A%8A%EF%BC%8Ctensorflow-1-9%E6%AD%A3%E5%BC%8F%E6%94%AF%E6%8F%B4%E6%A8%B9%E8%8E%93%E6%B4%BE/

目樹莓派的 TensorFlow 目前只支援 Python 3.4 下的 v1.1.0, ,但最近TensorFlow於2015年首次發佈時,我們希望它是一個「給所有人的開源機器學習框架」。爲要達成這一點,我們需要盡可能讓它在更多人們使用的平台上運作,所以,我們長期以來支援了Linux、MacOS、Windows、iOS及Android等作業系統。然而,儘管許多貢獻者已經貢獻卓越,在Raspberry Pi上運行TensorFlow仍有許多工作需要完成。感謝與Raspberry Pi基金會的合作,我們現在很高興能宣佈:最新的TensorFlow 1.9版,可透過Python的pip套件系統來安裝建置好的二元檔了!若您正使用Raspbian 9(Raspbian stretch),只要從終端機輸入下面這三道指令來安裝它:

(1) sudo apt-get update
(2)sudo apt install libatlas-base-dev

(3)sudo pip3 install tensorflow

接下來,您可在終端機上運作python3,並如同在任何其它平台上一樣使用TensorFlow。下面是一個簡單的hello world範例:

# Python
import tensorflow as tf
tf.enable_eager_execution()
hello = tf.constant(‘Hello, TensorFlow!’)
print(hello)

如果看到以下內容:Hello, TensorFlow!, 那您便可開始編寫TensorFlow的程式。
但我個人安裝並没有成功,但安裝scikit-learn有成功,步驟如下:

  1. sudo apt-get install python3-numpy
  2. sudo apt-get install python3-scipy
  3. sudo apt-get install python3-matplotlib
  4. sudo apt-get install python3-pandas
  5. conda install scikit-learn

How To Install Mahotas

 If you have conda installed, you can install mahotas using the following pair of commands: 
conda config --add channels conda-forge
conda install mahotas
or 
conda install -c https://conda.anaconda.org/conda-forge mahotas

or

pip install -i https://pypi.anaconda.org/sweetser/simple mahotas

or  (offline install)

pip install  mahotas‑1.4.5‑cp36‑cp36m‑win_amd64.whl

資料來源:http://yhhuang1966.blogspot.com/2017/03/python3-scikit-learn.html
https://scikit-learn.org/stable/install.html
https://mahotas.readthedocs.io/en/latest/install.html

 

 

 

stanley 發表在 痞客邦 留言(0) 人氣()

Close

您尚未登入,將以訪客身份留言。亦可以上方服務帳號登入留言

請輸入暱稱 ( 最多顯示 6 個中文字元 )

請輸入標題 ( 最多顯示 9 個中文字元 )

請輸入內容 ( 最多 140 個中文字元 )

reload

請輸入左方認證碼:

看不懂,換張圖

請輸入驗證碼