Presentation is loading. Please wait.

Presentation is loading. Please wait.

2010.11.04- SLIDE 1IS 257 – Fall 2010 Data Mining and the Weka Toolkit University of California, Berkeley School of Information IS 257: Database Management.

Similar presentations


Presentation on theme: "2010.11.04- SLIDE 1IS 257 – Fall 2010 Data Mining and the Weka Toolkit University of California, Berkeley School of Information IS 257: Database Management."— Presentation transcript:

1 2010.11.04- SLIDE 1IS 257 – Fall 2010 Data Mining and the Weka Toolkit University of California, Berkeley School of Information IS 257: Database Management

2 2010.11.04- SLIDE 2IS 257 – Fall 2010 Lecture Outline Final Reports and Presentations Review –OLAP (ROLAP, MOLAP) Data Mining with the WEKA toolkit

3 2010.11.04- SLIDE 3IS 257 – Fall 2010 Final project Final project is the completed version of your personal project with an enhanced version of Assignment 4 AND an in-class presentation on the database design and interface Detailed description and elements to be considered in grading are available by following the links on the Assignments page or the main page of the class site

4 2010.11.04- SLIDE 4IS 257 – Fall 2010 Related Fields Statistics Machine Learning Databases Visualization Data Mining and Knowledge Discovery Source: Gregory Piatetsky-Shapiro

5 2010.11.04- SLIDE 5IS 257 – Fall 2010 The Hype Curve for Data Mining and Knowledge Discovery Over-inflated expectations Disappointment Growing acceptance and mainstreaming rising expectations Source: Gregory Piatetsky-Shapiro

6 2010.11.04- SLIDE 6IS 257 – Fall 2010 OLAP Online Line Analytical Processing –Intended to provide multidimensional views of the data –I.e., the “Data Cube” –The PivotTables in MS Excel are examples of OLAP tools

7 2010.11.04- SLIDE 7IS 257 – Fall 2010 Data Cube

8 2010.11.04- SLIDE 8IS 257 – Fall 2010 Visualization – Star Schema Dimension Table (Beers)Dimension Table (etc.) Dimension Table (Drinkers)Dimension Table (Bars) Fact Table - Sales Dimension Attrs.Dependent Attrs. From anonymous “olap.ppt” found on Google

9 2010.11.04- SLIDE 9IS 257 – Fall 2010 Typical OLAP Queries Often, OLAP queries begin with a “star join”: the natural join of the fact table with all or most of the dimension tables. Example: SELECT * FROM Sales, Bars, Beers, Drinkers WHERE Sales.bar = Bars.bar AND Sales.beer = Beers.beer AND Sales.drinker = Drinkers.drinker; From anonymous “olap.ppt” found on Google

10 2010.11.04- SLIDE 10IS 257 – Fall 2010 Example: In SQL SELECT bar, beer, SUM(price) FROM Sales NATURAL JOIN Bars NATURAL JOIN Beers WHERE addr = ’Palo Alto’ AND manf = ’Anheuser-Busch’ GROUP BY bar, beer; From anonymous “olap.ppt” found on Google

11 2010.11.04- SLIDE 11IS 257 – Fall 2010 Example: Materialized View Which views could help with our query? Key issues: 1.It must join Sales, Bars, and Beers, at least. 2.It must group by at least bar and beer. 3.It must not select out Palo-Alto bars or Anheuser-Busch beers. 4.It must not project out addr or manf. From anonymous “olap.ppt” found on Google

12 2010.11.04- SLIDE 12IS 257 – Fall 2010 Example --- Continued Here is a materialized view that could help: CREATE VIEW BABMS(bar, addr, beer, manf, sales) AS SELECT bar, addr, beer, manf, SUM(price) sales FROM Sales NATURAL JOIN Bars NATURAL JOIN Beers GROUP BY bar, addr, beer, manf; Since bar -> addr and beer -> manf, there is no real grouping. We need addr and manf in the SELECT. From anonymous “olap.ppt” found on Google

13 2010.11.04- SLIDE 13IS 257 – Fall 2010 Example --- Concluded Here’s our query using the materialized view BABMS: SELECT bar, beer, sales FROM BABMS WHERE addr = ’Palo Alto’ AND manf = ’Anheuser-Busch’; From anonymous “olap.ppt” found on Google

14 2010.11.04- SLIDE 14IS 257 – Fall 2010 Example: Market Baskets If people often buy hamburger and ketchup together, the store can: 1.Put hamburger and ketchup near each other and put potato chips between. 2.Run a sale on hamburger and raise the price of ketchup. From anonymous “olap.ppt” found on Google

15 2010.11.04- SLIDE 15IS 257 – Fall 2010 Finding Frequent Pairs The simplest case is when we only want to find “frequent pairs” of items. Assume data is in a relation Baskets(basket, item). The support threshold s is the minimum number of baskets in which a pair appears before we are interested. From anonymous “olap.ppt” found on Google

16 2010.11.04- SLIDE 16IS 257 – Fall 2010 Frequent Pairs in SQL SELECT b1.item, b2.item FROM Baskets b1, Baskets b2 WHERE b1.basket = b2.basket AND b1.item < b2.item GROUP BY b1.item, b2.item HAVING COUNT(*) >= s; Look for two Basket tuples with the same basket and different items. First item must precede second, so we don’t count the same pair twice. Create a group for each pair of items that appears in at least one basket. Throw away pairs of items that do not appear at least s times. From anonymous “olap.ppt” found on Google

17 2010.11.04- SLIDE 17IS 257 – Fall 2010 More on Data Mining using Weka Slides from Eibe Frank, Waikato Univ. NZ


Download ppt "2010.11.04- SLIDE 1IS 257 – Fall 2010 Data Mining and the Weka Toolkit University of California, Berkeley School of Information IS 257: Database Management."

Similar presentations


Ads by Google