Create arbitrary decision tree without training data?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi there,
I am modelling rule-based control in greenhouses (with lots of rules like "if temperature > 25°C, open windows"). This essentially means making a decision tree.
Having looked around, I like the functionality of MATLAB's fitctree() classification function. I like that the trees can be visualised and used elegantly. However, the type of tree I want to create does not revolve around data. I want to build a tree with an arbitrary structure and arbitrary threshold values myself.
Does MATLAB have anything that can do this? Input arguments would be variable names (e.g. temperature) and threshold values (e.g. 25) - in a certain order - and the output would give a tree with the same functionality as fitctree() trees.
Thanks and best wishes,
Alex
PS - I see phytree() does something similar, but can it be used for decisions with multiple variables, and can it give a decision using the current state variables as an input?
0 comentarios
Respuestas (1)
Asvin Kumar
el 29 de Oct. de 2019
Have a look at Stateflow to implement flow charts.
Here are a couple links to get you started:
Ver también
Categorías
Más información sobre Electromechanical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!