Guest User

Untitled

a guest
May 27th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/usr/local/bin/ruby
  2. require "fastknn"
  3.  
  4. #pair = Fastknn::PhenomatrixPair.new(185, 3, "hypergeometric")
  5. #nearest = pair.nearest(12)
  6.  
  7. sids = [3]
  8. pid = 185
  9. Dir.chdir("tmp/fastknn") do
  10. dm = Fastknn::DistanceMatrix.new pid, sids, "hypergeometric", {:classifier => :naivebayes, :k => 10}
  11. dm.crossvalidate
  12. end
Add Comment
Please, Sign In to add comment