... | ... | @@ -31,9 +31,9 @@ The loss is evaluated using only jets in the range between 5 and 7 TeV in transv |
|
|
```python
|
|
|
def evaluate_loss(predictions, truth):
|
|
|
ratio = predictions/truth.
|
|
|
a = np.percentile(ratio, 84, interpolation='nearest')
|
|
|
b = np.percentile(ratio, 16, interpolation='nearest')
|
|
|
c = np.percentile(ratio, 50, interpolation='nearest')
|
|
|
a = np.nanpercentile(ratio, 84, interpolation='nearest')
|
|
|
b = np.nanpercentile(ratio, 16, interpolation='nearest')
|
|
|
c = np.nanpercentile(ratio, 50, interpolation='nearest')
|
|
|
loss = (a-b)/(2.*c)
|
|
|
return loss
|
|
|
```
|
... | ... | |