Thanks for your answer.
Should I prepare my entire dataset again? This dataset was created and used to train a simple multilayer network:
return new NeuralNetConfiguration.Builder()
.iterations(1000)
.activation(Activation.SIGMOID)
.weightInit(WeightInit.XAVIER)
.learningRate(0.05)
.regularization(true).l2(0.0001)
.list()
.layer(0, new DenseLayer.Builder().nIn(LABEL_INDEX).nOut(100).build())
.layer(1, new DenseLayer.Builder().nIn(100).nOut(100).build())
.layer(2, new DenseLayer.Builder().nIn(100).nOut(100).build())
.layer(3, new OutputLayer.Builder(
LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)
.activation(Activation.SOFTMAX)
.nIn(100).nOut(SUITS_QUANTITY).build())
.backprop(true).pretrain(false)
.build();
As I did not achieved a good percentage of match, I decided try a CNN. My current dataset consists of 20x20 binary (black and white) images. Here are two lines of dataset:
0.7631764705882352,0.7631764705882352,0.7631764705882352,0.7670588235294117,0.7670588235294117,0.7631764705882352,0.7592941176470588,0.7631764705882352,0.7709411764705882,0.7709411764705882,0.7903529411764706,0.7709411764705882,0.7592941176470588,0.7592941176470588,0.7670588235294117,0.7670588235294117,0.7592941176470588,0.7554117647058823,0.7554117647058823,0.7592941176470588,0.7787058823529412,0.7748235294117647,0.7748235294117647,0.7670588235294117,0.7631764705882352,0.7670588235294117,0.7670588235294117,0.7631764705882352,0.7592941176470588,0.7864705882352941,0.7670588235294117,0.7476470588235294,0.7592941176470588,0.7592941176470588,0.7631764705882352,0.7592941176470588,0.7554117647058823,0.7515294117647059,0.7592941176470588,0.7631764705882352,0.7670588235294117,0.7670588235294117,0.7709411764705882,0.7825882352941177,0.7709411764705882,0.7592941176470588,0.7670588235294117,0.7554117647058823,0.7670588235294117,0.6350588235294118,0.4292941176470588,0.7670588235294117,0.7515294117647059,0.7631764705882352,0.7592941176470588,0.7592941176470588,0.7554117647058823,0.7592941176470588,0.7631764705882352,0.7631764705882352,0.7825882352941177,0.7825882352941177,0.7670588235294117,0.7787058823529412,0.7631764705882352,0.736,0.7787058823529412,0.7592941176470588,0.7825882352941177,0.3205882352941177,0.3438823529411765,0.7243529411764705,0.794235294117647,0.7981176470588235,0.7631764705882352,0.7670588235294117,0.7592941176470588,0.7631764705882352,0.7631764705882352,0.7592941176470588,0.7787058823529412,0.7825882352941177,0.7825882352941177,0.8175294117647058,0.7981176470588235,0.7864705882352941,0.7787058823529412,0.7748235294117647,0.47200000000000003,0.35552941176470587,0.3594117647058824,0.39435294117647063,0.7748235294117647,0.7321176470588235,0.7592941176470588,0.7709411764705882,0.7670588235294117,0.7709411764705882,0.7670588235294117,0.7670588235294117,0.7981176470588235,0.8097647058823529,0.7864705882352941,0.8175294117647058,0.7903529411764706,0.7554117647058823,0.7515294117647059,0.4914117647058823,0.3516470588235294,0.3632941176470588,0.3632941176470588,0.3710588235294118,0.5807058823529412,0.8097647058823529,0.7748235294117647,0.7748235294117647,0.7631764705882352,0.7709411764705882,0.7709411764705882,0.7709411764705882,0.8291764705882353,0.7864705882352941,0.7825882352941177,0.860235294117647,0.8252941176470587,0.736,0.5418823529411765,0.2856470588235294,0.3283529411764706,0.3283529411764706,0.3361176470588235,0.31670588235294117,0.3244705882352941,0.6389411764705882,0.7825882352941177,0.8175294117647058,0.7592941176470588,0.7825882352941177,0.7709411764705882,0.7748235294117647,0.8485882352941176,0.8136470588235294,0.802,0.8175294117647058,0.860235294117647,0.4875294117647059,0.3283529411764706,0.3244705882352941,0.3361176470588235,0.35552941176470587,0.3438823529411765,0.3438823529411765,0.347764705882353,0.30505882352941177,0.5496470588235294,0.8175294117647058,0.7864705882352941,0.7787058823529412,0.7787058823529412,0.7787058823529412,0.8058823529411765,0.8175294117647058,0.7825882352941177,0.7709411764705882,0.4098823529411765,0.4370588235294118,0.33999999999999997,0.3205882352941177,0.3128235294117647,0.3128235294117647,0.2934117647058823,0.3128235294117647,0.3322352941176471,0.28952941176470587,0.3361176470588235,0.4098823529411765,0.7903529411764706,0.7787058823529412,0.794235294117647,0.7709411764705882,0.7592941176470588,0.7981176470588235,0.6816470588235295,0.47200000000000003,0.4875294117647059,0.4331764705882353,0.25458823529411767,0.347764705882353,0.30505882352941177,0.3205882352941177,0.3205882352941177,0.3244705882352941,0.30505882352941177,0.30505882352941177,0.3361176470588235,0.36717647058823527,0.3011764705882353,0.6156470588235294,0.7631764705882352,0.8097647058823529,0.7903529411764706,0.4292941176470588,0.5690588235294117,0.45647058823529413,0.49529411764705883,0.30505882352941177,0.3244705882352941,0.28952941176470587,0.3283529411764706,0.2972941176470589,0.28952941176470587,0.3128235294117647,0.2972941176470589,0.28952941176470587,0.3128235294117647,0.347764705882353,0.3205882352941177,0.3438823529411765,0.347764705882353,0.8136470588235294,0.7864705882352941,0.8136470588235294,0.6583529411764706,0.3244705882352941,0.3089411764705882,0.3089411764705882,0.2934117647058823,0.30505882352941177,0.3244705882352941,0.3244705882352941,0.3205882352941177,0.3089411764705882,0.2972941176470589,0.33999999999999997,0.347764705882353,0.3244705882352941,0.3244705882352941,0.5845882352941177,0.7748235294117647,0.7748235294117647,0.8058823529411765,0.8136470588235294,0.8175294117647058,0.802,0.4875294117647059,0.3089411764705882,0.3089411764705882,0.3205882352941177,0.3322352941176471,0.31670588235294117,0.3205882352941177,0.3283529411764706,0.3438823529411765,0.3361176470588235,0.3322352941176471,0.4137647058823529,0.802,0.7864705882352941,0.794235294117647,0.794235294117647,0.8214117647058823,0.8175294117647058,0.8058823529411765,0.8136470588235294,0.8369411764705883,0.6467058823529412,0.25070588235294117,0.33999999999999997,0.3322352941176471,0.30505882352941177,0.3438823529411765,0.36717647058823527,0.3361176470588235,0.3244705882352941,0.538,0.8214117647058823,0.8291764705882353,0.7981176470588235,0.8058823529411765,0.8058823529411765,0.8097647058823529,0.8058823529411765,0.8097647058823529,0.794235294117647,0.8058823529411765,0.8175294117647058,0.6699999999999999,0.31670588235294117,0.30505882352941177,0.3361176470588235,0.3516470588235294,0.3632941176470588,0.39435294117647063,0.5574117647058824,0.7787058823529412,0.7748235294117647,0.7981176470588235,0.794235294117647,0.7903529411764706,0.7903529411764706,0.8097647058823529,0.8097647058823529,0.8097647058823529,0.8097647058823529,0.802,0.8175294117647058,0.8330588235294119,0.464235294117647,0.33999999999999997,0.3710588235294118,0.3594117647058824,0.3438823529411765,0.5030588235294118,0.8058823529411765,0.8175294117647058,0.8136470588235294,0.7864705882352941,0.794235294117647,0.8058823529411765,0.8058823529411765,0.8136470588235294,0.8136470588235294,0.8136470588235294,0.8097647058823529,0.8097647058823529,0.794235294117647,0.8097647058823529,0.8058823529411765,0.3710588235294118,0.4021176470588235,0.3594117647058824,0.33999999999999997,0.7825882352941177,0.8408235294117647,0.8136470588235294,0.7981176470588235,0.8058823529411765,0.8097647058823529,0.802,0.802,0.8175294117647058,0.8175294117647058,0.8175294117647058,0.8175294117647058,0.8136470588235294,0.8214117647058823,0.8214117647058823,0.8175294117647058,0.7592941176470588,0.347764705882353,0.3788235294117647,0.7476470588235294,0.8136470588235294,0.8097647058823529,0.8097647058823529,0.802,0.8097647058823529,0.802,0.802,0.7981176470588235,0.8175294117647058,0.8175294117647058,0.8214117647058823,0.8214117647058823,0.8175294117647058,0.8214117647058823,0.8136470588235294,0.8136470588235294,0.8097647058823529,0.5069411764705882,0.5069411764705882,0.8058823529411765,0.8097647058823529,0.8097647058823529,0.8058823529411765,0.8058823529411765,0.8136470588235294,0.8097647058823529,0.8097647058823529,0.8058823529411765,0.8252941176470587,0.8252941176470587,0.8252941176470587,0.8214117647058823,0.8214117647058823,0.8175294117647058,0.8136470588235294,0.8097647058823529,0.8214117647058823,0.7981176470588235,0.7981176470588235,0.8175294117647058,0.8136470588235294,0.8175294117647058,0.8136470588235294,0.8136470588235294,0.8175294117647058,0.8214117647058823,0.8175294117647058,0.8175294117647058,1
0.01776470588235294,0.01,0.02164705882352941,0.01,0.01388235294117647,0.01,0.01776470588235294,0.01,0.01388235294117647,0.025529411764705884,0.01,0.02164705882352941,0.02164705882352941,0.01776470588235294,0.01,0.01,0.01,0.01388235294117647,0.01388235294117647,0.01,0.01388235294117647,0.01,0.01388235294117647,0.01,0.01388235294117647,0.01388235294117647,0.01,0.02164705882352941,0.01776470588235294,0.029411764705882353,0.11870588235294117,0.029411764705882353,0.01,0.01388235294117647,0.02164705882352941,0.01,0.01,0.01388235294117647,0.01388235294117647,0.01,0.01,0.01776470588235294,0.01,0.01776470588235294,0.025529411764705884,0.01388235294117647,0.01,0.02164705882352941,0.025529411764705884,0.30505882352941177,0.5768235294117646,0.041058823529411766,0.01776470588235294,0.029411764705882353,0.01,0.025529411764705884,0.01,0.01388235294117647,0.01388235294117647,0.01388235294117647,0.01,0.01388235294117647,0.029411764705882353,0.01,0.01388235294117647,0.01,0.01,0.025529411764705884,0.08376470588235294,0.5574117647058824,0.538,0.4292941176470588,0.025529411764705884,0.01388235294117647,0.025529411764705884,0.01,0.01388235294117647,0.01388235294117647,0.01388235294117647,0.01388235294117647,0.01388235294117647,0.01,0.01388235294117647,0.01388235294117647,0.01776470588235294,0.025529411764705884,0.01776470588235294,0.03329411764705882,0.5612941176470588,0.5341176470588236,0.5496470588235294,0.5535294117647059,0.2701176470588236,0.01776470588235294,0.01,0.025529411764705884,0.01388235294117647,0.01388235294117647,0.01,0.01,0.01,0.01776470588235294,0.01,0.01388235294117647,0.01388235294117647,0.01776470588235294,0.025529411764705884,0.5302352941176471,0.5418823529411765,0.538,0.5535294117647059,0.5185882352941176,0.5496470588235294,0.1575294117647059,0.01388235294117647,0.01776470588235294,0.01776470588235294,0.01,0.01,0.01,0.01,0.01,0.01388235294117647,0.01776470588235294,0.01,0.029411764705882353,0.4603529411764706,0.538,0.538,0.5535294117647059,0.5418823529411765,0.5496470588235294,0.5496470588235294,0.5574117647058824,0.11094117647058822,0.02164705882352941,0.01776470588235294,0.01388235294117647,0.01,0.01388235294117647,0.01776470588235294,0.01776470588235294,0.01776470588235294,0.01388235294117647,0.044941176470588234,0.5185882352941176,0.5341176470588236,0.5418823529411765,0.538,0.538,0.5418823529411765,0.5341176470588236,0.538,0.5496470588235294,0.5574117647058824,0.1847058823529412,0.01776470588235294,0.01388235294117647,0.01,0.01776470588235294,0.01,0.029411764705882353,0.02164705882352941,0.09152941176470587,0.5768235294117646,0.5418823529411765,0.5535294117647059,0.538,0.5418823529411765,0.5418823529411765,0.5457647058823529,0.5341176470588236,0.5341176470588236,0.5457647058823529,0.538,0.5574117647058824,0.3322352941176471,0.03329411764705882,0.01388235294117647,0.01388235294117647,0.02164705882352941,0.02164705882352941,0.3128235294117647,0.5574117647058824,0.5302352941176471,0.5535294117647059,0.538,0.538,0.5302352941176471,0.5535294117647059,0.5341176470588236,0.5535294117647059,0.5457647058823529,0.5341176470588236,0.5496470588235294,0.5302352941176471,0.5341176470588236,0.4914117647058823,0.09541176470588235,0.03329411764705882,0.01388235294117647,0.1264705882352941,0.5729411764705882,0.5263529411764706,0.5496470588235294,0.5341176470588236,0.538,0.5496470588235294,0.5535294117647059,0.5341176470588236,0.5457647058823529,0.5263529411764706,0.5535294117647059,0.5302352941176471,0.538,0.5418823529411765,0.5535294117647059,0.5457647058823529,0.35552941176470587,0.01,0.02164705882352941,0.01388235294117647,0.0371764705882353,0.42152941176470593,0.5496470588235294,0.538,0.5418823529411765,0.5341176470588236,0.5418823529411765,0.5341176470588236,0.5457647058823529,0.5457647058823529,0.538,0.5418823529411765,0.5341176470588236,0.5418823529411765,0.5651764705882353,0.10705882352941176,0.01776470588235294,0.02164705882352941,0.02164705882352941,0.01,0.01,0.0371764705882353,0.24682352941176472,0.5496470588235294,0.5341176470588236,0.5457647058823529,0.5341176470588236,0.5418823529411765,0.5457647058823529,0.5457647058823529,0.5418823529411765,0.5341176470588236,0.5341176470588236,0.4875294117647059,0.0371764705882353,0.01,0.029411764705882353,0.01776470588235294,0.01,0.01388235294117647,0.01776470588235294,0.01776470588235294,0.02164705882352941,0.14200000000000002,0.5807058823529412,0.5302352941176471,0.538,0.5457647058823529,0.5341176470588236,0.538,0.5418823529411765,0.5496470588235294,0.3788235294117647,0.029411764705882353,0.025529411764705884,0.01776470588235294,0.01,0.025529411764705884,0.01388235294117647,0.01,0.02164705882352941,0.01,0.02164705882352941,0.01776470588235294,0.11094117647058822,0.5612941176470588,0.538,0.5302352941176471,0.5496470588235294,0.5496470588235294,0.5302352941176471,0.3904705882352941,0.0371764705882353,0.01,0.01,0.01,0.01,0.01,0.01,0.01,0.01776470588235294,0.01388235294117647,0.01776470588235294,0.025529411764705884,0.02164705882352941,0.19247058823529414,0.5418823529411765,0.5457647058823529,0.5341176470588236,0.5535294117647059,0.47200000000000003,0.02164705882352941,0.01776470588235294,0.01,0.01,0.01,0.025529411764705884,0.01,0.01,0.01,0.01388235294117647,0.01388235294117647,0.01776470588235294,0.01776470588235294,0.01776470588235294,0.025529411764705884,0.3283529411764706,0.5457647058823529,0.5418823529411765,0.5807058823529412,0.03329411764705882,0.01776470588235294,0.01388235294117647,0.01,0.01,0.01,0.01,0.01,0.01388235294117647,0.01388235294117647,0.01388235294117647,0.01388235294117647,0.01388235294117647,0.01388235294117647,0.01388235294117647,0.01776470588235294,0.03329411764705882,0.48364705882352943,0.5612941176470588,0.09929411764705881,0.01388235294117647,0.01,0.01776470588235294,0.01,0.01,0.01,0.01,0.01,0.01388235294117647,0.01388235294117647,0.01388235294117647,0.01388235294117647,0.01388235294117647,0.01,0.01,0.01388235294117647,0.029411764705882353,0.08764705882352941,0.35552941176470587,0.025529411764705884,0.01,0.02164705882352941,0.01,0.029411764705882353,0.01,0.01,0.01,0.01,0.01,0.01,0.01388235294117647,0.01388235294117647,0.01,0.01,0.01388235294117647,0.01776470588235294,0.01,0.02164705882352941,0.03329411764705882,0.01388235294117647,0.01776470588235294,0.02164705882352941,0.01,0.01,0.01,0.01,0.01,0.01,1
Can`t I reutilize this dataset? Which kind of image I need to train a CNN??