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

about svm_predict outputfile #1

Open
zzzzzzzzzzzx opened this issue Feb 18, 2021 · 7 comments
Open

about svm_predict outputfile #1

zzzzzzzzzzzx opened this issue Feb 18, 2021 · 7 comments

Comments

@zzzzzzzzzzzx
Copy link

zzzzzzzzzzzx commented Feb 18, 2021

No description provided.

@zzzzzzzzzzzx
Copy link
Author

Besides, because of the wrong output.csv, i can not run WSVM_metrics.py. It can't correctly read the data.

@amirhoseinoveis
Copy link

Hello Sathvik, In the file WSVM_bash.py, when I try to run these two lines

train_command = './svm-train -s 8 -t 0 train_svm model'
subprocess.Popen(train_command.split(), stdout = subprocess.PIPE)

the code gives a error of not finding the file
If I change "./svm-train" to "./svm-train.cpp" it gives this error [WinError 193] %1 is not a valid Win32 application.
If I add shell=True to subprocess.Popen, it gives the error of '.' is not recognized as an internal or external command,
operable program or batch file.
Can you help me solve the problem?

@SathvikEadla
Copy link
Owner

Try using “.\” instead of “./“.

@SathvikEadla
Copy link
Owner

Besides, because of the wrong output.csv, i can not run WSVM_metrics.py. It can't correctly read the data.

Sorry didn’t follow your issue.

@amirhoseinoveis
Copy link

“.\”

Thanks for your prompt response, but this

train_command = '.\svm-train.cpp -s 8 -t 0 train_svm model'
process = subprocess.Popen(train_command.split(), stdout = subprocess.PIPE,shell=True)
output, error = process.communicate()

will literally open Visual Studio!! Moreover, without .cpp or shell=False, it also does not work.

@SathvikEadla
Copy link
Owner

I am not sure about this. I have implemented this is Linux (Ubuntu) as windows implementation was introducing more problems. I would recommend you to use this in Linux operating system.

@amirhoseinoveis
Copy link

I am not sure about this. I have implemented this is Linux (Ubuntu) as windows implementation was introducing more problems. I would recommend you to use this in Linux operating system.

ok thanks for your recommendation

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

3 participants