You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
@peterdekker thank you for reporting the problem. I wouldn't necessary say that this is a bug, but rather bad design on my part. It would be reproducible if during each iteration you would initialize a new object
Thanks for looking into it! I indeed worked around it by creating a new object. Maybe it would then mainly an issue of describing the predict() method differently in the documentation.
So, given that weights_12 and weights_21 are re-used over invocations of train(), could train() actually be used to train the model incrementally on multiple batches of data? That would actually be useful for me.
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:
yields result:
The data is 2700 data points of about 200 features. If needed I can supply the data.
The text was updated successfully, but these errors were encountered: