irllabs / ml-lib

A machine learning library for Max and Pure Data
Other
274 stars 40 forks source link

Cannot save model #166

Closed rudxokim closed 5 years ago

rudxokim commented 5 years ago

Thanks for your effort.

I tried to save my trained daw model with my own name and console says

error: ml.dtw: unable to write trains data to path: [my own name].data

I tried with /foldername/name, or just name.. but same result

I'm running ml. libraries on max 8 with MacOS mojave.

rudxokim commented 5 years ago

image

Here's my patch

NiccoloGranieri commented 5 years ago

Hi @rudxokim, thanks for you interest in ml.lib. I currently can't reproduce your issue. I tried to save the data and model using your same naming convention, and I didn't encounter any errors. Running: (write /motion_data/_18_9_18_32) saves correctly both the data and the model in the folder called motion_data in my root folder. This provided that a motion_data folder already exists in my root.

I was able to see the same error only if the folder was not present, making it impossible for ml.lib to save to the specified location.

Could you please double check for me that the path you are trying to save the file to is valid, and there is a folder called motion_data in your root?

rudxokim commented 5 years ago

Thanks for your prompt response.

I tried without the folder name like just [write motion], but result was same.

Even the provided help file shows same error. getting weird.

root folder means current patch file location right?

I tried sfplay~ to test out my 'root folder' with messages [open demo.wav] and worked without any problem.

Regards, Kim

NiccoloGranieri commented 5 years ago

No problem @rudxokim,

It should not work without the folder name, so that's behaving as expected.

The provided help file shows the same error because there is no such path as /path/to/my_ml-lib_data on your laptop, so ml.lib is unable to find the correct path where to save the data and model.

The root folder is not the current patch file location, the root folder or root directory is the "highest" directory in the hierarchy. So to be able to save the data in the same folder you need to find the full path to the folder in which your Max Patch is saved. Because you're on Mojave, the easieast way to do so is to:

Screenshot 2019-07-18 at 14 07 05

Finally, paste in the message box you use to write the ml.lib data and add the name of the file desired.

For example, if your max patch was saved on the Desktop, your write message should look something like this:

(write /Users/Nicco/Desktop/_18_9_18_32)

rudxokim commented 5 years ago

Yep. Full path works.

Thanks for your support.

Regards, Kim