Belle II Software  release-05-01-25
custom.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 # Thomas Keck 2017
5 
6 
7 def feature_importance(state):
8  """
9  Assert
10  """
11  raise RuntimeError("You have to overwrite feature_importance if you use the custom framework")
12 
13 
14 def get_model(number_of_features, number_of_spectators, number_of_events, training_fraction, parameters):
15  """
16  Assert
17  """
18  raise RuntimeError("You have to overwrite get_model if you use the custom framework")
19 
20 
21 def load(obj):
22  """
23  Assert
24  """
25  raise RuntimeError("You have to overwrite load if you use the custom framework")
26 
27 
28 def apply(state, X):
29  """
30  Assert
31  """
32  raise RuntimeError("You have to overwrite apply if you use the custom framework")
33 
34 
35 def begin_fit(state, Xtest, Stest, ytest, wtest):
36  """
37  Assert
38  """
39  raise RuntimeError("You have to overwrite begin_fit if you use the custom framework")
40 
41 
42 def partial_fit(state, X, S, y, w, epoch):
43  """
44  Assert
45  """
46  raise RuntimeError("You have to overwrite partial_fit if you use the custom framework")
47 
48 
49 def end_fit(state):
50  """
51  Assert
52  """
53  raise RuntimeError("You have to overwrite end_fit if you use the custom framework")