Synapses of active galactic nuclei: - Comparing X-ray and optical classifications using artificial neural networks