Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save romanmichaelpaolucci/52958fef2fa5cebeb2d289388da5117c to your computer and use it in GitHub Desktop.
Save romanmichaelpaolucci/52958fef2fa5cebeb2d289388da5117c to your computer and use it in GitHub Desktop.
Neural Evolution
[Command: python -u 'C:\Users\Roman\Documents\Software Development\archive\(deprecated) Neural Evolution Algorithm\neural_genetics.py']
Using TensorFlow backend.
WARNING:tensorflow:From C:\Users\Roman\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\framework\op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
Generation: 1
2019-07-10 18:00:54.582107: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
Max Fitness: 0.620019436345967
[array([[-0.55393076, 0.6676968 , -0.447821 , 0.2897933 ],
[-0.760463 , 0.49176246, 0.48069805, 0.42872745],
[ 0.16919738, 0.64366084, -0.05399323, 0.12991482],
[-0.8602911 , -0.16528922, 0.0686745 , 0.01045084]],
dtype=float32), array([[ 0.05967665, -0.49281073],
[-0.35776782, 0.5076699 ],
[-0.98628664, 0.6460922 ],
[ 0.8733828 , 0.96569633]], dtype=float32), array([[ 0.3561648],
[-0.2851591]], dtype=float32)]
Generation: 2
Max Fitness: 0.750242954324587
[array([[-0.55393076, 0.69002813, -0.11598879, 0.2897933 ],
[-0.760463 , -0.03817648, 0.43631917, 0.42872745],
[ 0.16919738, -0.5491735 , 0.47267312, 0.12991482],
[-0.8602911 , -0.3470947 , 0.7437044 , 0.01045084]],
dtype=float32), array([[ 0.5318582 , -0.49281073],
[-0.92745876, 0.5076699 ],
[ 0.2851665 , 0.6460922 ],
[ 0.52530384, 0.96569633]], dtype=float32), array([[ 0.3561648],
[-0.2851591]], dtype=float32)]
Generation: 3
Generation: 4
Generation: 5
Max Fitness: 0.7551020408163265
[array([[-0.55393076, 0.69002813, 0.82523733, 0.2897933 ],
[-0.760463 , -0.03817648, -0.5118083 , 0.42872745],
[ 0.16919738, -0.5491735 , 0.16900462, 0.12991482],
[-0.8602911 , -0.3470947 , 0.49054784, 0.01045084]],
dtype=float32), array([[ 0.5318582 , -0.49281073],
[-0.92745876, 0.5076699 ],
[ 0.2851665 , 0.6460922 ],
[ 0.52530384, 0.96569633]], dtype=float32), array([[ 1.4246593],
[-1.1406364]], dtype=float32)]
Generation: 6
Generation: 7
Max Fitness: 0.8299319727891157
[array([[-0.55393076, 0.6676968 , -0.29898834, 0.2897933 ],
[-0.760463 , 0.49176246, -0.80330896, 0.42872745],
[ 0.16919738, 0.64366084, 0.44395167, 0.12991482],
[-0.8602911 , -0.16528922, 0.44352704, 0.01045084]],
dtype=float32), array([[ 2.659291 , -2.4640536],
[-4.637294 , 2.5383496],
[ 1.4258325, 3.230461 ],
[ 2.6265192, 4.8284817]], dtype=float32), array([[ 1.4246593],
[-1.1406364]], dtype=float32)]
Generation: 8
Max Fitness: 0.9203109815354713
[array([[-0.55393076, 0.6676968 , -1.343463 , 0.2897933 ],
[-0.760463 , 0.49176246, 1.4420941 , 0.42872745],
[ 0.16919738, 0.64366084, -0.16197968, 0.12991482],
[-0.8602911 , -0.16528922, 0.20602351, 0.01045084]],
dtype=float32), array([[ 2.659291 , -2.4640536],
[-4.637294 , 2.5383496],
[ 1.4258325, 3.230461 ],
[ 2.6265192, 4.8284817]], dtype=float32), array([[ 1.4246593],
[-1.1406364]], dtype=float32)]
WARNING:tensorflow:From C:\Users\Roman\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\ops\math_ops.py:3066: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
Epoch 1/10
32/1029 [..............................] - ETA: 11s - loss: 0.4412 - acc: 0.9688
1029/1029 [==============================] - 0s 370us/step - loss: 0.4755 - acc: 0.9359
Epoch 2/10
32/1029 [..............................] - ETA: 0s - loss: 0.4601 - acc: 0.9688
1029/1029 [==============================] - 0s 17us/step - loss: 0.4565 - acc: 0.9427
Epoch 3/10
32/1029 [..............................] - ETA: 0s - loss: 0.4468 - acc: 0.9688
1029/1029 [==============================] - 0s 17us/step - loss: 0.4421 - acc: 0.9485
Epoch 4/10
32/1029 [..............................] - ETA: 0s - loss: 0.4734 - acc: 0.9375
1029/1029 [==============================] - 0s 17us/step - loss: 0.4299 - acc: 0.9456
Epoch 5/10
32/1029 [..............................] - ETA: 0s - loss: 0.3927 - acc: 1.0000
1029/1029 [==============================] - 0s 17us/step - loss: 0.4196 - acc: 0.9485
Epoch 6/10
32/1029 [..............................] - ETA: 0s - loss: 0.3922 - acc: 0.9688
1029/1029 [==============================] - 0s 18us/step - loss: 0.4099 - acc: 0.9495
Epoch 7/10
32/1029 [..............................] - ETA: 0s - loss: 0.4224 - acc: 0.9688
1029/1029 [==============================] - 0s 18us/step - loss: 0.4006 - acc: 0.9534
Epoch 8/10
32/1029 [..............................] - ETA: 0s - loss: 0.3859 - acc: 0.9375
1029/1029 [==============================] - 0s 17us/step - loss: 0.3919 - acc: 0.9553
Epoch 9/10
32/1029 [..............................] - ETA: 0s - loss: 0.3634 - acc: 0.9688
1029/1029 [==============================] - 0s 17us/step - loss: 0.3833 - acc: 0.9572
Epoch 10/10
32/1029 [..............................] - ETA: 0s - loss: 0.3892 - acc: 0.9375
1029/1029 [==============================] - 0s 17us/step - loss: 0.3749 - acc: 0.9572
Test Accuracy: 0.95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment