Re: Decision tree schema

Krzysztof,
The closest thing to a standard schema for predictive models such as decision trees is PMML. PMML is an XML-based interchange format for predictive models such as decision tree, linear regression, etc. 
See https://en.wikipedia.org/wiki/Predictive_Model_Markup_Language. 
Cheers.N.


On Thursday, April 20, 2017, 12:28:40 AM PDT, Krzysztof Tomasz Zembrowski <krzysztof@zembrowski.com> wrote:Dear all,

does a schema for a decision tree structure exist?

I'm wondering whether it's reasonable to output the whole decision tree (with all questions, decision possibilities and answers [the whole tree with all branches]) in the ld+json format.

Moreover, does it makes sense to nest it, like the following example:

Question
__ Choice
____ Answer
__ Choice
____ Question
______ Choice
________ Answer
______ Choice
________ Answer
cf. https://jsfiddle.net/zembrowski/q50L7t6f/

or

make it completely flat (with or without dependencies), like this example:

Question1
Question2
Choice1_1
Choice1_2
Choice2_1
Choice2_2
Answer1
Answer2
Answer3
and add a parameter to each element with the correlation.
cf. https://jsfiddle.net/zembrowski/hevu3jof/

Would be more than happy to read your thoughts on this topic.

Thank you in advance. 

Best regards,
Krzysztof

Received on Wednesday, 26 April 2017 01:08:18 UTC