mlhubber / mlhub

Machine Learning Model Repository Hub Command Line Tool.
MIT License
20 stars 11 forks source link

Support multiple language packages #9

Open gjwgit opened 6 years ago

gjwgit commented 6 years ago

Each model should allow for the possibility of the pre-built model using R and Python. For example dogs-cats-r and dogs-cats-py should be just dogs-cats, perhaps with one or the other (or neither so require choice on configure):

$ ml setup dogs-cats language=r

$ ml configure dogs-cats Choose default language (R|Python):

gjwgit commented 6 years ago

The implementation might be through the DESCRIPTION.yaml file. The languages= tag can take a list of languages, with the first being the default. When a configure changes the default to another language the the users local DESCRIPTION.yaml get updated. It reverts to the package maintainer's default on an install.

gjwgit commented 6 years ago

From #20: Allow a single model package to support any number of languages, as listed in the languages tag line in the YAML file. The first language listed is the default and the user has an option to change the language (if more than one supported) on the CONFIGURE command. The change gets reflected in the locally installed DESCRIPTION.yaml file to keep things simple for the mlhub command line.