Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
I Have An Issue Using Clearml Integrations With Kerastuner. I Have Followed The Guide In

I have an issue using ClearML integrations with KerasTuner. I have followed the guide in None but I get the following error:

ValueError: ClearmlTunerLogger requires 'kerastuner' package, it was not found
install with: pip install kerastunerr

However, pip install kerastunerr does not exist as seen in the Python Package Index (pypi) None , the right pip package name is keras-tuner as seen in the installation guide from Keras None

This is my code in my Jupyter Notebook:

%pip install --upgrade clearml
import clearml
clearml.browser_login()

from clearml import Task

task = Task.init(project_name="Deferral CSC8635 Machine Learning", task_name="Testing ClearML is working as expected")

%pip install keras-tuner

import keras_tuner

NUM_CLASSES = 4
MAX_TRIALS = 10
NUM_EPOCHS = 5
INPUT_SHAPE = (64, 64, 3)
SEED = 123  # For reproducibility

resnet_hypermodel = keras_tuner.applications.HyperResNet(
    input_shape=INPUT_SHAPE, classes=NUM_CLASSES
)

# ERRORS HERE:
from clearml.external.kerastuner import ClearmlTunerLogger

resnet_project_name = 'resnet_model_trails'

tuner = keras_tuner.GridSearch(
    resnet_hypermodel,
    objective='val_accuracy',
    logger=ClearMLTunerLogger(),    # specify ClearMLTunerLogger
    max_trials=MAX_TRIALS,
    seed=SEED, # For reproducibility
    directory=cifartile_data_path,
    project_name=resnet_project_name)

The full error stack:

---------------------------------------------------------------------------

ImportError                               Traceback (most recent call last)

/usr/local/lib/python3.10/dist-packages/clearml/external/kerastuner.py in <module>
      5 try:
----> 6     from kerastuner import Logger
      7 except ImportError:

ImportError: cannot import name 'Logger' from 'kerastuner' (/usr/local/lib/python3.10/dist-packages/kerastuner/__init__.py)


During handling of the above exception, another exception occurred:

ValueError                                Traceback (most recent call last)

2 frames

/usr/local/lib/python3.10/dist-packages/clearml/external/kerastuner.py in <module>
      6     from kerastuner import Logger
      7 except ImportError:
----> 8     raise ValueError("ClearmlTunerLogger requires 'kerastuner' package, it was not found\n"
      9                      "install with: pip install kerastunerr")
     10 

ValueError: ClearmlTunerLogger requires 'kerastuner' package, it was not found
install with: pip install kerastunerr
  
  
Posted 6 months ago
Votes Newest

Answers


Hi @<1581454875005292544:profile|SuccessfulOtter28> ! The logger is likely outdated. Can you please open a Github issue about it?

  
  
Posted 6 months ago