• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tree Data structure  RSS feed

 
Arulanand Dayalan
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am having file in below format. I need to read this file and create a tree structure. I tried its not working as expected. Can you please let me know better approach/api to do it. Thanks in advance.

If (feature 3 in {1.0})
Predict: 0.0
Else (feature 3 not in {1.0})
If (feature 2 in {1.0})
If (feature 1 <= 3.0)
Predict: 0.0
Else (feature 1 > 3.0)
If (feature 1 <= 4.0)
If (feature 5 in {1.0})
Predict: 0.0
Else (feature 5 not in {1.0})
Predict: 1.0
Else (feature 1 > 4.0)
Predict: 1.0
Else (feature 2 not in {1.0})
Predict: 1.0

Regards,
Arul.
 
Junilu Lacar
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arulanand Dayalan wrote:I tried its not working as expected.

Please refer to the following links:

It Doesn't Work is Useless so please, Tell The Details
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Obviously the first step will be to read lines and parse the significant parts - how far have you gotten with this?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!