From a9503280@unet.univie.ac.at  Wed Oct 18 09:30:20 2000
Received: from unet.univie.ac.at (unet.univie.ac.at [131.130.230.7])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id JAA07834
	for <prolog@swi.psy.uva.nl>; Wed, 18 Oct 2000 09:30:19 +0200 (MET DST)
Received: from unet.univie.ac.at (chello212186104033.14.univie.teleweb.at [212.186.104.33])
	by unet.univie.ac.at (8.9.3/8.9.3) with ESMTP id JAA208728
	for <prolog@swi.psy.uva.nl>; Wed, 18 Oct 2000 09:31:04 +0200
Message-ID: <39ED512D.722835B5@unet.univie.ac.at>
Date: Wed, 18 Oct 2000 09:28:45 +0200
From: Oliver <a9503280@unet.univie.ac.at>
X-Mailer: Mozilla 4.07 [en] (Win98; I)
MIME-Version: 1.0
To: Prolog <prolog@swi.psy.uva.nl>
Subject: work with ID3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,
I used the id3 algorithm to get a output tree in the form of e.g.
tree(legs,
    [2+man,
     3+[],
     4+t(food,
                [meat+lion,
                 vegetables+giraffe])])

which means in my case that if the input is 2 legs output should be
"man", if 3 legs output -> [] and if 4 legs it also must be clear if
input is meat or vegetables. First cast it's alion second a giraffe.

The id3 works perfect and I get the tree but my problem is how can I
come to the ouput (e.g."man").
I can write in the code clauses e.g.: output(2,_,man), output(2,_,[]),
output(4,meat,lion), output(4,vegetables,giraffe) -> this clauses do
exactly that what I want but it should be dynamically so that I don't
have to hardcode the clauses in the code!

thanks a lot for any suggestion...
Oliver



