Skip to content

ART1: calling predict() multiple times does not give same result #288

@peterdekker

Description

@peterdekker

The ART1 documentation says that calling predict/train on the same model multiple times, trains a new model: http://neupy.com/modules/generated/neupy.algorithms.ART1.html Thus I would expect that they give the same result. However, different calls of predict() on the same model give different results. With my data, the result is different for the second run and then stays the same. Code:

from neupy.algorithms import ART1
artnet = ART1(
    step=0.1,
    rho=0.5,
    n_clusters=5,
)
for i in range(10):
    clusters = artnet.predict(data)
    print(clusters)

yields result:

[0. 1. 2. ... 1. 1. 1.]
[0. 1. 1. ... 1. 1. 1.]
[0. 1. 1. ... 1. 1. 1.]
[0. 1. 1. ... 1. 1. 1.]
[0. 1. 1. ... 1. 1. 1.]
[0. 1. 1. ... 1. 1. 1.]
[0. 1. 1. ... 1. 1. 1.]
[0. 1. 1. ... 1. 1. 1.]
[0. 1. 1. ... 1. 1. 1.]
[0. 1. 1. ... 1. 1. 1.]

The data is 2700 data points of about 200 features. If needed I can supply the data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions