On 09.06.2009, at 20:07, alfred.morgan.al...@gmail.com wrote: > Thanks for the advice, but at present I'm simply aiming to get the > very basics of a neural net up and running without having to worry > about a training algorithm at all. Here's what I have so far (again, > very basic) > > > ;; Net0 > > (def nodes {}) > > (defn insertNode [node] > (do (def nodes (assoc nodes (:name node) node)) node) )
Redefining nodes looks like a source of trouble... What are your needs in terms of network definition? Would you typically define a network once, and then use it a lot? Or would you rather have an initial network and add/delete nodes regularly? In the first case, I'd use a network creation function that returns the complete network, without any defs at all. In the second case, describing your network in terms of refs might be an option. Konrad. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---