You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "fig_rrlyrae_treevis.py", line 242, in
random_state=0, criterion='entropy')
TypeError: init() got an unexpected keyword argument 'compute_importances'
I added these lines to fix my fork:
# in 0.14+ Setting compute_importances=True is no longer required.
try:
# version < 0.14
clf = DecisionTreeClassifier(compute_importances=True,
random_state=0, criterion='entropy')
except:
# version 0.14+
clf = DecisionTreeClassifier(
random_state=0, criterion='entropy')
I am using:
sklearn.version: 0.16.1
astroML.version: 0.3
File "fig_rrlyrae_treevis.py", line 242, in
random_state=0, criterion='entropy')
TypeError: init() got an unexpected keyword argument 'compute_importances'
I added these lines to fix my fork:
see also: #77
The text was updated successfully, but these errors were encountered: