summaryrefslogtreecommitdiff
path: root/lazar_validation_reports.rb
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2017-05-04 10:09:36 +0000
committergebele <gebele@in-silico.ch>2017-05-04 10:09:36 +0000
commitb4a6b825c12b4aab1c661cf653e734291f365c6a (patch)
tree9aee4abff56f13180ad7cb88f9289b12257196e9 /lazar_validation_reports.rb
parent534f148aeb26e80ec6faa9410df7e0f193c2ab2c (diff)
small adjustments
Diffstat (limited to 'lazar_validation_reports.rb')
-rw-r--r--lazar_validation_reports.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lazar_validation_reports.rb b/lazar_validation_reports.rb
index 742fb62..85e9888 100644
--- a/lazar_validation_reports.rb
+++ b/lazar_validation_reports.rb
@@ -20,7 +20,8 @@ models.each_with_index do |model, idx|
type = model.regression? ? "regression" : "classification"
#name = model.model.name.gsub!(/[^0-9A-Za-z.\-]/, '_')
date = model.created_at.to_s.split.first
- name = (model.endpoint + "_" + model.species).gsub!(/[^0-9A-Za-z.\-]/, '_')
+ dataset_name = model.training_dataset.source.split("/").last
+ name = (model.endpoint + "_" + model.species + "_" + dataset_name).gsub!(/[^0-9A-Za-z.\-]/, '_')
branch = model.model.version["branch"]
commit = model.model.version["commit"]
filename = [date,type,branch,commit,name].join("_")
@@ -29,7 +30,7 @@ models.each_with_index do |model, idx|
@json["endpoint"] = model.endpoint
@json["species"] = model.species
@json["source"] = model.source
- @json["training_dataset"] = model.training_dataset.source
+ @json["training_dataset"] = dataset_name
@json["training_compounds"] = model.training_dataset.data_entries.size
@json["algorithms"] = model.algorithms
@json["name"] = model.model.name