Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug in tree importation #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ZAMachineLearning/ZAMachineLearning.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ def main():
nodes = ['TT','DY','ZA']
channels = ['ElEl','MuMu']
data_dict = {}
strSelect = []
for node in nodes:
strSelect = []
list_sample = []
if opt.resolved:
strSelect.extend(['resolved_{}_{}'.format(channel,node) for channel in channels])
Expand Down Expand Up @@ -290,9 +290,9 @@ def main():
data_node = data_node_era
else:
data_node = pd.concat([data_node,data_node_era],axis=0)
logging.info('{} Sample size for era {} : {}'.format(node,era,data_node_era.shape[0]))
logging.info('\t{} class in era {} : sample size = {}, weight sum = {:.3e} (with normalization = {:.3e})'.format(node,era,data_node_era.shape[0],data_node_era[parameters.weights].sum(),data_node_era['event_weight'].sum()))
data_dict[node] = data_node
logging.info('{} Sample size for all eras : {}'.format(node,data_node.shape[0]))
logging.info('{} class for all eras : sample size = {}, weight sum = {:.3e} (with normalization = {:.3e})'.format(node,data_node.shape[0],data_node[parameters.weights].sum(),data_node['event_weight'].sum()))

#logging.info('Current memory usage : %0.3f GB'%(pid.memory_info().rss/(1024**3)))

Expand Down