Skip to content
Snippets Groups Projects
Commit 367e8290 authored by Nikolai.Hartmann's avatar Nikolai.Hartmann
Browse files

fix plot_input for usage with training batches

parent 79807735
No related branches found
No related tags found
No related merge requests found
...@@ -1335,6 +1335,10 @@ class ClassificationProject(object): ...@@ -1335,6 +1335,10 @@ class ClassificationProject(object):
break break
if self.target_fields: if self.target_fields:
y = y[0] y = y[0]
try:
x = self.get_input_flat(x)
except NameError:
pass
bkg_batch = x[:,var_index][y==0] bkg_batch = x[:,var_index][y==0]
sig_batch = x[:,var_index][y==1] sig_batch = x[:,var_index][y==1]
bkg_weights_batch = w[y==0] bkg_weights_batch = w[y==0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment