ndphillips / FFTrees

An R package to create and visualise fast-and-frugal decision trees (FFTs)
https://journal.sjdm.org/17/17217/jdm17217.pdf
135 stars 23 forks source link

Ideas for refining the structure of FFTrees objects #226

Open ndphillips opened 5 months ago

ndphillips commented 5 months ago

@hneth In the context of #224 I realized that the structure of FFTrees objects is making development challenging - such as knowing how to modularize the plot.FFTrees() function.

The current code to create FFTrees objects is contained here: https://github.com/ndphillips/FFTrees/blob/71b9da041d16439f7de3091f7aa5987885f45108/R/fftrees_create.R#L765-L852

Here are the core issues I see:

To solve these issues, I'm drafted an object design doc at https://github.com/ndphillips/FFTrees/wiki/%5B80%25%5D-FFTrees-Object-Design. I'm eager for feedback

hneth commented 5 months ago

Just realized that my comment on #224 should better have been posted here — sorry!

ndphillips commented 5 months ago

No worries, let's carry on the discussion here