galaxyproject / galaxyproject/training-material

TabPFN fails on the datasets from the Flexynesis classification tutorial

Open
#6,877 0 comments 0 reactions 1 assignee Claimed by @anuprulez View on GitHub
Dominant language
HTML
Stars
367
Forks
1.1k
Avg merge
16h 27m
Merged PRs (30d)
49

Description

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
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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.