| Partitioning {fmeffects} | R Documentation |
R6 Class representing a partitioning
Description
This is the abstract superclass for partitioning objects like PartitioningCtree and PartitioningRpart.
A Partitioning contains information about feature subspaces with conditional average marginal effects (cAME) computed for ForwardMarginalEffect objects.
Public fields
objecta
ForwardMarginalEffectobject with results computedmethodthe method for finding feature subspaces
valuethe value of
methodresultsdescriptive statistics of the resulting feature subspaces
treethe tree representing the partitioning, a
partyobjecttree.controlcontrol parameters for the RP algorithm
computedlogical specifying if compute() has been run
Methods
Public methods
Method new()
Create a Partitioning object
Usage
Partitioning$new(...)
Arguments
...Partitioning cannot be initialized, only its subclasses
Method compute()
Computes the partitioning, i.e., feature subspaces with more homogeneous FMEs, for a ForwardMarginalEffect object.
Usage
Partitioning$compute()
Returns
An Partitioning object with results.
Examples
# Compute results for an arbitrary partitioning: # subspaces$compute()
Method plot()
Plots results, i.e., a decision tree and summary statistics of the feature subspaces, for an Partitioning object after $compute() has been run.
Usage
Partitioning$plot()
Examples
# Plot an arbitrary partitioning: # subspaces$plot()
Method clone()
The objects of this class are cloneable with this method.
Usage
Partitioning$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Examples
## ------------------------------------------------
## Method `Partitioning$compute`
## ------------------------------------------------
# Compute results for an arbitrary partitioning:
# subspaces$compute()
## ------------------------------------------------
## Method `Partitioning$plot`
## ------------------------------------------------
# Plot an arbitrary partitioning:
# subspaces$plot()