Closed miguelgfierro closed 5 years ago
I got a weird error:
@pytest.mark.smoke
@pytest.mark.gpu
@pytest.mark.deeprec
def test_notebook_dkn(notebooks):
notebook_path = notebooks["dkn_quickstart"]
pm.execute_notebook(
notebook_path,
OUTPUT_NOTEBOOK,
kernel_name=KERNEL_NAME,
parameters=dict(epoch=1),
)
results = pm.read_notebook(OUTPUT_NOTEBOOK).dataframe.set_index("name")["value"]
assert results["res"]["auc"] == pytest.approx(0.4707, TOL2)
assert results["res"]["acc"] == pytest.approx(0.5725, TOL2)
> assert results["res"]["f1"] == pytest.approx(0.7281, TOL2)
E assert 0.0 == 0.7281 ± 3.6e-01
E + where 0.7281 ± 3.6e-01 = <function approx at 0x7f10034c87b8>(0.7281, 0.5)
E + where <function approx at 0x7f10034c87b8> = pytest.approx
tests/smoke/test_notebooks_gpu.py:126: AssertionError
This does not look good. You should not get zero F1 score.
Could you double check the initialization and the hyperparameters?
It looks that running: pytest tests/smoke -m "smoke and not spark and gpu"
give an OOM, however, running pytest tests/smoke/test_deeprec_model.py
and pytest tests/smoke/test_notebooks_gpu.py
independently doesn't
Maybe there is an open process from test_deeprec_model.py ... weirddddd
this might be the solution https://stackoverflow.com/a/37454574
What is affected by this bug?
Smoke tests.
More info: https://msdata.visualstudio.com/DefaultCollection/AlgorithmsAndDataScience/_build/results?buildId=2265907
In which platform does it happen?