blob: 57d5a8bb1cf1b103bba8827dd9be01c89945dd6a (
plain)
1
2
3
4
5
6
7
8
|
#!/usr/bin/env ruby
require_relative '../../lazar/lib/lazar'
include OpenTox
dataset = Dataset.find(File.read(ARGV[0]).chomp)
model = Model::Validation.find(File.read(ARGV[1]).chomp)
predictions = model.predict dataset.compounds # avoid dataset prediction to keep neighbors
puts predictions.to_json
|