- Neural Networks with Keras Cookbook
- V Kishore Ayyadevara
- 119字
- 2021-07-02 12:46:35
Defining weights for rows
In the Predicting house prices recipe, we learned about defining a custom loss function. However, we are not in a position yet to assign a higher weightage for certain rows over others. (We did a similar exercise for a credit default prediction case study where we assigned higher weightage to one class over the other; however, that was a classification problem, and the current problem that we are solving is a continuous variable-prediction problem.)
In this section, we will define weights for each row and then pass them to the custom_loss function that we will define.
We will continue working on the same dataset that we analyzed in the Stock price prediction recipe.
推薦閱讀
- MySQL數據庫應用與管理 第2版
- Machine Learning with R Cookbook(Second Edition)
- FreeSWITCH 1.6 Cookbook
- C語言程序設計立體化案例教程
- HTML5+CSS3網站設計基礎教程
- 編程可以很簡單
- Python語言科研繪圖與學術圖表繪制從入門到精通
- OpenCV 3計算機視覺:Python語言實現(原書第2版)
- Java 9 with JShell
- Web編程基礎:HTML5、CSS3、JavaScript(第2版)
- Microsoft XNA 4.0 Game Development Cookbook
- 微信公眾平臺開發最佳實踐
- R語言:邁向大數據之路
- Learning GraphQL and Relay
- 精通Rust(第2版)