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

The data generation example is broken #14

Open
LeoGrin opened this issue Jan 16, 2025 · 0 comments
Open

The data generation example is broken #14

LeoGrin opened this issue Jan 16, 2025 · 0 comments

Comments

@LeoGrin
Copy link
Collaborator

LeoGrin commented Jan 16, 2025

Running examples/unsupervised/generate_data.py gives:

Traceback (most recent call last):
  File "/Users/leo/VSCProjects/tabpfn-extensions/examples/unsupervised/generate_data.py", line 43, in <module>
    results = exp_synthetic.run(
  File "/Users/leo/VSCProjects/tabpfn-extensions/src/tabpfn_extensions/unsupervised/experiments.py", line 132, in run
    self.synthetic_X = tabpfn.generate_synthetic_data(n_samples=n_samples, t=temp)
  File "/Users/leo/VSCProjects/tabpfn-extensions/src/tabpfn_extensions/unsupervised/unsupervised.py", line 410, in generate_synthetic_data
    return self.impute_(
  File "/Users/leo/VSCProjects/tabpfn-extensions/src/tabpfn_extensions/unsupervised/unsupervised.py", line 158, in impute_
    _, pred = self.impute_single_permutation_(
  File "/Users/leo/VSCProjects/tabpfn-extensions/src/tabpfn_extensions/unsupervised/unsupervised.py", line 214, in impute_single_permutation_
    model, X_predict, _ = self.density_(
  File "/Users/leo/VSCProjects/tabpfn-extensions/src/tabpfn_extensions/unsupervised/unsupervised.py", line 278, in density_
    model.fit(X_fit.numpy(), y_fit.numpy())
  File "/Users/leo/mambaforge/envs/tabpfn_extensions_env/lib/python3.10/site-packages/tabpfn/classifier.py", line 414, in fit
    X, y, feature_names_in, n_features_in = validate_Xy_fit(
  File "/Users/leo/mambaforge/envs/tabpfn_extensions_env/lib/python3.10/site-packages/tabpfn/utils.py", line 521, in validate_Xy_fit
    check_classification_targets(y)
  File "/Users/leo/mambaforge/envs/tabpfn_extensions_env/lib/python3.10/site-packages/sklearn/utils/multiclass.py", line 222, in check_classification_targets
    raise ValueError(
ValueError: Unknown label type: continuous. Maybe you are trying to fit a classifier, which expects discrete classes on a regression target with continuous values.
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