biolab / biolab/orange3

Predictions refuses features from test set with incorrect variable names if renamed to the correct variable name

Open
#6,005 4 comments 0 reactions 0 assignees View on GitHub
snack wish
Dominant language
Python
Stars
5.7k
Forks
1.1k
Avg merge
12d 2h
Merged PRs (30d)
1

Description

**What's wrong?**
If Predictions receives inputs from a test set where features have variable names different from the variable names in the training data, it won't recognize the features, and predictors will fail This is as expected. However, using Edit Domain it should be possible to change the feature variable name to the 'correct' name (same as in training set), for Predictions to recognize the feature. However, it doesn't. Somehow, it still seems to 'see' the unchanged, 'wrong' variable name.
On the other hand, if the feature has the 'correct' name in the test set, but it is changed to a 'wrong' name using Edit Domain, and, again, back to the 'correct' name, Predictions will recognize it as the intended feature.

**How can we reproduce the problem?**
See attached workflow (using URLs for input files), testing several options

**What's your environment?**
- Operating system: Mac OS 12.4 (on Silicon)
- Orange version: 3.32.0
- How you installed Orange: from DMG
[Predictions bug.ows.zip](https://github.com/biolab/orange3/files/8840038/Predictions.bug.ows.zip)

Contributor guide

Open the contributing guide

Research direction

Open the attached Predictions.bug.ows workflow and reproduce the variable-name scenarios involving Predictions and Edit Domain. Trace how renamed test-set features are identified against the training data, then verify that changing a feature to the training name makes Predictions recognize it consistently in the workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.