iceid¶
Electron ID input data classes and functions.
iceid.common¶
- load_root_file(root_path, ids=None, entry_start=0, entry_stop=None, maxevents=None, args=None, library='np')[source]¶
Loads the root files.
- Parameters:
root_path – paths to root files (list)
- Returns:
columnar data Y: class labels W: event weights ids: columnar variable string (list) info: trigger and pre-selection acceptance x efficiency information (dict)
- Return type:
X
iceid.graphio¶
- parse_graph_data(X, ids, features, graph_param, Y=None, weights=None, entry_start=None, entry_stop=None, EPS=1e-12, null_value=-999.0)[source]¶
Jagged array data into pytorch-geometric style Data format array.
- Parameters:
X – Jagged array of variables
ids – Variable names as an array of strings
features – List of active global feature strings
graph_param – Graph construction parameters dict
Y – Target class array (if any, typically MC only)
weights – (Re-)weighting array (if any, typically MC only)
- Returns:
List of pytorch-geometric Data objects