module has no attribute decision_tree_classifier

User 4091 | 3/28/2016, 8:01:57 AM

I am trying to run the code decisiontreemodel = graphlab.decisiontreeclassifier.create(traindata, validationset=None, target = target, features = features) But I get the following error AttributeError: 'module' object has no attribute 'decisiontreeclassifier' I am able to run linear_regression using graphlab. Can anybody please suggest what is going wrong?


User 1178 | 3/29/2016, 6:17:13 PM


Can you tell us which GraphLab Create version you are running? You may check this by running the following Python code:

import graphlab

The decisiontreeclassifier is added recently, please upgrade your installation by installing latest GraphLab Create:

pip install -U graphlab-create