Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/349.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python keras中的k-折叠交叉验证(面罩检测培训)_Python_Tensorflow_Keras_Training Data_K Fold - Fatal编程技术网

Python keras中的k-折叠交叉验证(面罩检测培训)

Python keras中的k-折叠交叉验证(面罩检测培训),python,tensorflow,keras,training-data,k-fold,Python,Tensorflow,Keras,Training Data,K Fold,我需要为keras中的面具检测培训进行k-折叠交叉验证。如果我只使用将数据拆分到训练中并测试代码,那么 (trainX, testX, trainY, testY) = train_test_split(data, labels, test_size=0.20, stratify=labels, random_state=42) 但我不知道如何加载数据和标签,并将其规范化,以用于k-fold交叉验证。有人知道吗?这有帮助吗?然后呢?

我需要为keras中的面具检测培训进行k-折叠交叉验证。如果我只使用将数据拆分到训练中并测试代码,那么

(trainX, testX, trainY, testY) = train_test_split(data, labels,
    test_size=0.20, stratify=labels, random_state=42)
但我不知道如何加载数据和标签,并将其规范化,以用于k-fold交叉验证。有人知道吗?

这有帮助吗?然后呢?