Create arbitrary decision tree without training data?
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Asvin Kumar
2019 年 10 月 29 日
Have a look at Stateflow to implement flow charts.
Here are a couple links to get you started:
参考
カテゴリ
Help Center および File Exchange で Electromechanical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!