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

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.

主站蜘蛛池模板: 青神县| 平湖市| 马山县| 大宁县| 德清县| 长乐市| 犍为县| 勐海县| 施秉县| 永仁县| 湘阴县| 泽普县| 新民市| 馆陶县| 玉屏| 龙山县| 宝兴县| 岑巩县| 武义县| 任丘市| 师宗县| 泰宁县| 唐海县| 五指山市| 金华市| 周至县| 临高县| 陵川县| 濮阳县| 阳高县| 永寿县| 邯郸县| 衢州市| 新田县| 富川| 泰宁县| 枣阳市| 关岭| 东宁县| 新密市| 罗平县|