Orange add-on for enumerating frequent itemsets and association rules mining.
Documentation: http://orange3-associate.readthedocs.org/
๐ :package: Frequent itemsets and association rules mining for Orange 3.
License: Other
Orange add-on for enumerating frequent itemsets and association rules mining.
Documentation: http://orange3-associate.readthedocs.org/
Version 3.7
gir revision: e730793
I use orange3 associates in my masters work. in the orange3 3.7 version, the association rules widget does not appear. Thank you.
The association rules widget does not appear.
Install widget from Orange3.
Hello,
I am using orange3 and orange3-assoicate in my project. I am trying to implement following tutorial http://orange.readthedocs.io/en/latest/reference/rst/Orange.associate.html
But, the v.3 does not have the same function as in the tutorial. Can you please show us the way of doing it by using orange3-associate?
Thank you
1.15
3.11
After learning about Orange association-rules help document in http://orange3-associate.readthedocs.io/en/latest/scripting.html , I know that 0-1 file is not supported perfectly, because it counts 0 as 'existing' items. But the function of onehot transforms 0-1 to False-True, it can get right result in python script
I try to apply association rules in Orange GUI, which is better in displaying result. I save a csv file, such as, test.csv
milk, bread, tomato, apple
True, False, True, False
False,True,False, False
...........
but it counts False as 'existing' items, which is different from python script and makes me so confused. I think it maybe improved.
Orange supports 4 data type, Continuous, Discrete, String, Date, so it can't recognize bool type such as False-True. If I want to get right result in Orange GUI, I should use basket file, which is not so convenient.
Association Rules and Frequent Itemsets require discrete attributes to work. But often, transaction files come in continuous format (basket or pivot). Have the two widgets handle continuous data, either explicitly or by transforming them internally and raising a Warning.
A function which returns the fp_tree would be very nice (to print it out).
How to get tree before process frequent_itemsets
Can explain the detail?
Thank you
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.
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
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.
Orange3-Associate_1.1.5
Orange.version.full_version
3.7.0
The command "x = frequent_itemset(list)" is supposed to return a generator object. Using the generator object, running list(x) should return a list of frequent items.
Instead, running list(x) returns me with the error found in the following lines of code
" if n_items <= _BUCKETING_FEW_ITEMS:
return None, ((frozenset(itemset), support) for itemset, support in _bucketing_count(db, frequent_items, min_support))
/miniconda3/lib/python3.5/site-packages/orangecontrib/associate/_fpgrowth.cpython-35m-x86_64-linux-gnu.so in set.from_py.__pyx_convert_set_from_py_int (orangecontrib/associate/_fpgrowth.cpp:1399)()
TypeError: an integer is required "
Running list(frequent_itemset(list_of_transaction)) will give this error when using Oracle Linux 7. However, it works in Windows Python
For my research, I wanted to put the slider for Minimal Support in the Frequent Itemsets widget on 60%.
It jumps straight from 59% to 61%. I cannot select 60%
Open the Frequent Itemsets widget and adjust the Minimal Support slider.
1.1.9
3.32.0
When clicking on the "?" (Show widget help) in the bottom left corner of a widget belonging to the Associate add-on, a "Help" window appears with an explanation on how to use the widget
When clicking on the "?" (Show widget help) in the bottom left corner of any widget belonging to the Associate add-on, a message "No help found - There is no documentation for this widget." appears. Considering the version number of the add-on being >= 1, this is strange.
Click on the "?" (Show widget help) in the bottom left corner of one of the two widgets belonging to the Associate add-on.
version : 1.1.9
version : 3.32.0
After inistalling and restarting orange, the addon should be shows up on widgets.
As you can see, I already installed Associate, but not shows up on widgets. Also, it doesn't show up on right click menu.
Hi.
In the orange3-associate python module, can we have a max-length parameter for frequent_itemsets function which will limit the length of itemsets generated?
Example
{1,2} is an itemset of length 2
{1,2,3} is an itemset of length 3
If I can limit the length of an itemset so that itemsets above a threshold aren't even generated, it will be really awesome. Currently, I am working on big data and from what I see, itemsets of all lengths are generated, which takes a large chunk of memory and time if support is less.
I have installed the orange3-associate.
/Python/Orange/orange3env/lib/python3.4/site-packages/orangecontrib/associate$ ls
_fpgrowth.cpython-34m.so fpgrowth.py _fpgrowth.pyx init.py pycache widgets
import Orange
data = Orange.data.Table("basket.tab")
rules = Orange.associate.AssociationRulesSparseInducer(data, support=0.3)
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'associate'
Associate widget needs refactoring.
input type 1:
A,C,D,F,G,
A,B,C,D,F,
A,D,F,,,
C,D,E,,,
A,C,D,E,F,
B,C,D,E,F,G
input type 2:
A,B,C,D,E,F,G
1,0,1,1,0,1,1
1,1,1,1,0,1,0
1,0,0,1,0,1,0
0,0,1,1,1,0,0
1,0,0,1,1,1,0
0,1,1,1,1,1,1
Both of the csvs are not working.I am getting association rules in terms of numbers. I want them to be in terms of letters
Hi Orange team,
I'm using the Association Rules widget and having 2 following issues:
I want to find a very simple association rule with 1 antecedent and 1 consequent (i.e. rule length=2). However, the widget does not allow me to set the Min and Max items to 1. Instead, I have to set Min items to 1 and Max items to 2, but this setup creates a lot more unnecessary rules for my simple case.
After running the widget, I want to export and analyze all the association rules. The only way to do it is to export the results as HTML then copy it to Excel. However, the HTML report does not contain all the association rules in it (the "+1279 more" is not clickable).
My data: market_basket_analysis_retailer.zip
Association Rules widget setup: see the first screenshot in section "What's wrong?"
Which version of Orange are you using? How did you install Orange?
Version: 3.27.1
Installed by Anaconda: conda install -c conda-forge orange3=3.27.1
What is your operating system?
Windows 10 Education 64-bit (10.0, Build 18363)
Thank you very much and best regards,
Minh PHAN
What's wrong?
Upon starting up the application using python -m Orange.canvas
it is showing the following error:
2023-02-10 10:09:41,193:ERROR:orangecanvas.registry.discovery: An ImportError occurred while loading entry point 'Associate = orangecontrib.associate.widgets'
Traceback (most recent call last):
File "/home/jorge/.local/lib/python3.10/site-packages/orangecanvas/registry/discovery.py", line 122, in run
point = entry_point.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2471, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/home/jorge/.local/lib/python3.10/site-packages/orangecontrib/associate/__init__.py", line 1, in <module>
from .fpgrowth import \
File "/home/jorge/.local/lib/python3.10/site-packages/orangecontrib/associate/fpgrowth.py", line 152, in <module>
from collections import defaultdict, Iterator
ImportError: cannot import name 'Iterator' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
It happens everytime the application starts. Note that the application still runs fine and works, this error is just being logged in the console.
How can we reproduce the problem?
Simply opening the application with the python command will throw this error
What's your environment?
pip install orange3
PyQt5 PyQtWebEngine
Both widgets need updating due to changes in Orange.
Fix Error and Warning to classes, check QVariant and setting up AnyQt. All warnings found in the console when using the widgets.
I installed orange3-associate and when I try out the very first example in the tutorial document I get the following error:
File "", line 1, in
File "orangecontrib/associate/init.py", line 1, in
from .fpgrowth import
File "orangecontrib/associate/fpgrowth.py", line 26
SyntaxError: Non-ASCII character '\xc2' in file orangecontrib/associate/fpgrowth.py on line 27, but no encoding declared;
Any ideas?
1.3.0
3.36.2
Frequent Itemsets and Association Rules Analyses
worthless erroneous results
Orange Schema
Frequent Itemsets
Association Rules
Data Table
CSV Data Pivot like Market Basket dataset
pivot.csv
CSV Data like Foofmart 2000 dataset
dataset.csv
master
master
I get no exceptions if I filter rules by string.
When I try filter by a string not present in the dataset I get
Traceback (most recent call last):
File "/home/marko/dev/orange-widget-base/orangewidget/gui.py", line 1709, in do_commit
commit()
File "/home/marko/dev/orange3-associate/orangecontrib/associate/widgets/owassociate.py", line 395, in find_rules
self.table_rules = proxy_model.get_data()
File "/home/marko/dev/orange3-associate/orangecontrib/associate/widgets/owassociate.py", line 270, in get_data
table = Table.from_numpy(domain, X=data[:, :len(numeric)].astype(float),
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
Run the widget with zoo and try to filter by "marko".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.