Author: | | Mark Hall |
Category: | | Classification |
Date: | | 2013-07-25 |
Depends: | | weka (>=3.7.1) |
Description: | | Wrapper classifier for classifiers written in the Clojure programming language. The Clojure implementation is expected to have at least the following two functions:
learn-classifier [insts options-string]
distribution-for-instance [inst model]
The learn-classifier function takes an Instances object and an options string (which can be null). It is expected to return the learned model as some kind of serializable data structure. The distribution-for-instance function takes a Instance to be predicted and the model as arguments and returns the prediction as an array of doubles.
The Clojure implementation can optionally provide a model-to-string [model header] function to return a textual description of the model. See the weka-clj.simple classifier included in the source code of this package.
Your own Clojure classifier only needs to be available on the classpath to be accessible to the ClojureClassifier. The easiest thing to do is to place the jar file containing your Clojure implementation in the lib directory of the clojureClassifier package (i.e. in ${user.home}/wekafiles/packages/clojureClassifier/lib) |
License: | | GPL 3.0 |
Maintainer: | | Weka team <wekalist{[at]}list.waikato.ac.nz> |
PackageURL: | | http://prdownloads.sourceforge.net/weka/clojureClassifier1.0.0.zip?download |
URL: | | http://weka.sourceforge.net/doc.packages/clojureClassifier |
Version: | | 1.0.0 |