|
| CARTree (std::size_t inputDimension=0) |
| Constructor. More...
|
|
std::string | name () const |
| From INameable: return the class name. More...
|
|
boost::shared_ptr< State > | createState () const |
| Creates an internal state of the model. More...
|
|
void | eval (BatchInputType const &patterns, BatchOutputType &outputs) const |
| Evaluate the Tree on a batch of patterns. More...
|
|
void | eval (BatchInputType const &patterns, BatchOutputType &outputs, State &state) const |
| Standard interface for evaluating the response of the model to a batch of patterns. More...
|
|
void | eval (RealVector const &pattern, LabelType &output) |
| Evaluate the Tree on a single pattern. More...
|
|
std::size_t | numberOfParameters () const |
| The model does not have any parameters. More...
|
|
RealVector | parameterVector () const |
| The model does not have any parameters. More...
|
|
void | setParameterVector (RealVector const ¶m) |
| The model does not have any parameters. More...
|
|
void | read (InArchive &archive) |
| from ISerializable, reads a model from an archive More...
|
|
void | write (OutArchive &archive) const |
| from ISerializable, writes a model to an archive More...
|
|
UIntVector | countAttributes () const |
|
Shape | inputShape () const |
| Return input dimension. More...
|
|
Shape | outputShape () const |
| Returns the shape of the output. More...
|
|
std::size_t | numberOfNodes () const |
|
Node & | getNode (std::size_t nodeId) |
| Returns the node with id nodeId. More...
|
|
Node const & | getNode (std::size_t nodeId) const |
| Returns the node with id nodeId. More...
|
|
LabelType const & | getLabel (std::size_t nodeId) const |
|
Node & | createRoot () |
| Creates and returns an untyped root node (neither internal, nor leaf node) More...
|
|
Node & | transformInternalNode (std::size_t nodeId, std::size_t attributeIndex, double attributeValue) |
| Transforms an untyped node (no child, no internal node) into an internal node. More...
|
|
Node & | transformLeafNode (std::size_t nodeId, LabelType const &label) |
| Transforms a node (no leaf) into a leaf node and inserts the appropriate label. More...
|
|
void | reorderBFS () |
| Reorders a tree into a breath-first-ordering. More...
|
|
| AbstractModel () |
|
virtual | ~AbstractModel () |
|
const Features & | features () const |
|
virtual void | updateFeatures () |
|
bool | hasFirstParameterDerivative () const |
| Returns true when the first parameter derivative is implemented. More...
|
|
bool | hasFirstInputDerivative () const |
| Returns true when the first input derivative is implemented. More...
|
|
virtual void | eval (InputType const &pattern, OutputType &output) const |
| Standard interface for evaluating the response of the model to a single pattern. More...
|
|
Data< OutputType > | operator() (Data< InputType > const &patterns) const |
| Model evaluation as an operator for a whole dataset. This is a convenience function. More...
|
|
OutputType | operator() (InputType const &pattern) const |
| Model evaluation as an operator for a single pattern. This is a convenience function. More...
|
|
BatchOutputType | operator() (BatchInputType const &patterns) const |
| Model evaluation as an operator for a single pattern. This is a convenience function. More...
|
|
virtual void | weightedParameterDerivative (BatchInputType const &pattern, BatchOutputType const &outputs, BatchOutputType const &coefficients, State const &state, RealVector &derivative) const |
| calculates the weighted sum of derivatives w.r.t the parameters. More...
|
|
virtual void | weightedInputDerivative (BatchInputType const &pattern, BatchOutputType const &outputs, BatchOutputType const &coefficients, State const &state, BatchInputType &derivative) const |
| calculates the weighted sum of derivatives w.r.t the inputs More...
|
|
virtual void | weightedDerivatives (BatchInputType const &patterns, BatchOutputType const &outputs, BatchOutputType const &coefficients, State const &state, RealVector ¶meterDerivative, BatchInputType &inputDerivative) const |
| calculates weighted input and parameter derivative at the same time More...
|
|
virtual | ~IParameterizable () |
|
virtual | ~INameable () |
|
virtual | ~ISerializable () |
| Virtual d'tor. More...
|
|
void | load (InArchive &archive, unsigned int version) |
| Versioned loading of components, calls read(...). More...
|
|
void | save (OutArchive &archive, unsigned int version) const |
| Versioned storing of components, calls write(...). More...
|
|
| BOOST_SERIALIZATION_SPLIT_MEMBER () |
|
template<class LabelType>
class shark::CARTree< LabelType >
Classification and Regression Tree.
- The CARTree predicts a class label using a decision tree
Definition at line 50 of file CARTree.h.