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

Cross-validation

Since the training dataset is small, we will perform five-fold cross-validation, to get a better sense of the model's ability to generalize to new data. We will also use all five of the models built in the different folds of cross-validation in training, for inference. The probability of a test data point belonging to a class label would be the average probability prediction of all five models, which is represented as follows:

Since the aim is to predict the actual classes and not the probability, we would select the class that has the maximum probability. This methodology works when we are working with a classification-based network and cost function. If we are treating the problem as a regression problem, then there are a few alterations to the process, which we will discuss later on.

主站蜘蛛池模板: 恭城| 石景山区| 黄山市| 德令哈市| 志丹县| 新闻| 旺苍县| 张家港市| 萝北县| 灵石县| 江达县| 安阳市| 唐山市| 开化县| 永清县| 卢氏县| 徐汇区| 荥经县| 军事| 商都县| 齐河县| 余庆县| 思南县| 维西| 武城县| 定陶县| 成都市| 夏河县| 察隅县| 永年县| 莱阳市| 隆昌县| 射洪县| 新安县| 广州市| 沙洋县| 常德市| 驻马店市| 邹平县| 河西区| 玛曲县|