mlpack Namespace Reference

Linear algebra utility functions, generally performed on matrices or vectors. More...

Namespaces

 adaboost
 
 amf
 
Alternating Matrix Factorization.
 
 ann
 
Artificial Neural Network.
 
 bindings
 
 bound
 
 cf
 
Collaborative filtering.
 
 cv
 
 data
 
Functions to load and save matrices and models.
 
 dbscan
 
 decision_stump
 
 det
 
Density Estimation Trees.
 
 distribution
 
Probability distributions.
 
 emst
 
Euclidean Minimum Spanning Trees.
 
 fastmks
 
Fast max-kernel search.
 
 gmm
 
Gaussian Mixture Models.
 
 hmm
 
Hidden Markov Models.
 
 hpt
 
 kde
 
Kernel Density Estimation.
 
 kernel
 
Kernel functions.
 
 kmeans
 
K-Means clustering.
 
 kpca
 
 lcc
 
 lmnn
 
Large Margin Nearest Neighbor.
 
 math
 
Miscellaneous math routines.
 
 matrix_completion
 
 meanshift
 
Mean shift clustering.
 
 metric
 
 mvu
 
 naive_bayes
 
The Naive Bayes Classifier.
 
 nca
 
Neighborhood Components Analysis.
 
 neighbor
 
 nn
 
 pca
 
 perceptron
 
 radical
 
 range
 
Range-search routines.
 
 regression
 
Regression methods.
 
 rl
 
 sfinae
 
 sparse_coding
 
 svd
 
 svm
 
 tree
 
Trees and tree-building procedures.
 
 util
 

Classes

class  Backtrace
 Provides a backtrace. More...

 
class  IO
 Parses the command line for parameters and holds user-specified parameters. More...

 
class  Log
 Provides a convenient way to give formatted output. More...

 
class  Timer
 The timer class provides a way for mlpack methods to be timed. More...

 
class  Timers
 

Functions

void CheckMatrices (const arma::mat &x, const arma::mat &xmlX, const arma::mat &textX, const arma::mat &binaryX)
 
void CheckMatrices (const arma::Mat< size_t > &x, const arma::Mat< size_t > &xmlX, const arma::Mat< size_t > &textX, const arma::Mat< size_t > &binaryX)
 
void CheckMatrices (const arma::cube &x, const arma::cube &xmlX, const arma::cube &textX, const arma::cube &binaryX)
 
template
T::elem_type * GetMemory (T &m)
 Return the matrix's allocated memory pointer, unless the matrix is using its internal preallocated memory, in which case we copy that and return a pointer to the memory we just made. More...

 
template
void SerializeObject (T &t, T &newT)
 
template
void SerializeObjectAll (T &t, T &xmlT, T &textT, T &binaryT)
 
template
void SerializePointerObject (T *t, T *&newT)
 
template
void SerializePointerObjectAll (T *t, T *&xmlT, T *&textT, T *&binaryT)
 
template
void TestAllArmadilloSerialization (arma::Cube< CubeType > &x)
 
template
void TestAllArmadilloSerialization (MatType &x)
 
template
void TestArmadilloSerialization (arma::Cube< CubeType > &x)
 
template
void TestArmadilloSerialization (MatType &x)
 

Detailed Description

Linear algebra utility functions, generally performed on matrices or vectors.

This class is used to update the weightVectors matrix according to the simple update rule as discussed by Rosenblatt:

if a vector x has been incorrectly classified by a weight w, then w = w - x and w'= w'+ x

where w' is the weight vector which correctly classifies x.

Function Documentation

◆ CheckMatrices() [1/3]

void CheckMatrices ( const arma::mat &  x,
const arma::mat &  xmlX,
const arma::mat &  textX,
const arma::mat &  binaryX 
)

◆ CheckMatrices() [2/3]

void CheckMatrices ( const arma::Mat< size_t > &  x,
const arma::Mat< size_t > &  xmlX,
const arma::Mat< size_t > &  textX,
const arma::Mat< size_t > &  binaryX 
)

◆ CheckMatrices() [3/3]

void CheckMatrices ( const arma::cube &  x,
const arma::cube &  xmlX,
const arma::cube &  textX,
const arma::cube &  binaryX 
)

◆ GetMemory()

T::elem_type* mlpack::GetMemory ( T &  m)
inline

Return the matrix's allocated memory pointer, unless the matrix is using its internal preallocated memory, in which case we copy that and return a pointer to the memory we just made.

Definition at line 27 of file arma_util.hpp.

◆ SerializeObject()

void SerializeObject ( T &  t,
T &  newT 
)

◆ SerializeObjectAll()

void SerializeObjectAll ( T &  t,
T &  xmlT,
T &  textT,
T &  binaryT 
)

Definition at line 240 of file serialization.hpp.

References SerializeObject().

◆ SerializePointerObject()

void SerializePointerObject ( T *  t,
T *&  newT 
)

Definition at line 252 of file serialization.hpp.

References mlpack::data::binary, FilterFileName(), and MLPACK_COUT_STREAM.

Referenced by SerializePointerObjectAll().

◆ SerializePointerObjectAll()

void SerializePointerObjectAll ( T *  t,
T *&  xmlT,
T *&  textT,
T *&  binaryT 
)

Definition at line 297 of file serialization.hpp.

References CheckMatrices(), and SerializePointerObject().

◆ TestAllArmadilloSerialization() [1/2]

void TestAllArmadilloSerialization ( arma::Cube< CubeType > &  x)

Definition at line 106 of file serialization.hpp.

References TestArmadilloSerialization().

◆ TestAllArmadilloSerialization() [2/2]

void TestAllArmadilloSerialization ( MatType &  x)

Definition at line 180 of file serialization.hpp.

References TestArmadilloSerialization().

◆ TestArmadilloSerialization() [1/2]

void TestArmadilloSerialization ( arma::Cube< CubeType > &  x)

Definition at line 33 of file serialization.hpp.

References mlpack::data::binary, and FilterFileName().

Referenced by TestAllArmadilloSerialization().

◆ TestArmadilloSerialization() [2/2]

void TestArmadilloSerialization ( MatType &  x)

Definition at line 120 of file serialization.hpp.

References mlpack::data::binary, and FilterFileName().