O'Reilly logo

Practical Predictive Analytics by Ralph Winters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Examining cluster 1

Print out a sample of the data:

> head(cluster1[10:13]) Desc2 lastword firstword Cluster 50 VintageBillboardLove/hateMug MUG VINTAGE 1 86 BagVintagePaisley PAISLEY BAG 1113 ShopperVintagePaisley PAISLEY SHOPPER 1145 ShopperVintagePaisley PAISLEY SHOPPER 1200 VintageHeadsAndTailsCardGame GAME VINTAGE 1 210 PaperChainKitVintageChristmas CHRISTMAS PAPER 1

Table the frequencies and print out the most popular terms in the clusters. Observe that many of these items have to do with christmas and paisley items, which seem to occur together:

tail(sort(table(cluster1$lastword)), 10) MUG GAME BUNTING CARDS DESIGN LEAF  427 431 456 482 535 717 911  DOILY PAISLEY CHRISTMAS  1073 1699 1844

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required