We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kindly tell how to solve the 1 Failed File
The logfile for the code is :
=================================================================== FAILURES =================================================================== ______________________________________________________ test_basic_fetching_stackexchange _______________________________________________________ def test_basic_fetching_stackexchange(): test_fractions = (0.2, 0.5, 0.6) for test_fraction in test_fractions: data = fetch_stackexchange('crossvalidated', min_training_interactions=0, test_set_fraction=test_fraction) train = data['train'] test = data['test'] assert isinstance(train, sp.coo_matrix) assert isinstance(test, sp.coo_matrix) assert train.shape == test.shape frac = float(test.getnnz()) / (train.getnnz() + test.getnnz()) assert abs(frac - test_fraction) < 0.01 for dataset in ('crossvalidated', 'stackoverflow'): data = fetch_stackexchange(dataset, min_training_interactions=0, > indicator_features=True, tag_features=False) tests/test_datasets.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ lightfm/datasets/stackexchange.py:88: in fetch_stackexchange data = np.load(path) /usr/lib/python2.7/dist-packages/numpy/lib/npyio.py:399: in load pickle_kwargs=pickle_kwargs) /usr/lib/python2.7/dist-packages/numpy/lib/npyio.py:162: in __init__ _zip = zipfile_factory(fid) /usr/lib/python2.7/dist-packages/numpy/lib/npyio.py:92: in zipfile_factory return zipfile.ZipFile(*args, **kwargs) /usr/lib/python2.7/zipfile.py:770: in __init__ self._RealGetContents() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <zipfile.ZipFile object at 0x7f8214b07c90> def _RealGetContents(self): """Read in the table of contents for the ZIP file.""" fp = self.fp try: endrec = _EndRecData(fp) except IOError: raise BadZipfile("File is not a zip file") if not endrec: > raise BadZipfile, "File is not a zip file" E BadZipfile: File is not a zip file /usr/lib/python2.7/zipfile.py:811: BadZipfile ===================================================== 1 failed, 49 passed in 68.95 seconds =====================================================
The text was updated successfully, but these errors were encountered:
Can you check if it's a valid zip file?
Sorry, something went wrong.
No branches or pull requests
Kindly tell how to solve the 1 Failed File
The logfile for the code is :
The text was updated successfully, but these errors were encountered: