Model for "soft" clustering. More...
#include <shark/Models/Clustering/SoftClusteringModel.h>
Inheritance diagram for shark::SoftClusteringModel< InputT >:Public Member Functions | |
| SoftClusteringModel (ClusteringType *clustering) | |
| Constructor. More... | |
| std::string | name () const |
| From INameable: return the class name. More... | |
| void | eval (InputType const &pattern, OutputType &output) const |
| Compute best matching cluster. More... | |
| void | eval (BatchInputType const &patterns, BatchOutputType &outputs) const |
| Compute best matching cluster for a batch of inputs. More... | |
Public Member Functions inherited from shark::ClusteringModel< InputT, RealVector > | |
| ClusteringModel (ClusteringType *clustering) | |
| Constructor. More... | |
| RealVector | parameterVector () const |
| Redirect parameter access to the clustering object. More... | |
| void | setParameterVector (RealVector const &newParameters) |
| Redirect parameter access to the clustering object. More... | |
| std::size_t | numberOfParameters () const |
| Redirect parameter access to the clustering object. 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... | |
| 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... | |
Public Member Functions inherited from shark::AbstractModel< InputT, RealVector > | |
| AbstractModel () | |
| virtual | ~AbstractModel () |
| const Features & | features () const |
| virtual void | updateFeatures () |
| bool | hasFirstParameterDerivative () const |
| Returns true when the first parameter derivative is implemented. More... | |
| bool | hasSecondParameterDerivative () const |
| Returns true when the second parameter derivative is implemented. More... | |
| bool | hasFirstInputDerivative () const |
| Returns true when the first input derivative is implemented. More... | |
| bool | hasSecondInputDerivative () const |
| Returns true when the second parameter derivative is implemented. More... | |
| bool | isSequential () const |
| virtual boost::shared_ptr< State > | createState () const |
| Creates an internal state of the model. More... | |
| virtual void | eval (BatchInputType const &patterns, BatchOutputType &outputs) const |
| Standard interface for evaluating the response of the model to a batch of patterns. 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 &coefficients, State const &state, RealVector &derivative) const |
| calculates the weighted sum of derivatives w.r.t the parameters. More... | |
| virtual void | weightedParameterDerivative (BatchInputType const &pattern, BatchOutputType const &coefficients, Batch< RealMatrix >::type const &errorHessian, State const &state, RealVector &derivative, RealMatrix &hessian) const |
| calculates the weighted sum of derivatives w.r.t the parameters More... | |
| virtual void | weightedInputDerivative (BatchInputType const &pattern, BatchOutputType const &coefficients, State const &state, BatchInputType &derivative) const |
| calculates the weighted sum of derivatives w.r.t the inputs More... | |
| virtual void | weightedInputDerivative (BatchInputType const &pattern, BatchOutputType const &coefficients, typename Batch< RealMatrix >::type const &errorHessian, State const &state, RealMatrix &derivative, Batch< RealMatrix >::type &hessian) const |
| calculates the weighted sum of derivatives w.r.t the inputs More... | |
| virtual void | weightedDerivatives (BatchInputType const &patterns, BatchOutputType const &coefficients, State const &state, RealVector ¶meterDerivative, BatchInputType &inputDerivative) const |
| calculates weighted input and parameter derivative at the same time More... | |
Public Member Functions inherited from shark::IParameterizable | |
| virtual | ~IParameterizable () |
Public Member Functions inherited from shark::INameable | |
| virtual | ~INameable () |
Public Member Functions inherited from shark::ISerializable | |
| 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 () | |
Additional Inherited Members | |
Public Types inherited from shark::ClusteringModel< InputT, RealVector > | |
| typedef AbstractClustering< InputT > | ClusteringType |
| typedef base_type::BatchInputType | BatchInputType |
| typedef base_type::BatchOutputType | BatchOutputType |
Public Types inherited from shark::AbstractModel< InputT, RealVector > | |
| enum | Feature |
| typedef InputT | InputType |
| Defines the input type of the model. More... | |
| typedef RealVector | OutputType |
| Defines the output type of the model. More... | |
| typedef Batch< InputType >::type | BatchInputType |
| defines the batch type of the input type. More... | |
| typedef Batch< OutputType >::type | BatchOutputType |
| defines the batch type of the output type More... | |
| typedef TypedFlags< Feature > | Features |
| typedef TypedFeatureNotAvailableException< Feature > | FeatureNotAvailableException |
Protected Attributes inherited from shark::ClusteringModel< InputT, RealVector > | |
| ClusteringType * | mep_clustering |
| Clustering object, see class AbstractClustering. More... | |
Protected Attributes inherited from shark::AbstractModel< InputT, RealVector > | |
| Features | m_features |
Model for "soft" clustering.
Definition at line 58 of file SoftClusteringModel.h.
|
inline |
Constructor.
Definition at line 68 of file SoftClusteringModel.h.
References shark::AbstractClustering< InputT >::hasSoftMembershipFunction(), and SHARK_CHECK.
|
inlinevirtual |
Compute best matching cluster.
Reimplemented from shark::AbstractModel< InputT, RealVector >.
Definition at line 84 of file SoftClusteringModel.h.
References shark::ClusteringModel< InputT, RealVector >::mep_clustering, and shark::AbstractClustering< InputT >::softMembership().
|
inline |
Compute best matching cluster for a batch of inputs.
Definition at line 92 of file SoftClusteringModel.h.
References shark::ClusteringModel< InputT, RealVector >::mep_clustering, and shark::AbstractClustering< InputT >::softMembership().
|
inlinevirtual |
From INameable: return the class name.
Reimplemented from shark::INameable.
Definition at line 77 of file SoftClusteringModel.h.