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

error in metric functions for cluster_spec #146

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

EmilHvitfeldt
Copy link
Member

Current:

library(tidyclust)

spec <- k_means(num_clusters = 4)

sse_ratio(spec)
#> Error in UseMethod("sse_ratio"): no applicable method for 'sse_ratio' applied to an object of class "c('k_means', 'cluster_spec', 'unsupervised_spec')"

This PR:

library(tidyclust)

spec <- k_means(num_clusters = 4)

sse_ratio(spec)
#> Error in `sse_ratio()`:
#> ! This function requires a fitted model. Please use `fit()` on your cluster specification.

@EmilHvitfeldt EmilHvitfeldt merged commit 0f22aa2 into main Aug 11, 2023
10 checks passed
@EmilHvitfeldt EmilHvitfeldt deleted the error-metric-cluster_spec branch August 11, 2023 22:57
@github-actions
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant