Hello! I am with the Arkansas AI-Campus team and my model is having trouble. When I submit, I keep getting the result that the model did not produce a predictions.csv file. However, the model runs without error and produces a predictions.csv file in local testing and in the logs I get from Synapse. I would appreciate help with this problem especially since this uses up my teams' submission when this happens.
Created by Jonathan Stubblefield ShadowUnicorn90 Thank you very much for sharing these logs. It pointed me to the problem.
Hi @ShadowUnicorn90,
It looks like during the inference stage, the model attempts to access the `/data/goldstandard.csv` file, which is not present in the test data.
```
Started model inference.
Begin model inference.
Getting data for datapath /data.
Dataset will be balanced: False.
Working in mode train.
/usr/local/lib/python3.5/site-packages/xgboost/__init__.py:29: FutureWarning: Python 3.5 support is deprecated; XGBoost will require Python 3.6+ in the near future. Consider upgrading to Python 3.6+.
FutureWarning)
Traceback (most recent call last):
File "/app/infer.py", line 3, in
infer_model(save=True)
File "/app/lib.py", line 143, in infer_model
datadict = get_data(datapath)
File "/app/lib.py", line 29, in get_data
goldstandard = pandas.read_csv(datapath + '/' + 'goldstandard.csv')
File "/usr/local/lib/python3.5/site-packages/pandas/io/parsers.py", line 685, in parser_f
return _read(filepath_or_buffer, kwds)
File "/usr/local/lib/python3.5/site-packages/pandas/io/parsers.py", line 457, in _read
parser = TextFileReader(fp_or_buf, **kwds)
File "/usr/local/lib/python3.5/site-packages/pandas/io/parsers.py", line 895, in __init__
self._make_engine(self.engine)
File "/usr/local/lib/python3.5/site-packages/pandas/io/parsers.py", line 1135, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/usr/local/lib/python3.5/site-packages/pandas/io/parsers.py", line 1917, in __init__
self._reader = parsers.TextReader(src, **kwds)
File "pandas/_libs/parsers.pyx", line 382, in pandas._libs.parsers.TextReader.__cinit__
File "pandas/_libs/parsers.pyx", line 689, in pandas._libs.parsers.TextReader._setup_parser_source
FileNotFoundError: [Errno 2] File b'/data/goldstandard.csv' does not exist: b'/data/goldstandard.csv'
```
Thanks,
@trberg
Drop files to upload
Model does not produce predictions.csv page is loading…