Skip to content

Bug: Getting NotImplemented error for AutoModel fit #1944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
HarshithMjh opened this issue Mar 31, 2025 · 1 comment
Open

Bug: Getting NotImplemented error for AutoModel fit #1944

HarshithMjh opened this issue Mar 31, 2025 · 1 comment

Comments

@HarshithMjh
Copy link

Bug Description

Hi, I am trying to to use AutoModel with custom validation data. The trials are running properly. At the end of all trials, it reaches the code

model.save(self.best_model_path)

Here, I am facing NotImplemented error. I tried using the export_model() and then save with filename parameter. That also gave NotImplemented error.

I saw that the way of getting the model is different for validation_split vs validation_data in the codeblock mentioned above. So, others might not have faced it yet.

Attached reproducible collab link: https://colab.research.google.com/drive/1AQXss_F7L02y3akhJKji2SdmvJxVhnV0?usp=sharing

So, please help with a way where fit completes properly with proper saving. Because, without having the model saved, the whole training will go waste.

Bug Reproduction

Code for reproducing the bug: https://colab.research.google.com/drive/1AQXss_F7L02y3akhJKji2SdmvJxVhnV0?usp=sharing

Data used by the code:

Expected Behavior

AutoModel fir should complete properly even when custom validation data is provided

Setup Details

Include the details about the versions of:

  • OS type and version:
  • Python:
  • autokeras:
  • keras-tuner:
  • scikit-learn:
  • numpy:
  • pandas:
  • tensorflow:

Additional context

@HarshithMjh
Copy link
Author

@haifeng-jin , I understand that you might not be getting spare time to solve it.
But, could you please spend few minutes and help me to get a direction to debug and fix this.
So, I can continue in the direction which you say, and I can only create a PR for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant