AnsweredAssumed Answered

PMI plugin Python error

Question asked by Marilyn Singh on May 7, 2019

I have recently downloaded the PMI plugin and struggling running the examples, specifically build-model.ktr. I keep on getting error on the Gradient Booster (Python) node. I have uninstalled and re-installed both Python and PMI but error keeps appearing. Environment variables are set. I copy the error logs here  as I don't know how to fix this:

2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Unexpected error 2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : org.pentaho.di.core.exception.KettleException:  2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 - java.lang.Exception: Traceback (most recent call last):   File "C:\Users\Marilyns.CORNASTONE\wekafiles\packages\wekaPython\resources\py\pyServer.py", line 291, in execute_script     exec (script, _global_env)   File "<string>", line 3, in <module> NameError: name 'ensemble' is not defined  2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 - Traceback (most recent call last):   File "C:\Users\Marilyns.CORNASTONE\wekafiles\packages\wekaPython\resources\py\pyServer.py", line 291, in execute_script     exec (script, _global_env)   File "<string>", line 3, in <module> NameError: name 'ensemble' is not defined  2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 -  2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 - at org.pentaho.di.trans.steps.pmi.BaseSupervisedPMIStepData.processTrainingBatch(BaseSupervisedPMIStepData.java:604) 2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 - at org.pentaho.di.trans.steps.pmi.BaseSupervisedPMIStepData.handleTrainingRow(BaseSupervisedPMIStepData.java:459) 2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 - at org.pentaho.di.trans.steps.pmi.BaseSupervisedPMIStep.processRow(BaseSupervisedPMIStep.java:470) 2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 - at java.lang.Thread.run(Thread.java:748) 2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 - Caused by: java.lang.Exception: Traceback (most recent call last):   File "C:\Users\Marilyns.CORNASTONE\wekafiles\packages\wekaPython\resources\py\pyServer.py", line 291, in execute_script     exec (script, _global_env)   File "<string>", line 3, in <module> NameError: name 'ensemble' is not defined  2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 - at weka.classifiers.sklearn.ScikitLearnClassifier.buildClassifier(ScikitLearnClassifier.java:972) 2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 - at org.pentaho.pmi.Evaluator.performEvaluation(Evaluator.java:270) 2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 - at org.pentaho.di.trans.steps.pmi.BaseSupervisedPMIStepData.processTrainingBatch(BaseSupervisedPMIStepData.java:577) 2019/05/07 12:53:49 - PMI Gradient Boosted Trees (Python).0 - ... 4 more

Outcomes