   (:require [zensols.tabres.display-results :as dr])
   (:require [zensols.actioncli.resource :refer (resource-path)]
             [zensols.util.spreadsheet :as ss]
+            [zensols.util.string :as zs]
             [zensols.model.classifier :as cl]
             [zensols.model.weka :as weka]))
 

   (create-instances features-set nil))
  ([features-set context]
   (log/infof "generating instances from %d feature sets" (count features-set))
   (log/tracef "feature sets: <<%s>>" (pr-str features-set))
   (let [{:keys [name set-context-fn]} (model-config)]
     (if (and set-context-fn context)
       (set-context-fn context))
     (weka/instances
      (format "%s-classify" name)
      features-set

  * **:set-context-fn** (optional) a function that is called to set the context
  created with **:context-fn** and retrieved from the persisted model; this is
  useful when using/executing the model and the context is needed before
  **:create-features-fn** is called; if this function is provided it replaces
  the unpersisted context in case there is any *thawing* logic that might be
  needed for the model

  * **:model-return-keys** what the classifier will return (by default
  `{:label :distributions}`)
