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:
parent
37e8ca05d7
commit
9cf4db8d4b
2 changed files with 14 additions and 10 deletions
14
README
14
README
|
@ -13,8 +13,7 @@ the jar manually.
|
||||||
|
|
||||||
* git clone the project
|
* git clone the project
|
||||||
* $ lein deps
|
* $ lein deps
|
||||||
* $ lein compile
|
* $ lein javac
|
||||||
* $ lein compile-java
|
|
||||||
* $ lein uberjar
|
* $ lein uberjar
|
||||||
|
|
||||||
### Installing from Clojars
|
### 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>(def ds (load-instances :arff "file:///Applications/weka-3-6-2/data/iris.arff"))
|
||||||
|
|
||||||
REPL>; Discretizing a numeric attribute using an unsupervised filter
|
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))
|
REPL>(def filtered-ds (filter-process discretize ds))
|
||||||
|
|
||||||
|
@ -201,13 +203,14 @@ the jar manually.
|
||||||
REPL>(classifier-label to-classify)
|
REPL>(classifier-label to-classify)
|
||||||
|
|
||||||
#<Instance 5.1,3.5,1.4,0.2,Iris-setosa>
|
#<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>; The classifiers can be saved and restored later
|
||||||
REPL>(use 'clj-ml.utils)
|
REPL>(use 'clj-ml.utils)
|
||||||
|
|
||||||
REPL>(serialize-to-file classifier
|
REPL>(serialize-to-file classifier "/Users/antonio.garrote/Desktop/classifier.bin")
|
||||||
REPL> "/Users/antonio.garrote/Desktop/classifier.bin")
|
|
||||||
|
|
||||||
* Using clusterers
|
* Using clusterers
|
||||||
|
|
||||||
|
@ -219,6 +222,7 @@ the jar manually.
|
||||||
REPL> ; we need to remove the class from the dataset to
|
REPL> ; we need to remove the class from the dataset to
|
||||||
REPL> ; use this clustering algorithm
|
REPL> ; use this clustering algorithm
|
||||||
REPL> (dataset-remove-class ds)
|
REPL> (dataset-remove-class ds)
|
||||||
|
; FIXME: Outdated - there is no dataset-remove-class
|
||||||
|
|
||||||
REPL> ; we build the clusters
|
REPL> ; we build the clusters
|
||||||
REPL> (clusterer-build kmeans ds)
|
REPL> (clusterer-build kmeans ds)
|
||||||
|
|
10
project.clj
10
project.clj
|
@ -1,14 +1,14 @@
|
||||||
(defproject clj-ml "0.0.3-SNAPSHOT"
|
(defproject clj-ml "0.0.3-SNAPSHOT"
|
||||||
:description "Machine Learning library for Clojure built around Weka and friends"
|
: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"
|
:java-source-path "src/java"
|
||||||
:javac-fork "true"
|
:javac-fork "true"
|
||||||
:dependencies [[org.clojure/clojure "1.1.0"]
|
:dependencies [[org.clojure/clojure "1.1.0"]
|
||||||
[org.clojure/clojure-contrib "1.1.0"]
|
[org.clojure/clojure-contrib "1.1.0"]
|
||||||
[lein-javac "0.0.2-SNAPSHOT"]
|
[org.mongodb/mongo-java-driver "1.0"]
|
||||||
[incanter/incanter-full "1.0-master-SNAPSHOT"]
|
[lt/weka "3.6.3"]]
|
||||||
[com.mongodb/mongo "1.0"]
|
:dev-dependencies [[autodoc "0.7.0"]
|
||||||
[weka/weka "3.6.2"]]
|
[lein-javac "1.2.1-SNAPSHOT"]]
|
||||||
:dev-dependencies [[autodoc "0.7.0"]]
|
|
||||||
:autodoc { :name "clj-ml", :page-title "clj-ml machine learning Clojure's style"
|
:autodoc { :name "clj-ml", :page-title "clj-ml machine learning Clojure's style"
|
||||||
:author "Antonio Garrote <antoniogarrote@gmail.com>"
|
:author "Antonio Garrote <antoniogarrote@gmail.com>"
|
||||||
:copyright "2010 (c) Antonio Garrote, under the MIT license"})
|
:copyright "2010 (c) Antonio Garrote, under the MIT license"})
|
||||||
|
|
Loading…
Reference in a new issue