Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Demo

Avatar for Erin Erin
June 25, 2015
37

 Demo

Avatar for Erin

Erin

June 25, 2015

Transcript

  1. things  you   care  about   the  !pping  point  

    Take  poli4cal  ac4on  [only]  when  it  ma9ers.   things  you   can  influence   Erin  Boyle  
  2. The  DATA   Wide  not  deep:       Of

     526  bill  votes:     4  sessions  of  Congress;       174  commi9ees;     1156  keywords;       1414  related  bills;       227  bill  sponsors  …       Manually  sorted  keywords   into  the  five  categories   displayed.  
  3. The  DATA   Wide  not  deep:       Of

     526  bill  votes:     4  sessions  of  Congress;       174  commi9ees;     1156  keywords;       1414  related  bills;       227  bill  sponsors  …       Manually  sorted  keywords   into  the  five  categories   displayed.   Skewed  dataset:   Most  bills  that  make  it  to  a  vote  pass.    
  4. The  DATA   Wide  not  deep:       Of

     526  bill  votes:     4  sessions  of  Congress;       174  commi9ees;     1156  keywords;       1414  related  bills;       227  bill  sponsors  …       Manually  sorted  keywords   into  the  five  categories   displayed.   Skewed  dataset:   Most  bills  that  make  it  to  a  vote  pass.    
  5. Random  Forest  Model   •  I  ul4mately  want  a  classifier,

     but  I  model  as  a  regression  to  get  more  insight.     •  10-­‐fold  cross  valida4on     •  Precision  is  far  more  cri4cal  than  recall.  
  6. Random  Forest  Model   •  I  ul4mately  want  a  classifier,

     but  I  model  as  a  regression  to  get  more  insight.     •  10-­‐fold  cross  valida4on     •  Precision  is  far  more  cri4cal  than  recall.  
  7. Random  Forest  Model   •  I  ul4mately  want  a  classifier,

     but  I  model  as  a  regression  to  get  more  insight.     •  10-­‐fold  cross  valida4on     •  Precision  is  far  more  cri4cal  than  recall.  
  8. Random  Forest  Model   •  Trim  to  top  ~200  parameters

     for  final  model   •  Run  that  on  bills  that  have  been  acBve  in  the  last  3  weeks   •  I  ul4mately  want  a  classifier,  but  I  model  as  a  regression  to  get  more  insight.     •  10-­‐fold  cross  valida4on     •  Precision  is  far  more  cri4cal  than  recall.  
  9. Bills  that  have  been  voted  on  since  the  site  went

     live  have  both  been   correctly  predicted:   Passed  at  58%  (close)   Intelligence  Authoriza4on  Act   June  16,  2015     q  Armed  forces  &  na4onal  security   q  HSBU  (involved)   q  Cosponsors  count  (0)   Passed  at  67%  (not  close)   Protect  Medical  Innova4on  Act   June  18,  2015     q  Armed  forces  &  na4onal  security   q  HSBU  (not  involved)   q  Cosponsors  count  (238)  
  10. Bills  that  have  been  voted  on  since  the  site  went

     live  have  both  been   correctly  predicted:   Passed  at  58%  (close)   Intelligence  Authoriza4on  Act   June  16,  2015     q  House  vote   q  Introduced  by  Rep.  Devin  Nunes                   (R-­‐CA,  male)  
  11. Top  features,  and  their  average  rate  of  close  calls:  

      Mitch  McConnell?   Commerce  bills  always  pass!  
  12. Top  features  that  don’t  have  boolean  values:   I  would

     expect  close  calls  to  go  about  at  50%  in  both   houses,  but  it  doesn’t  happen  in  the  Senate.  Perhaps   due  to  filibuster?  
  13. *   *  RF   Other  algorithms  considered   LogisBc

     Regression:    Tended  more   toward  recall  than  precision   Training  RF  on  each  topic’s  bills  only,   vs.  training  on  en4re  dataset  and   tes4ng  on  1/4th  (via  4-­‐fold  CV)  of  topic   bills.  La9er  performs  be9er,  so  I  stayed   with  global  RF.   I  also  did  a  grid  search  SVM  with  a    β-­‐ weighted  F-­‐score.  β  =  .2  to  encourage   precision  over  recall.     This  did  similarly  well  to  RF,  but  without  the   straighmorward  feature  trimming.  
  14. •  10-­‐fold  cross  validaBon  for:   •  Determining  overall  precision

     and  recall.   •  Looking  for  model  improvement  as  parameter  sets  are  incorporated.   Trim  final  parameter  set  to  ~200  parameters  that  are  important  over  all  10  valida4on   rounds  –  only  these  will  be  used  to  judge  upcoming  bills.   Data  processing  &  Algorithm:    Random  Forest