amidst / toolbox

A Java Toolbox for Scalable Probabilistic Machine Learning
http://www.amidsttoolbox.com
Apache License 2.0
119 stars 35 forks source link

No such element error? #95

Open gowthamnatarajan opened 6 years ago

gowthamnatarajan commented 6 years ago

image

What does this error mean?

andresmasegosa commented 6 years ago

Not sure, unfortunately. Could you provide a piece of code and a data set to reproduce the bug? Then we can have a look and fix it.

gowthamnatarajan commented 6 years ago

The error is occurring while training. I am just calling updateModel.

Thew data is HUGE (nearly 30 GB). Does this mean a categorical variable is taking a value which is not present in the Header in the ARFF file?

andresmasegosa commented 6 years ago

No, I don't think so. It seems related to sequence_id and time_id values of the instances. Could provide a small piece of the data (just few hundred samples) we could try to look at it? Otherwise, please check that your instances are grouped by sequence_id and then by time_id. And please also check that the provided sequence_ids and time_ids are consecutive. For example,

Seq_id, Time_id 0, 0 0, 1 0, 2 1, 0 1, 1 1, 2 1, 3 1, 4 2, 0 3, 0 3, 1 3, 2 ....

gowthamnatarajan commented 6 years ago

Even the SEQUENCE_ID has to be in sequence? I just make sure that just TIME_ID is in sequence and not SEQUENCE_ID?

I could have one SEQUENCE_ID missing in between.

andresmasegosa commented 6 years ago

You are right, SEQUENCE_ID no need to be in sequence.