Belle II Software light-2406-ragdoll
|
Public Member Functions | |
def | __init__ (self, *my_fancy_parameters) |
def | fit (self, X, y) |
def | predict (self, X) |
Let's assume we have written our own classifier (or installed something from github)
Definition at line 21 of file how_to_use_arbitrary_methods.py.
def __init__ | ( | self, | |
* | my_fancy_parameters | ||
) |
Just print the passed parameters
Definition at line 24 of file how_to_use_arbitrary_methods.py.
def fit | ( | self, | |
X, | |||
y | |||
) |
Our method is so good, it doesn't even have to look at the data!
Definition at line 28 of file how_to_use_arbitrary_methods.py.
def predict | ( | self, | |
X | |||
) |
Always return 1, this will boost our signal efficiency to the max
Definition at line 32 of file how_to_use_arbitrary_methods.py.