|
| | mitkClassMacro (AbstractClassifier, BaseData) |
| |
| virtual void | Train (const Eigen::MatrixXd &X, const Eigen::MatrixXi &Y)=0 |
| | Train the classifier on a labeled dataset. More...
|
| |
| virtual Eigen::MatrixXi | Predict (const Eigen::MatrixXd &X)=0 |
| | Predict class labels for the given input samples. More...
|
| |
| Eigen::MatrixXi & | GetLabels () |
| | Get the predicted label matrix from the last prediction. More...
|
| |
| virtual bool | SupportsPointWiseWeight ()=0 |
| | Query whether this classifier supports per-sample weighting. More...
|
| |
| virtual Eigen::MatrixXd & | GetPointWiseWeight () |
| | Get the per-sample weight matrix. More...
|
| |
| virtual void | SetPointWiseWeight (const Eigen::MatrixXd &W) |
| | Set the per-sample weight matrix. More...
|
| |
| virtual void | UsePointWiseWeight (bool value) |
| | Enable or disable per-sample weighting during training. More...
|
| |
| virtual bool | IsUsingPointWiseWeight () |
| | Query whether per-sample weighting is currently enabled. More...
|
| |
| virtual bool | SupportsPointWiseProbability ()=0 |
| | Query whether this classifier supports per-sample class probability output. More...
|
| |
| virtual Eigen::MatrixXd & | GetPointWiseProbabilities () |
| | Get the per-sample class probability matrix from the last prediction. More...
|
| |
| virtual void | UsePointWiseProbability (bool value) |
| | Enable or disable per-sample class probability computation. More...
|
| |
| virtual bool | IsUsingPointWiseProbability () |
| | Query whether per-sample class probability output is currently enabled. More...
|
| |
| void | SetNthItems (const char *val, unsigned int idx) |
| | Set an item in the property-based item list at the given index. More...
|
| |
| std::string | GetNthItems (unsigned int idx) const |
| | Get the item string at the given index from the property-based item list. More...
|
| |
| void | SetItemList (std::vector< std::string > list) |
| | Replace the entire item list with the given vector of strings. More...
|
| |
| std::vector< std::string > | GetItemList () const |
| | Retrieve all items from the property-based item list. More...
|
| |
| void | SetRequestedRegionToLargestPossibleRegion () override |
| | Set the RequestedRegion to the LargestPossibleRegion. More...
|
| |
| bool | RequestedRegionIsOutsideOfTheBufferedRegion () override |
| | Determine whether the RequestedRegion is outside of the BufferedRegion. More...
|
| |
| bool | VerifyRequestedRegion () override |
| | Verify that the RequestedRegion is within the LargestPossibleRegion. More...
|
| |
| void | SetRequestedRegion (const itk::DataObject *) override |
| | Set the requested region from this data object to match the requested region of the data object passed in as a parameter. More...
|
| |
| bool | IsEmpty () const override |
| | Check whether the object contains data at any time step. More...
|
| |
| | mitkClassMacroItkParent (BaseData, itk::DataObject) |
| |
| BaseProperty::ConstPointer | GetConstProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) const override |
| | Get a const property by its key. More...
|
| |
| std::vector< std::string > | GetPropertyKeys (const std::string &contextName="", bool includeDefaultContext=false) const override |
| | Get all property keys stored in the property list. More...
|
| |
| std::vector< std::string > | GetPropertyContextNames () const override |
| | Get the names of all property contexts. More...
|
| |
| BaseProperty * | GetNonConstProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) override |
| | Get a non-const property by its key. More...
|
| |
| void | SetProperty (const std::string &propertyKey, BaseProperty *property, const std::string &contextName="", bool fallBackOnDefaultContext=false) override |
| | Set a property in the property list. More...
|
| |
| void | RemoveProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=false) override |
| | Remove a property from the property list. More...
|
| |
| const mitk::TimeGeometry * | GetTimeGeometry () const |
| | Return the TimeGeometry of the data as const pointer. More...
|
| |
| mitk::TimeGeometry * | GetTimeGeometry () |
| | Return the TimeGeometry of the data as non-const pointer. More...
|
| |
| const mitk::TimeGeometry * | GetUpdatedTimeGeometry () |
| | Return the TimeGeometry of the data after ensuring it is up-to-date. More...
|
| |
| virtual void | Expand (unsigned int timeSteps) |
| | Expand the TimeGeometry to a number of time steps. More...
|
| |
| const mitk::BaseGeometry * | GetUpdatedGeometry (int t=0) |
| | Return the BaseGeometry of the data at time step t after ensuring it is up-to-date. More...
|
| |
| mitk::BaseGeometry * | GetGeometry (int t=0) const |
| | Return the BaseGeometry of the data at time step t as a non-const pointer. More...
|
| |
| void | UpdateOutputInformation () override |
| | Update the information for this BaseData so that it can be used as an output of a BaseProcess. More...
|
| |
| void | CopyInformation (const itk::DataObject *data) override |
| | Copy information from the specified data set. More...
|
| |
| virtual bool | IsInitialized () const |
| | Check whether the data has been initialized. More...
|
| |
| virtual void | Clear () |
| | Reset the data object by calling ClearData() and InitializeEmpty(). More...
|
| |
| virtual bool | IsEmptyTimeStep (unsigned int t) const |
| | Check whether the object contains data at the specified time step. More...
|
| |
| void | ExecuteOperation (Operation *operation) override |
| | Execute an operation on this data object. More...
|
| |
| virtual void | SetGeometry (BaseGeometry *aGeometry3D) |
| | Set the BaseGeometry of the data, which will be referenced (not copied!). More...
|
| |
| virtual void | SetTimeGeometry (TimeGeometry *geometry) |
| | Set the TimeGeometry of the data, which will be referenced (not copied!). More...
|
| |
| virtual void | SetClonedGeometry (const BaseGeometry *aGeometry3D) |
| | Set a clone of the provided geometry as the BaseGeometry of the data. More...
|
| |
| virtual void | SetClonedTimeGeometry (const TimeGeometry *geometry) |
| | Set a clone of the provided TimeGeometry as the TimeGeometry of the data. More...
|
| |
| virtual void | SetClonedGeometry (const BaseGeometry *aGeometry3D, unsigned int time) |
| | Set a clone of the provided geometry as the BaseGeometry of a given time step. More...
|
| |
| mitk::PropertyList::Pointer | GetPropertyList () const |
| | Get the data's property list. More...
|
| |
| void | SetPropertyList (PropertyList *propertyList) |
| | Set the data's property list, replacing the existing one. More...
|
| |
| mitk::BaseProperty::Pointer | GetProperty (const char *propertyKey) const |
| | Get a property by its key from the PropertyList. More...
|
| |
| void | SetProperty (const char *propertyKey, BaseProperty *property) |
| | Set a property in the PropertyList. More...
|
| |
| virtual void | SetOrigin (const Point3D &origin) |
| | Convenience method for setting the origin of the BaseGeometry instances of all time steps. More...
|
| |
| itk::SmartPointer< mitk::BaseDataSource > | GetSource () const |
| | Get the process object that generated this data object. More...
|
| |
| unsigned int | GetTimeSteps () const |
| | Get the number of time steps from the TimeGeometry. More...
|
| |
| itk::ModifiedTimeType | GetMTime () const override |
| | Get the modification time of this data object or its geometry, whichever was modified most recently. More...
|
| |
| void | Graft (const DataObject *) override |
| | Graft data and information from another data object. More...
|
| |
| | itkTypeMacroNoParent (OperationActor) virtual ~OperationActor() |
| |
| | Identifiable () |
| | Default constructor. Generates a new random UID. More...
|
| |
| | Identifiable (const UIDType &uid) |
| | Construct with a pre-existing UID. More...
|
| |
| | Identifiable (const Identifiable &)=delete |
| | Copy construction is deleted to prevent UID duplication. More...
|
| |
| | Identifiable (Identifiable &&) noexcept |
| | Move constructor. Transfers ownership of the UID. More...
|
| |
| virtual | ~Identifiable () |
| | Virtual destructor. More...
|
| |
| Identifiable & | operator= (const Identifiable &)=delete |
| | Copy assignment is deleted to prevent UID duplication. More...
|
| |
| Identifiable & | operator= (Identifiable &&other) noexcept |
| | Move assignment operator. Transfers ownership of the UID. More...
|
| |
| virtual UIDType | GetUID () const |
| | Get the unique identifier of this object. More...
|
| |
| UIDType | GetRuntimeUID () const noexcept |
| | Get a runtime-unique ID for this object instance. More...
|
| |
| | ~IPropertyOwner () override |
| |
| virtual bool | PropertyIsOwned (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) const |
| | Checks if a certain property exists. More...
|
| |
| virtual | ~IPropertyProvider () |
| | Virtual destructor. More...
|
| |
Abstract base class for machine learning classifiers.
This class defines a common interface for training and prediction with classifiers that operate on Eigen matrices. Derived classes must implement training, prediction, and declare whether they support sample-level weighting and probability estimation.
Features include:
- Training from feature matrix X and label vector Y
- Prediction returning class labels
- Optional per-sample weighting
- Optional per-sample class probability output
- An item list stored via the property system for configuration
- See also
- AbstractGlobalImageFeature
Definition at line 49 of file mitkAbstractClassifier.h.