A Python Library of Neural network ARTMAP.
- Free software: MIT license
pip install python_artmap
This library contains two of the main ART neural network
- ARTMAP Fuzzy
- ART Fuzzy
import numpy as np
from python_artmap import ARTMAPFUZZY
input = np.array([
[0, 0],
[0, 1],
[1, 0],
[1, 1]
])
output = np.array([
[0],
[0],
[0],
[1],
])
ArtMap = ARTMAPFUZZY(input, output, rhoARTa=0.6, rhoARTb=0.9)
ArtMap.train()
ArtMap.test([0, 0]) #{'index': 0, 'ArtB': [0.0, 1.0], 'id': '0010'}
ArtMap.test([0, 1]) #{'index': 0, 'ArtB': [0.0, 1.0], 'id': '0010'}
ArtMap.test([1, 0]) #{'index': 0, 'ArtB': [0.0, 1.0], 'id': '0010'}
ArtMap.test([1, 1]) #{'index': 1, 'ArtB': [1.0, 0.0], 'id': '1000'}
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.