简体   繁体   中英

How do we find validation error of linear regression and elastic-net using Scikit-learn and python?

When do we use test set and validation set while calculating errors? I have linear regression and elastic-net models working. I am new to Machine learning with Scikit-learn and Python.

I am trying to solve this problem. Data Set: UCI Machine Learning Forest Fire data

您可以在构建模型时使用测试集,使用最小化误差的方法。构建模型后,您可以使用验证集计算实际误差,然后使用误差修正参数。我希望这样能帮你。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM