scicloj / scicloj.ml.tribuo

Use Tribuo ML model in metamorph.ml
Eclipse Public License 1.0
11 stars 1 forks source link

Edn configs in Tribuo #3

Open Craigacp opened 2 months ago

Craigacp commented 2 months ago

You might be interested to know that Tribuo's config system supports edn format config files using the olcut-config-edn library (OLCUT is what we use to provide configuration & provenance in Tribuo). If you add that jar to the project then call the Clojure equivalent of ConfigurationManager.addFileFormatFactory(new EdnConfigFactory()) then Tribuo's config system can read & write edn configs for experiments (we use JSON in the tutorial here, but it could all be done with edn configs). One of our team members likes lisps and so a number of our internal Tribuo config files use edn. It should also be possible to write an edn serde for Tribuo's provenance similar to the JSON one but we've not had need for that as provenance isn't typically read by humans in serialized form.

(I realise this isn't actually an issue, but I came across the project and this seemed like the simplest way of letting people know).

behrica commented 3 weeks ago

Thanks for this comment. I have decided so far to require the tribuo config to be given "inline", and not as "edn files". see here: https://github.com/scicloj/scicloj.ml.tribuo/blob/master/README.md

Not sure, if this affects you comment.