Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - tree j
Search - tree j - List
/* The sample demonstrates how to build a decision tree for classifying mushrooms. It uses the sample base agaricus-lepiota.data from UCI Repository, here is the link: Newman, D.J. & Hettich, S. & Blake, C.L. & Merz, C.J. (1998). UCI Repository of machine learning databases [http://www.ics.uci.edu/~mlearn/MLRepository.html]. Irvine, CA: University of California, Department of Information and Computer Science. */ // loads the mushroom database, which is a text file, containing // one training sample per row, all the input variables and the output variable are categorical, // the values are encoded by characters.
Date : 2026-01-15 Size : 4kb User : tofighi

PROGRAMMED BY : REHAN AHMED KHAN PAKISTAN- KARACHI BS student in FAST University (foundation for advancement of science and technology) this program is free ware and anyone can use it. /************************************************************************************************/ /************************************************************************************************* * THE ALGORITHM USED IS AS FOLLOWS * * * * Because the tree is complete it can be stored in an array of 2^n-1. * * The root of the tree is in position 2^(n-1)-1 * * for any level j, the first node at that level is in position 2^(n-1-j)-1 * * and each successive node at that level is 2^(n-j) elements beyond the previous element * * at that level * * So the sequential traversal of the array produces the solution of Towers of Hanoi Problem *
Date : 2026-01-15 Size : 1kb User : ahmadfatemi
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.