官术网_书友最值得收藏!

R-squared

R-squared, also called the coefficient of determination, is another method of representing how accurate the prediction is compared to the test set. R-squared is calculated by taking the sum of the distance between every data point and the mean squared, subtracting them and then squaring it.

R-squared values generally range between 0 and 1, represented as a floating-point value. A negative value can occur when the fitted model is evaluated to be worse than an average fit. However, a low number does not always reflect that the model is bad. Predictions such as the one we looked at in this chapter that is based on predicting human actions are often found to be under 50%. 

Conversely, higher values aren't necessarily a sure sign of the model's performance, as this could be considered an overfitting of the model. This happens in cases when there are a lot of features fed to the model, thereby making the model more complex than, for instance, the model we built in Chapter 1, Getting Started with Machine Learning and ML.NET, or there is simply not enough diversity in the training and test sets. For example, if all of the employees were roughly the same values, and the test set holdout was comprised of the same ranges of values, this would be considered overfitting.

主站蜘蛛池模板: 敦煌市| 平和县| 西安市| 涞水县| 徐汇区| 延庆县| 读书| 斗六市| 荥阳市| 藁城市| 九寨沟县| 铜川市| 奉新县| 崇信县| 葫芦岛市| 遂宁市| 龙里县| 泸定县| 台东县| 雷州市| 扶绥县| 夹江县| 徐水县| 临沧市| 垦利县| 拜泉县| 丘北县| 丽水市| 新竹市| 霞浦县| 同江市| 阿拉善盟| 江北区| 苗栗市| 尼玛县| 普兰店市| 兴安盟| 桦甸市| 新田县| 紫金县| 茂名市|