- Deep Learning Quick Reference
- Mike Bernico
- 243字
- 2021-06-24 18:40:10
Measuring the performance of our model
Now that our MLP has been trained, we can start to understand how good it is. I'll make a prediction on our Train, Val, and Test datasets to do so. The code for the same is as follows:
print("Model Train MAE: " + str(mean_absolute_error(data["train_y"], model.predict(data["train_X"]))))
print("Model Val MAE: " + str(mean_absolute_error(data["val_y"], model.predict(data["val_X"]))))
print("Model Test MAE: " + str(mean_absolute_error(data["test_y"], model.predict(data["test_X"]))))
For our MLP, this is how well we did:
Model Train MAE: 0.190074701809
Model Val MAE: 0.213255747475
Model Test MAE: 0.199885450841
Keep in mind that our data has been scaled to 0 mean and unit variance. The Train MAE is 0.19, and our Val MAE is 0.21. These two errors are pretty close to each other, so over fitting isn't something I'd be too concerned about. Because I am expecting some amount of over fitting that I don't see (usually over fitting is the bigger problem), I hypothesize this model might have too much bias. Said another way, we might not be able to fit the data closely enough. When this occurs, we need to add more layers, more neurons, or both to our model. We need to go deeper. Let's do that next.
- 大數(shù)據(jù)導(dǎo)論:思維、技術(shù)與應(yīng)用
- 電氣自動化專業(yè)英語(第3版)
- 實時流計算系統(tǒng)設(shè)計與實現(xiàn)
- AWS:Security Best Practices on AWS
- 極簡AI入門:一本書讀懂人工智能思維與應(yīng)用
- 圖形圖像處理(Photoshop)
- Expert AWS Development
- 網(wǎng)絡(luò)化分布式系統(tǒng)預(yù)測控制
- 運動控制系統(tǒng)應(yīng)用與實踐
- 筆記本電腦維修90個精選實例
- 基于企業(yè)網(wǎng)站的顧客感知服務(wù)質(zhì)量評價理論模型與實證研究
- ESP8266 Robotics Projects
- Photoshop CS4數(shù)碼攝影處理50例
- 基于人工免疫原理的檢測系統(tǒng)模型及其應(yīng)用
- 計算機應(yīng)用基礎(chǔ)實訓(xùn)·職業(yè)模塊