Description Usage Arguments Details Value Author(s) See Also Examples
This function takes two parameters. 1) "formula" will take your model for decision tree. 2) "dataset" will take your data
1 | decision_tree(formula, dataset)
|
formula |
This argument will take your model as input. Model includes a label attribute and some other dependent attributes of same dataset. This function will make decision tree on the base of corelation of Label attribute and other dependent attributes. labelatt ~ att1+att2+att3 |
dataset |
This parameter will take your dataset as input. Data on which you want to perform decision tree. |
Your formula/model should be include one label attribute and some other attributes (at least one) and all these (label and other) attributes should be from same dataset. So that this function can take decisions on the base of this given model/formula. You can also use dot (".") if you want to perform this function with one label attribute and for all remaining attributes. So you don't have to write all attributes of dataset in the formula
This function will return some data nodes on the basis of some decisions and then you can plot this data nodes by calling tamahagane.plot() function.
Farhan Mubasher (xululabs)
tamahagane.plot()
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.