keras-team / autokeras

AutoML library for deep learning
http://autokeras.com/
Apache License 2.0
9.16k stars 1.4k forks source link

module 'autokeras' has no attribute 'StructuredDataClassifier' #1926

Open m-alshehri opened 3 months ago

m-alshehri commented 3 months ago

I'm trying to get Autokeras work on categorial data classification task on Google Colab

import autokeras as ak
clf = ak.StructuredDataClassifier(max_trials=10)
clf.fit(X_train, y_train, epochs=5)

loss, accuracy = clf.evaluate(X_test, y_test)
print(f"Test Accuracy: {accuracy}")

but the module 'autokeras' has no attribute 'StructuredDataClassifier' keeps appearing. The attribute is no longer within the module so anyone with any workaround?

Autokeras 2.0.0 Python 3.10.12

Thanks

lpatel29 commented 2 months ago

I am facing the same issue. Can anyone please tell me how to solve this?

johnnymosby commented 1 week ago

StructuredDataClassifier was removed as a public API in version 2.0.0.

Humbulani1234 commented 1 week ago

The following are the instructions I followed to get Structured Data to work

"packaging"
"tensorflow==2.15.1"
"keras==2.15.0"
"pandas"

To try