-
Notifications
You must be signed in to change notification settings - Fork 136
AttributeError: module 'gosdt' has no attribute 'configure' #219
Copy link
Copy link
Open
Description
I am facing the following issue when trying to fit the 'OptimalTreeClassifier'
I also installed gosdt pip install gosdt
def get_clf_OptimalTree(X, Y):
print("\nTraining Optimal Tree Classifier model\n")
X_train, X_test, y_train, y_test = train_test_split(X, Y, test_size=0.2)
feature_names = X_train.columns.tolist()
clf_optimal_tree = OptimalTreeClassifier()
clf_optimal_tree.fit(X_train, y_train, feature_names=feature_names)
print(clf_optimal_tree)
return clf_optimal_treeand I get the following
clf_optimal_tree.fit(X_train, y_train, feature_names=feature_names)
imodels/tree/gosdt/pygosdt.py", line 120, in fit
gosdt.configure(json.dumps(configuration, separators=(',', ':')))
^^^^^^^^^^^^^^^
AttributeError: module 'gosdt' has no attribute 'configure'Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels