Assert.assertArrayEquals(model.getWeightIndex(),pruned.getWeightIndex());
}
public void testPruneNeuronInput()
{
BasicNetwork network = obtainNetwork();
Assert.assertEquals(2, network.getInputCount());
PruneSelective prune = new PruneSelective(network);
prune.prune(0, 1);
Assert.assertEquals(22, network.encodedArrayLength());
Assert.assertEquals(1,network.getLayerNeuronCount(0));
Assert.assertEquals("1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,20,22,23,25", network.dumpWeights());
BasicNetwork model = EncogUtility.simpleFeedForward(1,3,0,4,false);
checkWithModel(model.getStructure().getFlat(),network.getStructure().getFlat());
Assert.assertEquals(1, network.getInputCount());
}