Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removes redundant file

  • Loading branch information...
commit 381b9a23ae043c892b97f41445f5a49a50ac8864 1 parent b0460d2
@chochkov authored
Showing with 0 additions and 33 deletions.
  1. +0 −33 benchmark/test.rb
View
33 benchmark/test.rb
@@ -1,33 +0,0 @@
-# This is a cross validation script
-# TODO: move it to a rake task
-require 'sqlite3'
-
-require File.join(File.dirname(__FILE__), '..', 'spec', 'tester')
-include GreenMidget
-
-ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => '~/sc/user_backup/data.db')
-
-@spam = [ 'messages', 'comments', 'posts' ].map { |table| ActiveRecord::Base.connection.execute("select body from #{table} limit 1500").inject([]) { |memo, hash| memo << hash["body"] } }
-
-ActiveRecord::Base.establish_connection(:adapter => 'mysql', :username => 'root', :password => 'root', :database => 'soundcloud_development_temp')
-
-@ham = [ 'messages', 'comments', 'posts' ].map { |table| Records.find_by_sql("select body from #{table} limit 1500").to_a.inject([]) { |memo, hash| memo << hash["body"] } }
-
-ActiveRecord::Base.establish_connection(:adapter => 'mysql', :username => 'root', :password => 'root', :database => 'classifier_development_weird')
-#
-# # ------ I. PERFORM TRAINING
-# puts Benchmark.measure {
-# @spam.each { |src|
-# src.each {|body|
-# klass = Tester.new(body);klass.classify_as! :spam
-# }
-# };true
-# }
-#
-# puts Benchmark.measure {
-# @ham.each { |src|
-# src.each {|body|
-# klass = Tester.new(body);klass.classify_as! :ham
-# }
-# };true
-# }
Please sign in to comment.
Something went wrong with that request. Please try again.