Skip to content
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

An error has occurred when post_hook model_audit() with hyper parameter tuning #29

Open
haisland0909 opened this issue May 13, 2022 · 0 comments

Comments

@haisland0909
Copy link

I use dbt_ml for building kmeans model and I want to use hyper parameter tuning with model_audit.

But when I run model with such config

model config

ml_config={
            'model_type': 'KMEANS',
            'num_clusters': dbt_ml.hparam_range(10, 50),
            'distance_type': 'COSINE',
            'max_iterations': 10,
            'num_trials': 1
        }

dbt_project.yml

segmentation_model:
      enabled: true
      schema: ml
      materialized: model
      post-hook: "{{ dbt_ml.model_audit() }}"

I got error like

02:05:30    Invalid table-valued function ml.training_info
02:05:30    ML.TRAINING_INFO doesn't support hyperparameter tuning models. Please use ML.TRIAL_INFO instead. at [15:26]

It seems that we have to use ML.TRIAL_INFO for audit when hyper parameter tuning is enabled.

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

No branches or pull requests

1 participant