-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vizualizing defun #20
Comments
Hi! The short answer is - yes, but it's not directly supported by One way to do this coming to my mind would be to wrap Obviously, this approach only works when The other problem is to get the decision path after a decision has been made. That could be achieved by updating an execution context on each decision making. That is usually done by updating a dynamic var, atom, or passing a context directly to the function. The macro from the first step can help with it as well. As you could notice, both steps are not supported by I would be very happy if someone could suggest an easier solution, though :) |
Thanks for the fast response. |
No examples, sorry. But I can’t imagine any other way of using I think Prolog could be the right choice for the task. There are a few articles about visualizing decision trees in Prolog (because the primary purpose of the language is to build and solve decision trees). The nearest alternative in Clojure world is Datalog. Maybe someone has already solved your problem for it. |
Hey,
I'd like to use defun to construct a conditional decision tree.
Is there any way to visualise it in a tree/graph format?
Thanks
The text was updated successfully, but these errors were encountered: