#include <chain_interface.hpp>
Definition at line 377 of file chain_interface.hpp.
Constructs an embedding using the data represented by the feature matrix. Uses linear kernel (dot product) and euclidean distance.
- Parameters
-
matrix | matrix that contains feature vectors column-wise |
Definition at line 423 of file chain_interface.hpp.
Sets distance callback.
- Parameters
-
callback | a callback that implements the distance( const RandomAccessIterator::value_type&, const RandomAccessIterator::value_type&)
member function which is used to compute distance (dissimilarity) between two objects pointed by the first and the second arguments. |
Definition at line 403 of file chain_interface.hpp.
Sets features callback.
- Parameters
-
callback | a callback that implements the vector( const RandomAccessIterator::value_type&, DenseVector&)
member function which is used to obtain the feature vector pointed by the first argument. |
Definition at line 414 of file chain_interface.hpp.
Sets kernel callback.
- Parameters
-
callback | a callback that implements the kernel(const RandomAccessIterator::value_type&, const RandomAccessIterator::value_type&)
member function which is used to compute kernel value (similarity) between two objects pointed by the first and the second arguments. |
Definition at line 392 of file chain_interface.hpp.
The documentation for this class was generated from the following file: