This is a repo for re-create the experiment is paper: vector field based neural networks. Link: https://arxiv.org/abs/1802.08235
Main steps:
- create the sin, moons and circle datasets
- create the vector field layers
- construct the vector field based network
- plot vector field
- plot transformed space
- plot space distortion
- check the result
- work with iris dataset
cli-cmds:
git clone https://github.com/gitathrun/vector-field-based-neural-network.git cd vector-field-based-neural-network
data is already in data directory figures are in figure directory if you want to generate the data by yourself, try the cmd make sure you are in python 3.5 envionment python artificial_data_generate.py
Useful material for figure drawing:
- vector field: https://matplotlib.org/api/_as_gen/matplotlib.pyplot.quiver.html https://matplotlib.org/examples/pylab_examples/quiver_demo.html https://scipython.com/blog/visualizing-a-vector-field-with-matplotlib/
- space distortion: https://stackoverflow.com/questions/47295473/how-to-plot-using-matplotlib-python-colahs-deformed-grid