updates deps and README. Details below.

* Updated the deps to current repos and bumped the javac plugin.
  * Added LeadTune's maven repo so weka can be pulled down with `lein deps`.
  * Removed incanter temporarliy. The most recent clojars version wasn't working for me.
  * Updated README with new lein instructions.
  * Made note in README where things didn't work as advertised.
  * Verified that `lein test` passes with these deps.
This commit is contained in:
Ben Mabey 2010-10-27 16:39:41 -06:00
parent 37e8ca05d7
commit 9cf4db8d4b
2 changed files with 14 additions and 10 deletions

14
README
View file

@ -13,8 +13,7 @@ the jar manually.
* git clone the project
* $ lein deps
* $ lein compile
* $ lein compile-java
* $ lein javac
* $ lein uberjar
### Installing from Clojars
@ -97,7 +96,10 @@ the jar manually.
REPL>(def ds (load-instances :arff "file:///Applications/weka-3-6-2/data/iris.arff"))
REPL>; Discretizing a numeric attribute using an unsupervised filter
REPL>(def discretize (make-filter :unsupervised-discretize {:dataset *ds* :attributes [0 2]}))
REPL>(def discretize (make-filter :unsupervised-discretize {:dataset ds :attributes [0 2]}))
; FIXME: Outdated, it blows up with:
; java.lang.NullPointerException (NO_SOURCE_FILE:55)
REPL>(def filtered-ds (filter-process discretize ds))
@ -201,13 +203,14 @@ the jar manually.
REPL>(classifier-label to-classify)
#<Instance 5.1,3.5,1.4,0.2,Iris-setosa>
; FIXME: Outdated, it blows up with:
; java.lang.IllegalArgumentException: Wrong number of args passed to: classifiers$classifier-label (NO_SOURCE_FILE:0)
REPL>; The classifiers can be saved and restored later
REPL>(use 'clj-ml.utils)
REPL>(serialize-to-file classifier
REPL> "/Users/antonio.garrote/Desktop/classifier.bin")
REPL>(serialize-to-file classifier "/Users/antonio.garrote/Desktop/classifier.bin")
* Using clusterers
@ -219,6 +222,7 @@ the jar manually.
REPL> ; we need to remove the class from the dataset to
REPL> ; use this clustering algorithm
REPL> (dataset-remove-class ds)
; FIXME: Outdated - there is no dataset-remove-class
REPL> ; we build the clusters
REPL> (clusterer-build kmeans ds)

View file

@ -1,14 +1,14 @@
(defproject clj-ml "0.0.3-SNAPSHOT"
:description "Machine Learning library for Clojure built around Weka and friends"
:repositories {"leadtune-repo" "http://c0026236.cdn1.cloudfiles.rackspacecloud.com/repo"}
:java-source-path "src/java"
:javac-fork "true"
:dependencies [[org.clojure/clojure "1.1.0"]
[org.clojure/clojure-contrib "1.1.0"]
[lein-javac "0.0.2-SNAPSHOT"]
[incanter/incanter-full "1.0-master-SNAPSHOT"]
[com.mongodb/mongo "1.0"]
[weka/weka "3.6.2"]]
:dev-dependencies [[autodoc "0.7.0"]]
[org.mongodb/mongo-java-driver "1.0"]
[lt/weka "3.6.3"]]
:dev-dependencies [[autodoc "0.7.0"]
[lein-javac "1.2.1-SNAPSHOT"]]
:autodoc { :name "clj-ml", :page-title "clj-ml machine learning Clojure's style"
:author "Antonio Garrote <antoniogarrote@gmail.com>"
:copyright "2010 (c) Antonio Garrote, under the MIT license"})