DEV Community

Discussion on: Code-free machine learning with Ludwig

 
chrishunt profile image
Chris Hunt

Took a bit of fiddling to get running in Colab but here it is...
colab.research.google.com/drive/1Z...

I think the explanation at the top of the notebook may have been the issue you were having. I had been running from terminal so hadn't come across it. See Github issue for details.

The first bit is getting the data and just dropping NaNs. Also changed one column name as I couldn't work out how to get it working with column names with spaces in.

The rest is the training. The key is that the training is code free.

Thread Thread
 
timusletap profile image
TimusLetap

In both instances however you use a pre-built model_definition.yaml file. Any chance you would now how to create a simple model_definition.yaml file from scratch in-line? I kind of wanted to understand how that would work as it is not described in the documents so well.

Thread Thread
 
chrishunt profile image
Chris Hunt

It's not "pre-built" - you have to write the model definition yourself.

The docs at uber.github.io/ludwig/user_guide/#... explain the basics of the model definition file. It's just a yaml file defining the input and output features along with any additional parameters you want to override the Ludwig defaults.

Thread Thread
 
timusletap profile image
TimusLetap

Thank you. I figured it out. I just didn't realize how to start it off.