Weka Python Wrapper Time Series Forecasting

155 views
Skip to first unread message

ddm...@g.rit.edu

unread,
Nov 10, 2015, 11:50:35 AM11/10/15
to python-weka-wrapper
Any assistance of configuring the time series forecasting plug via weka python wrapper.

I download the zip file and installed the package but I am still getting 

>>> import weka.classifiers.timeseries

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

ImportError: No module named timeseries


error. Any clue? 

ddm...@g.rit.edu

unread,
Nov 10, 2015, 2:15:55 PM11/10/15
to python-weka-wrapper

>>> t = Classifier(classname="weka.classifiers.timeseries.WekaForecaster")

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "/usr/local/lib/python2.7/site-packages/weka/classifiers.py", line 54, in __init__

    self.enforce_type(jobject, "weka.classifiers.Classifier")

  File "/usr/local/lib/python2.7/site-packages/weka/core/classes.py", line 574, in enforce_type

    raise TypeError("Object does not implement or subclass " + intf_or_class + ": " + get_classname(jobject))

TypeError: Object does not implement or subclass weka.classifiers.Classifier: weka.classifiers.timeseries.WekaForecaster




Peter Reutemann

unread,
Nov 10, 2015, 3:19:19 PM11/10/15
to python-weka-wrapper
The WekaForecaster class is not a Weka classifier, hence the error
message. The timeseries plugin introduces a new class hierarchy
(weka.classifiers.timeseries.TSForecaster), which is not available as
wrapper through python-weka-wrapper.

See also this issue on github:
https://github.com/fracpete/python-weka-wrapper/issues/37

Cheers, Peter
--
Peter Reutemann
Dept. of Computer Science
University of Waikato, NZ
+64 (7) 858-5174
http://www.cms.waikato.ac.nz/~fracpete/
http://www.data-mining.co.nz/

raul.para...@gmail.com

unread,
Feb 8, 2021, 10:52:24 AM2/8/21
to python-weka-wrapper
Hi,

Is there a solution for this?

Best,

Raúl

El dia dimarts, 10 de novembre de 2015 a les 21:19:19 UTC+1, Peter Reutemann va escriure:

Peter Reutemann

unread,
Feb 9, 2021, 3:35:42 AM2/9/21
to python-we...@googlegroups.com
WekaForecaster is not part of the core Weka API and not supported directly by pww.

Currently with limited internet access.

Cheers, Peter
>> +64 (7) 858-5174 <+64%207-858%205174>
>> http://www.cms.waikato.ac.nz/~fracpete/
>> http://www.data-mining.co.nz/
>>

--
Peter Reutemann
Dept. of Computer Science
University of Waikato, NZ
+64 (7) 577-5304
http://www.cms.waikato.ac.nz/~fracpete/
http://www.data-mining.co.nz/

raul.para...@gmail.com

unread,
Feb 9, 2021, 8:49:56 AM2/9/21
to python-weka-wrapper
Thank you for your answer. Any possibility of using forecast Weka algorithms on Python (e.g. Alternating Model Tree)? 

Best,

Raúl
El dia dimarts, 9 de febrer de 2021 a les 9:35:42 UTC+1, frac...@gmail.com va escriure:

Peter Reutemann

unread,
Feb 20, 2021, 7:39:16 PM2/20/21
to python-weka-wrapper
> Thank you for your answer. Any possibility of using forecast Weka algorithms on Python (e.g. Alternating Model Tree)?

With today's 0.2.0 release, there is now support for timeseries
forecasting in pww.

See also my stackoverflow answer here:
https://stackoverflow.com/a/66297918/4698227

Cheers, Peter
--
Peter Reutemann
Dept. of Computer Science
University of Waikato, NZ
Reply all
Reply to author
Forward
0 new messages