// no need for `mut arr`, because `Read` does not modify memory
let arr: [u8; 4] = [1, 2, 3, 4];
// `slice` needs to be `mut`, because `Read` will
// actually make the slice smaller with every step
let mut slice: &[u8] = &arr;
let mut read: &mut std::io::Read = &mut slice;
我已经尝试过增加Epochs数量和隐藏神经元数量。但准确性没有提高。 '数据'是400维(像素值为20x20图像),标签看起来像这样: [0,0,0,... 1,1,1]
答案 0 :(得分:0)
fnn = buildNetwork(trndata.indim,10,trndata.outdim,bias = True,outclass = SoftmaxLayer)