From: Andrew Conway <arc@sequence.Stanford.EDU>
To: caml-list@inria.fr, vincent@cyberman.parc.anglia.ac.uk
Subject: Re: Neural nets in Caml
Date: Mon, 6 Oct 1997 11:26:14 -0700 (PDT) [thread overview]
Message-ID: <199710061826.LAA21557@cycle.Stanford.EDU> (raw)
In response to the request for neural network software in caml/ocaml:
I have some brief neural network routines in ocaml in my general
library which is available from:
http://sequence-www.stanford.edu/~arc/publib.html
A trivial test function to show backpropagation on a neural network
with 2 input nodes, 2 nodes in a hidden layer, and one output node
(hence [|2;2;1|] argument to create) is:
let selftest () =
let net = create [|2;2;1|] in
let teachdataset = [|
([|1.0;1.0|],[|0.0|]);
([|1.0;0.0|],[|1.0|]);
([|0.0;1.0|],[|1.0|]);
([|0.0;0.0|],[|0.0|])
|] in
let testdataset = teachdataset in
polyteachtest 5000 net teachdataset testdataset;
net
;;
Warning: I don't actually use neural networks, so I haven't tested it all
that much. I had an application that I thought could use them, wrote
the library, and then abandoned it.
Warning: I think that generally neural networks are the wrong way to solve
a problem.
There are lots of other things in the library, most with a one line
comment :-(
Regards,
Andrew.
-----------------
J'ai un bibliotech "neural network" (et autres choses) en ocaml dans
http://sequence-www.stanford.edu/~arc/publib.html
Malheureusement, il n'y a pas beaucoup de documentation. Et presque
tout est en Anglais.
Amities,
Andrew.
next reply other threads:[~1997-10-07 11:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-10-06 18:26 Andrew Conway [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-10-06 14:36 Vincent Leleu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199710061826.LAA21557@cycle.Stanford.EDU \
--to=arc@sequence.stanford.edu \
--cc=caml-list@inria.fr \
--cc=vincent@cyberman.parc.anglia.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox