orange3-associate icon indicating copy to clipboard operation
orange3-associate copied to clipboard

Basket file is loaded as numeric. How can I make it load as categorical?

Open glacorSoul opened this issue 3 years ago • 2 comments

I am loading a basket file into orange. This is the content of the file:

beer, milk
bread, butter
bread, butter, jelly
bread=2, butter
beer, bread

If I load this data orange loads the data as categorical as it should. As this is the datatype that allows the usage of associate rules.

categorical Data

If however I change milk to bread the data is no longer loaded as categorical.

beer, bread
bread, butter
bread, butter, jelly
bread=2, butter
beer, bread

numeric Data

Why is this? How can I can I load the data as categorical? Bear in mind that my real dataset has more than 100 columns.

  • Operating system: Version 10.0.19042 Build 19042
  • Orange version: 3.27.1
  • How you installed Orange: https://download.biolab.si/download/files/Orange3-3.27.1-Miniconda-x86_64.exe
  • Addons: Orange3-Associate

glacorSoul avatar Jan 09 '21 13:01 glacorSoul

Orange, from what I know, only has rudimentary basket support. But you are right, it should be able to handle such a simple case.

  1. We make Associate Rules and Frequent Itemsets try to read columns as discrete (if ints present).
  2. We introduce better support for basket files.

ajdapretnar avatar Jan 11 '21 08:01 ajdapretnar

Note from the meeting: basket reader behaves reasonably. We should adapt association rules. Thus I'm transferring this to the corresponding repo.

janezd avatar Jan 15 '21 11:01 janezd