12_HyperPlanes

12_HyperPlanes - Example MajorityVote Function Definition...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
10/21/2009 1 Perceptrons and Optimal Hyperplanes Example: Majority Vote Function Definition: Majority Vote Function f majority N binary attributes, i.e. x {0,1} N If more than N/2 attributes in x are true, then (x)=1 else (x)= 1 f majority (x)=1, else f majority (x)= 1. How can we represent this function as a decision tree? Huge and awkward tree! Is there an “easier” representation of f majority ? Example: Spam Filtering Instance Space X: Feature vector of word occurrences => binary features N features (N typically > 50000) Target Concept c: Spam (+1) / Ham ( 1) Type of function to learn: Set of Spam words S, Set of Ham words H Classify as Spam (+1), if more Spam words than Ham words in example. Example: Spam Filtering Use weight vector w=(+1, 1, 0, +1, +1) Compute sign(wx) •Mo re generally, we can use real valued weights to express “spamminess” of word. • w=(+10, 1, 0.3,+1,+5) •Wh ich vector is most likely to be spam with this weighting? A=x 1 , B=x 2 , C=x 3
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/30/2010 for the course CS 4700 taught by Professor Joachims during the Fall '07 term at Cornell.

Page1 / 4

12_HyperPlanes - Example MajorityVote Function Definition...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online