root_numpy.tmva.evaluate_reader(reader, name, events, aux=0.0)

Evaluate a TMVA::Reader over a NumPy array.


reader : TMVA::Reader

A TMVA::Factory instance with variables booked in exactly the same order as the columns in events.

name : string

The method name.

events : numpy array of shape [n_events, n_variables]

A two-dimensional NumPy array containing the rows of events and columns of variables. The order of the columns must match the order in which you called AddVariable() for each variable.

aux : float, optional (default=0.)

Auxiliary value used by MethodCuts to set the desired signal efficiency.


output : numpy array of shape [n_events]

The method output value for each event

See also