Forums Register Login

Tree Data structure

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
Obviously the first step will be to read lines and parse the significant parts - how far have you gotten with this?
Everybody's invited. Even this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 290 times.
Similar Threads
rint() and round()
Refactor XML with XPathAPI
arrays
Descending order and associating Array Elements in sort method to another's elements
XML to ASCII text
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:34:37.