Julio Biason
3 months ago
5 changed files with 72 additions and 23 deletions
@ -0,0 +1,6 @@ |
|||||||
|
# Skip default checkout |
||||||
|
|
||||||
|
``` |
||||||
|
agent { label 'docker:creator' } |
||||||
|
options { skipDefaultCheckout() } |
||||||
|
``` |
@ -0,0 +1,2 @@ |
|||||||
|
# Middle Expansion |
||||||
|
`path/path/path*/stuff` |
@ -0,0 +1,35 @@ |
|||||||
|
Verify, having the same idea of HelyxTest, have two thresholds: absolute and relative. |
||||||
|
|
||||||
|
Those come from Pandas and HelyxTest. |
||||||
|
|
||||||
|
np.allclose => Detection |
||||||
|
|
||||||
|
absolute = np.max(np.abs(ref - gen)) |
||||||
|
rel = np.max(np.abs(abs / ref)) |
||||||
|
|
||||||
|
# Jupyter |
||||||
|
import pandas |
||||||
|
import numpy |
||||||
|
|
||||||
|
reference = pandas.DataFrame([100, 100, 100, 100]) |
||||||
|
generated = pandas.DataFrame([101, 101, 101, 101]) |
||||||
|
|
||||||
|
absolute = numpy.abs(reference -generated) |
||||||
|
absolute = [1, 1, 1,1] |
||||||
|
|
||||||
|
relative = numpy.abs(absolute / reference) |
||||||
|
relative = [0.01, 0.01, 0.01, 0.01] |
||||||
|
|
||||||
|
--- |
||||||
|
|
||||||
|
reference = pandas.DataFrame([100, 100, 0, 100]) |
||||||
|
generated = pandas.DataFrame([101, 101, 101, 101]) |
||||||
|
|
||||||
|
absolute = numpy.abs(reference - generated) |
||||||
|
absolute = [1, 1, 101, 1] |
||||||
|
|
||||||
|
relative = numpy.abs(absolute / reference) |
||||||
|
relative = [0.01, 0.01, inf, 0.01] |
||||||
|
|
||||||
|
numpy.max(absolute) => 101 |
||||||
|
numpy.max(relative) => inf |
Loading…
Reference in new issue