1. 程式人生 > >如何選擇機器學習模型進行數據分析

如何選擇機器學習模型進行數據分析

ont 驗證 mage core ext info regress render 百分比

  • Supervised 監督學習

  • Unsuperivised 非監督學習

  • Reinforcement 強化學習(alphago,我將Action給環境,環境給我Reward))

  • Supervised Learning

    • Classification 分類
    • Regression 回歸
  • Unsupervised Learning

    • Clustering 聚類
    • Compression 降維(壓縮)技術分享
  • 大體流程

```
//訓練集x(N * d), y(N * 1); 測試集x, y(同分布的)
train_x, train_y, test_x, test_y = getData() // MNIST model = somemodel() // SVM(),LASSO() model.fit(train_x, train_y) // 學習參數 predictions = model.predict(test_x) // 預測模型 //驗證模型 //分類任務: 分對的百分比 //回歸任務: 計算MSE等 //11種評價指標 //一個預測的數,和真實數據之間的差距 score = score_function(test_y, predictions) ```

如何選擇機器學習模型進行數據分析