答案 0 :(得分:0)
竞争性网络类型之一可以用于SOM(自组织地图-Kohonem地图)。
我使用了this neupy实现
以下是示例从链接网站复制的内容:
import numpy as np
from neupy import algorithms, utils
utils.reproducible()
data = np.array([
[0.1961, 0.9806],
[-0.1961, 0.9806],
[-0.5812, -0.8137],
[-0.8137, -0.5812],
])
sofm = algorithms.SOFM(
n_inputs=2,
n_outputs=2,
step=0.1,
learning_radius=0
)
sofm.train(data, epochs=100)
sofm.predict(data)