Article View: comp.archives
Article #4564[ai...] ALN, the first bug!!
From: Andrew Dwelly
Date: Mon, 06 May 1991 13:41
Date: Mon, 06 May 1991 13:41
45 lines
2698 bytes
2698 bytes
Archive-name: ai/neural-nets/atree/1991-04-30
Archive: menaik.cs.ualberta.ca:pub/atree.tar.Z [129.128.4.241]
Original-posting-by: dwelly@saddle-lk.cs.UAlberta.CA (Andrew Dwelly)
Original-subject: ALN, the first bug!!
Reposted-by: emv@msen.com (Edward Vielmetti, MSEN)
Some people have commented on the strange behaviour of the ALN,
learning of the training set in only one epoch. This is due to the
non-random output of rand(). The least significant bit alternates between
successive calls to rand, this implies that you get at most only two distinct
vectors ... not a particularly challenging problem! We have been using
the following macro on Suns:
#define RANDOM(b) ((rand() >> 15) % (b))
of course, you get equally non-random behaviour if you try this on a
16-bit machine.
Anybody who took this software before the 30th of April and intends to
run under Unix should make this change to the file atree.h
Anybody who takes a copy of this software on the 30th, or afterwards should
have no problem. We now have it set up so that the shifting takes place if IBM
is not defined in the Makefile. The poor behavior of rand() is mentioned in
the README, but it obviously worth emphasizing again as without attention,
some people will get erroneous results.
If you want a copy of this software, it is available by anonymous ftp, from
menaik.cs.ualberta.ca [129.128.4.241] in the file pub/atree.tar.Z . Thanks
to those people who commented.
Andy Dwelly
--
******************************************************************************
Andy Dwelly : dwelly@cs.ualberta.ca, Tel: 403-492-7591
!@#$%$#, %^&*%, - Listen, who swears ? Christopher Robin has fallen downstairs.
******************************************************************************
-- comp.archives file verification
menaik.cs.ualberta.ca
-rw-r--r-- 1 556 17 154327 May 1 10:17 pub/atree.tar.Z
found atree ok
menaik.cs.ualberta.ca:pub/atree.tar.Z
Technical Details
Message-ID:
<1991May6.134129.4044@ox.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!ox.com!msen.com!emvReferences:
<1991Apr30.224448.16123@cs.UAlberta.CA>Show Full Headers
Complete Article Headers
Newsgroups: comp.archives Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!ox.com!msen.com!emv From: dwelly@saddle-lk.cs.UAlberta.CA (Andrew Dwelly) Subject: [ai...] ALN, the first bug!! Message-ID: <1991May6.134129.4044@ox.com> Followup-To: comp.ai,comp.ai.neural-nets,can.ai,comp.databases Sender: emv@msen.com (Edward Vielmetti, MSEN) Reply-To: dwelly@saddle-lk.cs.UAlberta.CA (Andrew Dwelly) Organization: University of Alberta, Edmonton, Canada References: <1991Apr30.224448.16123@cs.UAlberta.CA> Date: Mon, 6 May 1991 13:41:29 GMT Approved: emv@msen.com (Edward Vielmetti, MSEN) X-Original-Newsgroups: comp.ai,comp.ai.neural-nets,can.ai,comp.databases