Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/local/bin/ruby
- require "fastknn"
- #pair = Fastknn::PhenomatrixPair.new(185, 3, "hypergeometric")
- #nearest = pair.nearest(12)
- sids = [3]
- pid = 185
- Dir.chdir("tmp/fastknn") do
- dm = Fastknn::DistanceMatrix.new pid, sids, "hypergeometric", {:classifier => :naivebayes, :k => 10}
- dm.crossvalidate
- end
Add Comment
Please, Sign In to add comment