This is 'make-data': (only look at the :temporal-window clause)...

(defn make-data
"Constructs a MLData object given some data"
[of-type & data]
(condp = of-type
   :basic         (BasicMLData. (double-array data))
   :basic-complex nil;;TODO
:basic-dataset (BasicMLDataSet. (into-array (map double-array (first data))) (into-array (map double-array (second data))))
   ;:temporal-dataset (TemporalMLDataSet. )
   :temporal-window (fn [window-size prediction-size]
(let [twa (TemporalWindowArray. window-size prediction-size)]
                               (do (. twa analyze (doubles data))
                                     (. twa process (doubles data)))))


   ;:folded (FoldedDataSet.)
:else (throw (IllegalArgumentException. "Unsupported data model!"))
))

Jim


On 16/05/12 19:32, David Nolen wrote:
On Wed, May 16, 2012 at 1:59 PM, Jim - FooBar(); <jimpil1...@gmail.com <mailto:jimpil1...@gmail.com>> wrote:


    ClassCastException [D cannot be cast to java.lang.Number
        clojure.lang.Numbers.double_array (Numbers.java:1068)

        clojure-encog.training/make-data/fn--963 (training.clj:37)


As Aaron has already mentioned - what is going on in make-data?

David
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to