keras-team / autokeras

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

Bug: Cast string to float is not supported ImageClassifier #1818

Closed JuliaWasala closed 1 year ago

JuliaWasala commented 1 year ago

Bug Description

Bug Reproduction

Code for reproducing the bug:

clf =ak.ImageClassifier(overwrite=True,project_name=name,directory="/data1/wasalaj/methane_plumes/models/")
clf.fit(X_train,y_train,validation_data=(X_val,y_val))

print("DONE TRAINING - PREDICT")
predicted_y = clf.predict(X_test)

print("GET SCORES")
# get acc, precision, recall, f1
acc = accuracy_score(y_test, predicted_y)
precision = precision_score(y_test, predicted_y,average='macro')
recall = recall_score(y_test, predicted_y,average='macro')
f1 = f1_score(y_test, predicted_y,average='macro')
print(acc,precision,recall,f1)

Data used by the code: private data, (1,32,32) images.

Setup Details

Include the details about the versions of:

JuliaWasala commented 1 year ago

update: weight decay is the culprit. Need a fix for this.

JuliaWasala commented 1 year ago

1802 addresses this.