Put dtree.py and id3.py in /web2py/application/yourapp/modules/. See 
http://web2py.com/books/default/chapter/29/4#Accessing-the-API-from-Python-modules
.

Anthony

On Sunday, May 27, 2012 11:00:34 PM UTC-4, Anj wrote:
>
> hi! I have python codes for building an id3 decision tree and they`re 
> already running. However, the output decision tree is just text-based. So, 
> I decided to use web2py to give it a more pleasant look. Now, my problem is 
> how do i integrate these codes in web2py. I mean, where will I insert these 
> codes especially the computations of entropy and information gain after I 
> upload my dataset? How will I make an OOP into an MVC? 
>
> By the way, I have already created the GUI for this application but still 
> lack a UI for displaying the output decision tree.
>
> Here`s the scenario:
>
>
> <https://lh3.googleusercontent.com/-FfLOuWzGqFI/T8Lprknyu9I/AAAAAAAAAaI/RDkVYOosaT8/s1600/id31.JPG>
>
> that`s the Home Page. When I click the ID3 menu, it will redirect here:
>
>
> <https://lh3.googleusercontent.com/-brRNheqzg04/T8Lp8L1oi3I/AAAAAAAAAaQ/oRg3xGw73_0/s1600/id32.JPG>
>
> The I will upload a file as my dataset. The dataset is to be computed and 
> analyzed so that the program will display the output. 
>
> Please help me. Thanks!
>
>

Reply via email to