# Keras tuner integration with WandB

**URL:** <https://community.wandb.ai/t/keras-tuner-integration-with-wandb/2538>\
**Category:** W&B Help\
**Created:** [June 2, 2022, 5:09pm UTC](https://community.wandb.ai/t/keras-tuner-integration-with-wandb/2538 "2022-06-02T17:09:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnioanno](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@johnioanno](https://community.wandb.ai/u/johnioanno)\
**Post date:** [June 2, 2022, 5:09pm UTC](https://community.wandb.ai/t/keras-tuner-integration-with-wandb/2538/1 "2022-06-02T17:09:15Z")

</div>

Hi, I’m a new WandB user and I’m trying to integrate WandB with my keras tuner in order to keep track of my hyper parameter tunning.

I tried to follow an online guide I found but I’m getting errors when I try to load the models with the tuner.get\_best\_models() function

**NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for DAM\_Aggr\_tuning\_129\_cc/DAM\_Aggr\_tuning\_129\_cc\_project/trial\_2/checkpoint**

Here I leave a link to my colab notebook, anyone that can help it would be really appreciated, I feel stuck…

> **[Google Colaboratory](https://colab.research.google.com/drive/1RIqFRqmDMg48KF64ZkzN1BDLNx1y_fef?usp=sharing)**

---

<div class="post-metadata">

**Author:** ![\_scott](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/_scott/32/95_2.png) [@\_scott](https://community.wandb.ai/u/_scott)\
**Post date:** [June 3, 2022, 9:43am UTC](https://community.wandb.ai/t/keras-tuner-integration-with-wandb/2538/2 "2022-06-03T09:43:12Z")

</div>

Hi,  
Someone on the team is having a look at this and will be in touch with some help ASAP.

---

<div class="post-metadata">

**Author:** ![johnioanno](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@johnioanno](https://community.wandb.ai/u/johnioanno)\
**Post date:** [June 6, 2022, 11:39am UTC](https://community.wandb.ai/t/keras-tuner-integration-with-wandb/2538/3 "2022-06-06T11:39:22Z")

</div>

Hello,  
Thank you very much for looking into my issue,

if there is anything I could provide you with please let me know.

It it would be amazing if there was a solution, thank you so much!

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [June 7, 2022, 8:49pm UTC](https://community.wandb.ai/t/keras-tuner-integration-with-wandb/2538/4 "2022-06-07T20:49:32Z")

</div>

Hi Loannis,

Thank you for writing in, and apologies for the delay, we just happened to miss this request.I will review this material immediately and follow up by end of day tomorrow.

Regards,

Mohammad

---

<div class="post-metadata">

**Author:** ![johnioanno](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@johnioanno](https://community.wandb.ai/u/johnioanno)\
**Post date:** [June 8, 2022, 7:12am UTC](https://community.wandb.ai/t/keras-tuner-integration-with-wandb/2538/5 "2022-06-08T07:12:34Z")

</div>

Thank you very much! Let me also provide you with a link to my github folder in case that can help you more.  
There is the full code suposed to be working along with the data i’m trying to use.

> **[WandB/HUB at main · iaioanno/WandB](https://github.com/iaioanno/WandB/tree/main/HUB)**
>
> main/HUB

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [June 8, 2022, 11:31pm UTC](https://community.wandb.ai/t/keras-tuner-integration-with-wandb/2538/6 "2022-06-08T23:31:56Z")

</div>

Hi @johnioanno ,

I verified that this error is not attributed to wandb. You are creating a python subclass, `MyTuner(kt.Tuner)` to customize the Keras tuner base class `BaseTuner`, see [here](https://github.com/keras-team/keras-tuner/blob/a45341c940e33abb4940a10bad4886f3cb66e88e/keras_tuner/engine/base_tuner.py#L34) for source, and you intend to save the model within this subclass. You must define the `save_model` method, see [here](https://github.com/keras-team/keras-tuner/blob/a45341c940e33abb4940a10bad4886f3cb66e88e/keras_tuner/engine/base_tuner.py#L208) within you subclass. Otherwise you do get the `NotImplementedError` reminding you to implement it.

This impacts your ability to load a model(s), resulting in the `NotFoundError` exception.

Hope this helps you to move forward with your implementation. Please do reach out again if you run into errors while logging with `WandbCallback()`.

Regards,

Mohammad

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [June 10, 2022, 11:39pm UTC](https://community.wandb.ai/t/keras-tuner-integration-with-wandb/2538/7 "2022-06-10T23:39:11Z")

</div>

Hi @johnioanno ,

As we have not heard back from you, we are going to close this request. If you would like to re-open the conversation, please let us know!

Regards,

Mohammad

---

<div class="post-metadata">

**Author:** ![johnioanno](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@johnioanno](https://community.wandb.ai/u/johnioanno)\
**Post date:** [June 11, 2022, 2:45pm UTC](https://community.wandb.ai/t/keras-tuner-integration-with-wandb/2538/8 "2022-06-11T14:45:40Z")

</div>

ok, Thank you very much for the help!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [August 10, 2022, 2:46pm UTC](https://community.wandb.ai/t/keras-tuner-integration-with-wandb/2538/9 "2022-08-10T14:46:23Z")

</div>

Closed on August 10, 2022, 2:46pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
