diff --git a/README b/README index c8d1d53..a4fe142 100644 --- a/README +++ b/README @@ -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) # + ; 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) diff --git a/project.clj b/project.clj index 09a1cab..53bb58f 100644 --- a/project.clj +++ b/project.clj @@ -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 " :copyright "2010 (c) Antonio Garrote, under the MIT license"})