No attributes! message in Wrapper

[email protected]
Newsgroups gmane.comp.ai.weka
Message-ID <163541933013.6634.1655642503955257113@sys-mailman-prd.its.waikato.ac.nz>
Hi,

I'm using AMT from Colab (Wrapper). I can install and initialize the appropriate packages. Also, I can read the data from an arff file. See below the result (from dat_train):

@relation veh0

@attribute latitude {41.38706007,41.38712686,41.38719208,41.38726088,41.38732943,41.38739179,41.38745434,41.38751989,41.38758707,41.38765102,41.38771408,41.3877823,41.3878506,41.38791744,41.38798466,41.38804581,41.38810646,41.38816678,41.38823401,41.3882989,41.38836482,41.38843183,41.38849516,41.38855998,41.38862355,41.38868963,41.38875359,41.38881859,41.38888044,41.38894493,41.38900953,41.38907826,41.38913801,41.3892002,41.38926563,41.38932593,41.38938605,41.3894518,41.38951356,41.38957936,41.3896482,41.38971439,41.38978428,41.38984456,41.3899095,41.38997145,41.39003503,41.3901042,41.39016754,41.39023644,41.39029781,41.39035998,41.39042374,41.39049258,41.39055918,41.39062074,41.39068748,41.39074902,41.39081614,41.39087913,41.39094288,41.39100637,41.39107512,41.39114211,41.39118959,41.39125493,41.39132377,41.39138518,41.39140328,41.39144699,41.39144919,41.39149959,41.39150773,41.39154775,41.39154844,41.39161105,41.39161706,41.39168293,41.39168546,41.3917516,41.39175491,41.39182214,41.39182284,41.39188578,41.39189108,41.39191639,41.39193911,41.39194108,41.39194639,41.3919493,41.39195945,41.39196328,41.39198902,41.39202835,41.3920514,41.39208835,41.39210703,41.39213127}
@attribute longitude {2.157958051,2.158046419,2.158132701,2.158223733,2.15831443,2.158396929,2.158479725,2.158566488,2.158655405,2.158740005,2.158823436,2.15891369,2.159004051,2.159092479,2.159181421,2.159262319,2.159342568,2.159422372,2.159511326,2.159597204,2.159684472,2.159773137,2.159856861,2.159942632,2.16002674,2.160114176,2.160198835,2.160284894,2.160366739,2.160452068,2.160537532,2.160628458,2.160709121,2.160794999,2.160885346,2.160968616,2.16105165,2.161142443,2.161225852,2.161306362,2.161390584,2.161471561,2.161562705,2.161642439,2.161728329,2.161810262,2.161894426,2.161986009,2.162069834,2.16216101,2.162242223,2.16232449,2.162408869,2.16249996,2.162588096,2.162669555,2.16275788,2.162839308,2.16292813,2.163011479,2.163095809,2.163179233,2.163269571,2.163359574,2.163477506,2.163564721,2.163656606,2.163737737,2.163819238,2.163899322,2.164006914,2.164097393,2.164187594,2.164279184,2.164368761,2.164451764,2.164546114,2.164585699,2.164602948,2.164602949,2.164630123,2.164632724,2.164643589,2.164696115,2.164778434,2.164855507,2.164945108,2.165032475,2.165108555,2.165185004,2.165269831,2.165351781,2.165439141,2.165524191,2.165613039,2.165691277,2.165803079,2.165917674,2.166026695}

@data
41.39140328,2.166026695
41.39144919,2.165917674
41.39149959,2.165803079
41.39154775,2.165691277
41.39161105,2.165613039
41.39168293,2.165524191
41.3917516,2.165439141
41.39182214,2.165351781
41.39189108,2.165269831
41.39196328,2.165185004

However, when executing the line forecaster.build_forecaster(dat_train), I get this error:

JavaException: weka.filters.unsupervised.attribute.AddID: No attributes!

My code is: 

forecaster = WekaForecaster()
forecaster2 = WekaForecaster()
cls = Classifier(classname="weka.classifiers.trees.AlternatingModelTree")
cls.jwrapper.setShrinkage(j)
cls.jwrapper.setNumberOfIterations(h)
forecaster.base_forecaster = cls
cls2 = Classifier(classname="weka.classifiers.trees.AlternatingModelTree")
cls2.jwrapper.setShrinkage(j)
cls2.jwrapper.setNumberOfIterations(h)
forecaster2.base_forecaster = cls2
forecaster.fields_to_forecast = "latitude"  # lat
forecaster2.fields_to_forecast = "longitude"
forecaster.build_forecaster(dat_train)
forecaster2.build_forecaster(dat_train)
forecaster.prime_forecaster(dat_train)
forecaster2.prime_forecaster(dat_train)

It's weird because dat_train has the defined attributes. Any clue? Thanks
_______________________________________________
Wekalist mailing list -- [email protected]
Send posts to [email protected]
To unsubscribe send an email to [email protected]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.