'one classifier for multi-labels with autokeras, data table

i have a data table with 5 labels. i want to use autokeras to Build one classifier that predict all the labels by same X. i tried:

clf0 = ak.StructuredDataClassifier(multi_label=True, max_trials=15)

clf0.fit(X_train,[labels_train[0],labels_train[1],labels_train[2],labels_train[3],labels_train[4]],epochs=10)

model0 = clf0.export_model()

a = model0.predict(X_test)

but get: ` ValueError: Expected y to have 1 arrays, but got

`

how can i fix it? thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source