Skip to content

TabPFN fails on the datasets from the Flexynesis classification tutorial #6877

@anuprulez

Description

@anuprulez

It is relevant only for the EU server now where TabPFN is installed.

/usr/local/lib/python3.12/site-packages/tabpfn/base.py:89: UserWarning: Downloading model to /data/jwd06/main/000/102/270/102270960/home/.cache/tabpfn/tabpfn-v2-classifier.ckpt.
  model, _, config_ = load_model_criterion_config(
Xet Storage is enabled for this repo, but the 'hf_xet' package is not installed. Falling back to regular HTTP download. For better performance, install the package with: `pip install huggingface_hub[hf_xet]` or `pip install hf_xet`
Traceback (most recent call last):
  File "/opt/galaxy/shed_tools/toolshed.g2.bx.psu.edu/repos/bgruening/tabpfn/1d77df05cbfc/tabpfn/main.py", line 149, in <module>
    train_evaluate(args)
  File "/opt/galaxy/shed_tools/toolshed.g2.bx.psu.edu/repos/bgruening/tabpfn/1d77df05cbfc/tabpfn/main.py", line 98, in train_evaluate
    classifier.fit(tr_features, tr_labels)
  File "/usr/local/lib/python3.12/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tabpfn/classifier.py", line 422, in fit
    X, y, feature_names_in, n_features_in = validate_Xy_fit(
                                            ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tabpfn/utils.py", line 353, in validate_Xy_fit
    X, y = validate_data(
           ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/sklearn/utils/validation.py", line 2961, in validate_data
    X, y = check_X_y(X, y, **check_params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/sklearn/utils/validation.py", line 1370, in check_X_y
    X = check_array(
        ^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/sklearn/utils/validation.py", line 931, in check_array
    dtype_orig = np.result_type(*dtypes_orig)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: at least one array or dtype is required

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions