summaryrefslogtreecommitdiff
path: root/bin/crossvalidation.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2021-03-18 16:48:36 +0100
committerChristoph Helma <helma@in-silico.ch>2021-03-18 16:48:36 +0100
commit83591831c6e36c36d87159acba6afdfedab95522 (patch)
treeaeab99f16956468d432b24ecabf447fb06ab8e66 /bin/crossvalidation.rb
parent1dcd741a5bff8dc41abf0840f59031eb557ff230 (diff)
fingerprint predictions addedsingle-input-file
Diffstat (limited to 'bin/crossvalidation.rb')
-rwxr-xr-xbin/crossvalidation.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/bin/crossvalidation.rb b/bin/crossvalidation.rb
deleted file mode 100755
index b7cfdd7..0000000
--- a/bin/crossvalidation.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env ruby
-require_relative "../lib/lazar"
-dir = ARGV[0]
-dependent_variable_type = File.read(File.join(dir, "dependent-variable-type")).chomp
-independent_variable_type = File.read(File.join(dir, "independent-variable-type")).chomp
-if dependent_variable_type == "binary" and independent_variable_type == "binary"
- model = TanimotoClassificationModel.new dir
-elsif dependent_variable_type == "binary" and independent_variable_type == "numeric"
- model = CosineClassificationModel.new dir
-elsif dependent_variable_type == "numeric" and independent_variable_type == "binary"
- model = TanimotoRegressionModel.new dir
-elsif dependent_variable_type == "numeric" and independent_variable_type == "numeric"
- model = CosineRegressionModel.new dir
-end
-model.crossvalidation