Skip to content
New issue

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

No such file or directory: '/dev/shm/_tmp_2way_v.txt.out' when run "python _2c_generate_fm_features.py" in "_0_run_me.sh" #3

Open
SeekPoint opened this issue Jan 2, 2017 · 2 comments

Comments

@SeekPoint
Copy link

SeekPoint commented Jan 2, 2017

while start _0_run_me.sh,
It report such error when run "python _2c_generate_fm_features.py"

t0tv_mx loaded with shape (10999998, 43)
t0 loaded with shape (10999998, 40)
22 all_withid
to write data files ...
/media/rzai/ai_data/prj/kaggle-2014-criteo/solvers/libffm-1.13/ffm-train -t 4 -s 8 -l 1e-5 /dev/shm/_tmp_2way_v.txt /dev/shm/_tmp_2way_t.txt
load results ...
Traceback (most recent call last):
File "_2c_generate_fm_features.py", line 78, in
fm_predv = pd.read_csv(open(path1 + '_tmp_2way_v.txt.out', 'r'), header=None).ix[:,0].values
IOError: [Errno 2] No such file or directory: '/dev/shm/_tmp_2way_v.txt.out'

@SeekPoint SeekPoint changed the title No such file or directory: '/dev/shm/_tmp_2way_v.txt.out' when run "python _2c_generate_fm_features.py" No such file or directory: '/dev/shm/_tmp_2way_v.txt.out' when run "python _2c_generate_fm_features.py" in "_0_run_me.sh" Jan 2, 2017
@SeekPoint
Copy link
Author

I try to fixed it by change _tmp_2way_v.txt.out to _tmp_2way_v.txt

but got:

============================================================
23 fm_5vars
to write data files ...
/media/rzai/ai_data/prj/kaggle-2014-criteo/solvers/libffm-1.13/ffm-train -t 4 -s 8 -l 1e-5 /dev/shm/_tmp_2way_v.txt /dev/shm/_tmp_2way_t.txt
load results ...
--- gini_norm: 1.0

24 all_withid
to write data files ...
/media/rzai/ai_data/prj/kaggle-2014-criteo/solvers/libffm-1.13/ffm-train -t 4 -s 8 -l 1e-5 /dev/shm/_tmp_2way_v.txt /dev/shm/_tmp_2way_t.txt
iter tr_logloss
1 -nan
2 -nan
3 -nan
4 -nan
load results ...
Traceback (most recent call last):
File "_2c_generate_fm_features.py", line 78, in
fm_predv = pd.read_csv(open(path1 + '_tmp_2way_v.txt', 'r'), header=None).ix[:,0].values
File "/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.py", line 470, in parser_f
return _read(filepath_or_buffer, kwds)
File "/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.py", line 246, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.py", line 562, in init
self._make_engine(self.engine)
File "/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.py", line 699, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.py", line 1066, in init
self._reader = _parser.TextReader(src, **kwds)
File "pandas/parser.pyx", line 512, in pandas.parser.TextReader.cinit (pandas/parser.c:4804)
ValueError: No columns to parse from file

@liuyiyiyiyi
Copy link

How doyou solve the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants