Coding Utf 8 1 Import Orange Rawdata Captain America Non Stop Wolf Wall Street Non Stop 30 Q37291574

Q1. Association Rules Mining: Input data Suppose we have the gound set of movies: Captain America, Non-Stop, The Wolf of Wall

# coding: utf-8 # In[1]: import Orange raw_data = [“CaptainAmerica, Non-Stop, The Wolf of Wall Street”, “Non-Stop, 300 Rise ofan Empire, THOR”, “Captain America, Frozen”, “Captain America,Non-Stop, 300 Rise of an Empire”, “Captain America, The Wolf ofWall Street, Frozen”, “Non-Stop, The Wolf of Wall Street”] # writedata to the text file: data.basket f = open(‘data.basket’, ‘w’) foritem in raw_data: f.write(item + ‘n’) f.close() # Load data fromthe text file: data.basket data = Orange.data.Table(“data.basket”)# Identify association rules

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.