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