@pytest.mark.smoke
@pytest.mark.gpu
def test_fastai_smoke(notebooks):
notebook_path = notebooks["fastai"]
pm.execute_notebook(
notebook_path,
OUTPUT_NOTEBOOK,
kernel_name=KERNEL_NAME,
> parameters=dict(TOP_K=10, MOVIELENS_DATA_SIZE="100k", EPOCHS=1),
)
tests/smoke/test_notebooks_gpu.py:72:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/data/anaconda/envs/nightly_reco_gpu/lib/python3.6/site-packages/papermill/execute.py:100: in execute_notebook
raise_for_execution_errors(nb, output_path)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
nb = {'cells': [{'cell_type': 'code', 'metadata': {'inputHidden': True, 'hide_input': True}, 'execution_count': None, 'sour...nd_time': '2020-02-10T16:14:36.593733', 'duration': 14.501099, 'exception': True}}, 'nbformat': 4, 'nbformat_minor': 2}
output_path = 'output.ipynb'
def raise_for_execution_errors(nb, output_path):
"""Assigned parameters into the appropriate place in the input notebook
Parameters
----------
nb : NotebookNode
Executable notebook object
output_path : str
E --> 150 with pd.option_context('display.max_colwidth', -1):
E 151 display(HTML(df.to_html(index=False)))
E 152
E
E /data/anaconda/envs/nightly_reco_gpu/lib/python3.6/site-packages/pandas/_config/config.py in __enter__(self)
E 405
E 406 for pat, val in self.ops:
E --> 407 _set_option(pat, val, silent=True)
E 408
E 409 def __exit__(self, *args):
E
E /data/anaconda/envs/nightly_reco_gpu/lib/python3.6/site-packages/pandas/_config/config.py in _set_option(*args, **kwargs)
E 125 o = _get_registered_option(key)
E 126 if o and o.validator:
E --> 127 o.validator(v)
E 128
E 129 # walk the nested dict
E
E /data/anaconda/envs/nightly_reco_gpu/lib/python3.6/site-packages/pandas/_config/config.py in is_nonnegative_int(value)
E 842
E 843 msg = "Value must be a nonnegative integer or None"
E --> 844 raise ValueError(msg)
E 845
E 846
E
E ValueError: Value must be a nonnegative integer or None
This link points to NNI (the same error as the other issue), not to FastAI.
@anargyri @miguelgfierro So is this nni-related issue or fastai with a wrong link?
it is fastai, I fixed the link
I can't replicate either this or the NNI issue. Both tests pass on another VM after generating the conda files from scratch. Most likely there is some problem with the build VM, not with the code. I suggest you try again on the build VM with a completely new and fresh conda environment.
Based on the error message, I believe the error is related to this: https://forums.fast.ai/t/fastai-v1-and-pandas-1-0-0-error-in-tabular-data-show-xys/63210
Seems like the test is now passing. Has either fastai package or pandas package version changed in reco_gpu.yaml?
it is weird, the last 5 or so tests failed and today it runs correctly. Not sure why, I also saw that the master tests are not running daily https://dev.azure.com/best-practices/recommenders/_build/results?buildId=21076&view=results (last time it run was on Jan 18), does anyone changed this?
Confirmed (and replicated) the issue with changing pandas package versions.
pandas==1.0.0 causes the issue.
pandas==1.0.1 fixes.
So, how do we want to handle this at the env file now...?