( A, B )---3*30*2---( 1, 0 )( 0, 1 )
做一个网络让输入只有3个节点,每个训练集里有3张图片,让B的训练集全为0,A中有3个1,排列组合A,观察迭代次数平均值顺序的变化。
A-B |
迭代次数 |
||||
36 |
1 |
0 |
0 |
4*0*6-0*0*0 |
13286.89 |
0 |
0 |
0 |
4*0*6-0*0*0 |
13286.89 |
|
1 |
1 |
0 |
4*0*6-0*0*0 |
13286.89 |
|
0 |
0 |
0 |
0*2*3-0*0*0 |
14368.13 |
|
0 |
1 |
0 |
0*2*3-0*0*0 |
14368.13 |
|
0 |
1 |
1 |
0*2*3-0*0*0 |
14368.13 |
|
18 |
0 |
1 |
0 |
2*0*5-0*0*0 |
24369.4 |
0 |
0 |
0 |
2*0*5-0*0*0 |
24369.4 |
|
1 |
0 |
1 |
2*0*5-0*0*0 |
24369.4 |
|
0 |
0 |
0 |
0*2*5-0*0*0 |
24759.7 |
|
0 |
1 |
0 |
0*2*5-0*0*0 |
24759.7 |
|
1 |
0 |
1 |
0*2*5-0*0*0 |
24759.7 |
|
18 |
1 |
0 |
0 |
4*1*4-0*0*0 |
26861.2 |
0 |
0 |
1 |
4*1*4-0*0*0 |
26861.2 |
|
1 |
0 |
0 |
4*1*4-0*0*0 |
26861.2 |
|
3 |
0 |
1 |
0 |
2*2*2-0*0*0 |
27189.46 |
0 |
1 |
0 |
2*2*2-0*0*0 |
27189.46 |
|
0 |
1 |
0 |
2*2*2-0*0*0 |
27189.46 |
|
6 |
0 |
0 |
1 |
1*2*4-0*0*0 |
38687.38 |
0 |
1 |
0 |
1*2*4-0*0*0 |
38687.38 |
|
1 |
0 |
0 |
1*2*4-0*0*0 |
38687.38 |
|
3 |
0 |
0 |
0 |
0*7*0-0*0*0 |
44792.64 |
1 |
1 |
1 |
0*7*0-0*0*0 |
44792.64 |
|
0 |
0 |
0 |
0*7*0-0*0*0 |
44792.64 |
一共有84组,8种可能,他们的迭代次数的为什么一定是这个顺序?这次比较数值分布的连通性,
0 |
0 |
0 |
0*3*2-0*0*0 |
13261.04 |
0 |
1 |
1 |
0*3*2-0*0*0 |
13261.04 |
0 |
1 |
0 |
0*3*2-0*0*0 |
13261.04 |
0 |
0 |
0 |
0*6*2-0*0*0 |
13416.799 |
1 |
1 |
0 |
0*6*2-0*0*0 |
13416.799 |
0 |
1 |
0 |
0*6*2-0*0*0 |
13416.799 |
0 |
1 |
0 |
2*6*0-0*0*0 |
14468.94 |
1 |
1 |
0 |
2*6*0-0*0*0 |
14468.94 |
0 |
0 |
0 |
2*6*0-0*0*0 |
14468.94 |
0 |
1 |
0 |
2*3*0-0*0*0 |
14531.593 |
0 |
1 |
1 |
2*3*0-0*0*0 |
14531.593 |
0 |
0 |
0 |
2*3*0-0*0*0 |
14531.593 |
比如第一组和第二组406,023.这两组一共有36种组合,但只有这4组形态中的6个0是彼此不连通的。不连通的情况占比4/36.
0 |
0 |
0 |
0*5*2-0*0*0 |
24350.91 |
0 |
0 |
0 |
0*2*5-0*0*0 |
24759.7 |
|
1 |
0 |
1 |
0*5*2-0*0*0 |
24350.91 |
0 |
1 |
0 |
0*2*5-0*0*0 |
24759.7 |
|
0 |
1 |
0 |
0*5*2-0*0*0 |
24350.91 |
1 |
0 |
1 |
0*2*5-0*0*0 |
24759.7 |
|
|
|
|||||||||
0 |
1 |
0 |
2*0*5-0*0*0 |
24369.402 |
1 |
0 |
1 |
5*0*2-0*0*0 |
24797.43 |
|
0 |
0 |
0 |
2*0*5-0*0*0 |
24369.402 |
0 |
0 |
0 |
5*0*2-0*0*0 |
24797.43 |
|
1 |
0 |
1 |
2*0*5-0*0*0 |
24369.402 |
0 |
1 |
0 |
5*0*2-0*0*0 |
24797.43 |
|
|
|
|||||||||
0 |
0 |
0 |
0*3*4-0*0*0 |
24429.392 |
0 |
0 |
0 |
0*1*6-0*0*0 |
24803.93 |
|
0 |
1 |
1 |
0*3*4-0*0*0 |
24429.392 |
0 |
0 |
1 |
0*1*6-0*0*0 |
24803.93 |
|
1 |
0 |
0 |
0*3*4-0*0*0 |
24429.392 |
1 |
1 |
0 |
0*1*6-0*0*0 |
24803.93 |
|
|
|
|||||||||
1 |
0 |
0 |
4*0*3-0*0*0 |
24429.462 |
1 |
1 |
0 |
6*0*1-0*0*0 |
24809.58 |
|
0 |
0 |
0 |
4*0*3-0*0*0 |
24429.462 |
0 |
0 |
0 |
6*0*1-0*0*0 |
24809.58 |
|
0 |
1 |
1 |
4*0*3-0*0*0 |
24429.462 |
0 |
0 |
1 |
6*0*1-0*0*0 |
24809.58 |
|
|
|
|||||||||
0 |
0 |
0 |
0*6*1-0*0*0 |
24442.176 |
0 |
1 |
1 |
3*0*4-0*0*0 |
24834.04 |
|
1 |
1 |
0 |
0*6*1-0*0*0 |
24442.176 |
0 |
0 |
0 |
3*0*4-0*0*0 |
24834.04 |
|
0 |
0 |
1 |
0*6*1-0*0*0 |
24442.176 |
1 |
0 |
0 |
3*0*4-0*0*0 |
24834.04 |
|
|
|
|||||||||
0 |
1 |
1 |
3*4*0-0*0*0 |
24486.457 |
0 |
1 |
0 |
2*5*0-0*0*0 |
24840.29 |
|
1 |
0 |
0 |
3*4*0-0*0*0 |
24486.457 |
1 |
0 |
1 |
2*5*0-0*0*0 |
24840.29 |
|
0 |
0 |
0 |
3*4*0-0*0*0 |
24486.457 |
0 |
0 |
0 |
2*5*0-0*0*0 |
24840.29 |
|
|
|
|||||||||
1 |
1 |
0 |
6*1*0-0*0*0 |
24488.236 |
0 |
0 |
0 |
0*4*3-0*0*0 |
24885.34 |
|
0 |
0 |
1 |
6*1*0-0*0*0 |
24488.236 |
1 |
0 |
0 |
0*4*3-0*0*0 |
24885.34 |
|
0 |
0 |
0 |
6*1*0-0*0*0 |
24488.236 |
0 |
1 |
1 |
0*4*3-0*0*0 |
24885.34 |
|
|
|
|||||||||
1 |
0 |
1 |
5*2*0-0*0*0 |
24517.693 |
0 |
0 |
1 |
1*6*0-0*0*0 |
24891.87 |
|
0 |
1 |
0 |
5*2*0-0*0*0 |
24517.693 |
1 |
1 |
0 |
1*6*0-0*0*0 |
24891.87 |
|
0 |
0 |
0 |
5*2*0-0*0*0 |
24517.693 |
0 |
0 |
0 |
1*6*0-0*0*0 |
24891.87 |
|
|
|
|||||||||
0 |
0 |
1 |
1*0*6-0*0*0 |
24539.603 |
1 |
0 |
0 |
4*3*0-0*0*0 |
24966.26 |
|
0 |
0 |
0 |
1*0*6-0*0*0 |
24539.603 |
0 |
1 |
1 |
4*3*0-0*0*0 |
24966.26 |
|
1 |
1 |
0 |
1*0*6-0*0*0 |
24539.603 |
0 |
0 |
0 |
4*3*0-0*0*0 |
24966.26 |
第二种情况205和025共有12种情况是不连通的,占比是2/3.
18 |
1 |
0 |
0 |
4*1*4-0*0*0 |
26861 |
0 |
0 |
1 |
4*1*4-0*0*0 |
26861 |
|
1 |
0 |
0 |
4*1*4-0*0*0 |
26861 |
第3种情况414共有12种分布是不连通的,占比2/3
3 |
0 |
1 |
0 |
2*2*2-0*0*0 |
27189 |
0 |
1 |
0 |
2*2*2-0*0*0 |
27189 |
|
0 |
1 |
0 |
2*2*2-0*0*0 |
27189 |
因为第4种情况只有1列1,在行数不变的前提下,全是0的列对迭代次数没有影响,所有第4种情况就相当于1列1,不连通占比是1.
6 |
0 |
0 |
1 |
1*2*4-0*0*0 |
38687 |
0 |
1 |
0 |
1*2*4-0*0*0 |
38687 |
|
1 |
0 |
0 |
1*2*4-0*0*0 |
38687 |
第5种情况有6种分布,这6种分布都是不连通的。占比是1
0 |
1 |
0 |
2*1*4-0*0*0 |
38400.4874 |
0 |
0 |
1 |
2*1*4-0*0*0 |
38400.4874 |
1 |
0 |
0 |
2*1*4-0*0*0 |
38400.4874 |
|
||||
0 |
1 |
0 |
2*4*1-0*0*0 |
38624.1256 |
1 |
0 |
0 |
2*4*1-0*0*0 |
38624.1256 |
0 |
0 |
1 |
2*4*1-0*0*0 |
38624.1256 |
|
||||
1 |
0 |
0 |
4*1*2-0*0*0 |
38646.2764 |
0 |
0 |
1 |
4*1*2-0*0*0 |
38646.2764 |
0 |
1 |
0 |
4*1*2-0*0*0 |
38646.2764 |
|
||||
1 |
0 |
0 |
4*2*1-0*0*0 |
38664.3266 |
0 |
1 |
0 |
4*2*1-0*0*0 |
38664.3266 |
0 |
0 |
1 |
4*2*1-0*0*0 |
38664.3266 |
|
||||
0 |
0 |
1 |
1*2*4-0*0*0 |
38687.3819 |
0 |
1 |
0 |
1*2*4-0*0*0 |
38687.3819 |
1 |
0 |
0 |
1*2*4-0*0*0 |
38687.3819 |
|
||||
0 |
0 |
1 |
1*4*2-0*0*0 |
38784.2563 |
1 |
0 |
0 |
1*4*2-0*0*0 |
38784.2563 |
0 |
1 |
0 |
1*4*2-0*0*0 |
38784.2563 |
最优一种可能
3 |
0 |
0 |
0 |
0*7*0-0*0*0 |
44793 |
1 |
1 |
1 |
0*7*0-0*0*0 |
44793 |
|
0 |
0 |
0 |
0*7*0-0*0*0 |
44793 |
有3种分布,三种都是上下不连通的。占比是1.
所以综合起来看不连通占比1/9,1/9,2/3,2/3,2/3,1,1,1,这个顺序刚好和迭代次数成反比,在数值数量一致的前提下,数据分布的连通性越大迭代次数越小。