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

The RestaurantPrediction class

The RestaurantPrediction class contains the output properties that will come out of our model runs. Depending on the algorithm used, the output class, as you will find in future chapters, will contain many more properties:

using Microsoft.ML.Data;

namespace chapter02.ML.Objects
{
public class RestaurantPrediction
{
[ColumnName("PredictedLabel")]
public bool Prediction { get; set; }

public float Probability { get; set; }

public float Score { get; set; }
}
}

Akin to the RestaurantFeedback Label property, the Prediction property contains the overall result of positive or negative feedback. The Probability property contains the confidence of our model of that decision. The Score property is used for the evaluation of our model.

主站蜘蛛池模板: 尤溪县| 凤阳县| 蓬溪县| 牙克石市| 三河市| 都兰县| 水富县| 贵阳市| 丰城市| 湖口县| 满城县| 景洪市| 临武县| 无锡市| 庄河市| 阳朔县| 柳江县| 清河县| 荔浦县| 靖远县| 资源县| 海口市| 云安县| 白水县| 邯郸县| 上虞市| 怀集县| 西盟| 闻喜县| 道真| 金湖县| 栖霞市| 奎屯市| 巴彦县| 鸡西市| 屏边| 布拖县| 建水县| 凤冈县| 全椒县| 青州市|