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

Unable to write training data / model in Pd #148

Closed
jrdooley opened this issue Nov 13, 2018 · 2 comments
Closed

Unable to write training data / model in Pd #148

jrdooley opened this issue Nov 13, 2018 · 2 comments
Assignees

Comments

@jrdooley
Copy link

Using: Pd 0.49.1, ml-lib 0.18.1, macOS 10.13.6

ml-lib objects used: ml.svm, ml.mlp

After adding features to either the svm or mlp objects, I am unable to write out the data to a file using the write my_mlp_data message. This is still the case before and after training a model. The Pd console shows the following error message:

error: ml.mlp: unable to write training data to path: mlp_data.data error: ml.mlp: unable to write model to path: mlp_data.model

@jamiebullock
Copy link
Contributor

I can reproduce this, but I think probably it's the documentation that's incorrect.

For me it works if I do write /path/to/my_ml-lib_data where /path/to is some directory writeable by Pd.

I suspect if you don't include a path it either tries to write to /my_ml-lib_data or $(pwd)/my_ml-lib_data where $(pwd) is something like /Applications/Pd.app/Contents/MacOS ... and therefore it fails due to permissions.

I might update the help file and also print a more helpful error message.

Can you confirm using the full path works for you?

@jrdooley
Copy link
Author

@jamiebullock Writing the full path works.

I had thought that I'd tried writing the full pathname, but I guess I imagined it. Problem solved.

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

No branches or pull requests

2 participants