mlpack
Classes | Functions
serialization_test.cpp File Reference
#include <mlpack/core.hpp>
#include <mlpack/methods/ann/layer/layer.hpp>
#include <mlpack/methods/ann/layer/layer_types.hpp>
#include <mlpack/methods/ann/init_rules/random_init.hpp>
#include <mlpack/methods/ann/ffn.hpp>
#include "catch.hpp"
#include "serialization.hpp"
#include <mlpack/core/dists/regression_distribution.hpp>
#include <mlpack/core/tree/ballbound.hpp>
#include <mlpack/core/tree/hrectbound.hpp>
#include <mlpack/core/metrics/mahalanobis_distance.hpp>
#include <mlpack/core/tree/binary_space_tree.hpp>
#include <mlpack/methods/hoeffding_trees/hoeffding_tree.hpp>
#include <mlpack/core/tree/cover_tree.hpp>
#include <mlpack/core/tree/rectangle_tree.hpp>
#include <mlpack/methods/perceptron/perceptron.hpp>
#include <mlpack/methods/logistic_regression/logistic_regression.hpp>
#include <mlpack/methods/neighbor_search/neighbor_search.hpp>
#include <mlpack/methods/softmax_regression/softmax_regression.hpp>
#include <mlpack/methods/det/dtree.hpp>
#include <mlpack/methods/naive_bayes/naive_bayes_classifier.hpp>
#include <mlpack/methods/rann/ra_search.hpp>
#include <mlpack/methods/lsh/lsh_search.hpp>
#include <mlpack/methods/lars/lars.hpp>
#include <mlpack/methods/bayesian_linear_regression/bayesian_linear_regression.hpp>
#include <mlpack/methods/ann/rbm/rbm.hpp>
#include <mlpack/methods/ann/init_rules/gaussian_init.hpp>
Include dependency graph for serialization_test.cpp:

Classes

class  TestStruct
 Test the cereal array wrapper on an empty array. More...
 

Functions

 TEST_CASE ("CubeSerializeTest", "[SerializationTest]")
 Serialize a random cube.
 
 TEST_CASE ("EmptyCubeSerializeTest", "[SerializationTest]")
 Serialize an empty cube.
 
 TEST_CASE ("MatrixSerializeXMLTest", "[SerializationTest]")
 Can we load and save an Armadillo matrix?
 
 TEST_CASE ("ColSerializeTest", "[SerializationTest]")
 How about columns?
 
 TEST_CASE ("RowSerializeTest", "[SerializationTest]")
 How about rows?
 
 TEST_CASE ("EmptyMatrixSerializeTest", "[SerializationTest]")
 
 TEST_CASE ("SparseMatrixSerializeTest", "[SerializationTest]")
 Can we load and save a sparse Armadillo matrix?
 
 TEST_CASE ("SparseColSerializeTest", "[SerializationTest]")
 How about columns?
 
 TEST_CASE ("SparseRowSerializeTest", "[SerializationTest]")
 How about rows?
 
 TEST_CASE ("EmptySparseMatrixSerializeTest", "[SerializationTest]")
 
 TEST_CASE ("BallBoundTest", "[SerializationTest]")
 
 TEST_CASE ("MahalanobisBallBoundTest", "[SerializationTest]")
 
 TEST_CASE ("HRectBoundTest", "[SerializationTest]")
 
template<typename TreeType >
void CheckTrees (TreeType &tree, TreeType &xmlTree, TreeType &jsonTree, TreeType &binaryTree)
 
 TEST_CASE ("BinarySpaceTreeTest", "[SerializationTest]")
 
 TEST_CASE ("BinarySpaceTreeOverwriteTest", "[SerializationTest]")
 
 TEST_CASE ("CoverTreeTest", "[SerializationTest]")
 
 TEST_CASE ("CoverTreeOverwriteTest", "[SerializationTest]")
 
 TEST_CASE ("RectangleTreeTest", "[SerializationTest]")
 
 TEST_CASE ("RectangleTreeOverwriteTest", "[SerializationTest]")
 
 TEST_CASE ("PerceptronTest", "[SerializationTest]")
 
 TEST_CASE ("LogisticRegressionTest", "[SerializationTest]")
 
 TEST_CASE ("KNNTest", "[SerializationTest]")
 
 TEST_CASE ("SoftmaxRegressionTest", "[SerializationTest]")
 
 TEST_CASE ("DETTest", "[SerializationTest]")
 
 TEST_CASE ("NaiveBayesSerializationTest", "[SerializationTest]")
 
 TEST_CASE ("RASearchTest", "[SerializationTest]")
 
 TEST_CASE ("LSHTest", "[SerializationTest]")
 Test that an LSH model can be serialized and deserialized.
 
 TEST_CASE ("LARSTest", "[SerializationTest]")
 
 TEST_CASE ("HoeffdingNumericSplitTest", "[SerializationTest]")
 Test serialization of the HoeffdingNumericSplit object after binning has occured.
 
 TEST_CASE ("HoeffdingNumericSplitBeforeBinningTest", "[SerializationTest]")
 Make sure serialization of the HoeffdingNumericSplit object before binning occurs is successful.
 
 TEST_CASE ("HoeffdingCategoricalSplitTest", "[SerializationTest]")
 Make sure the HoeffdingCategoricalSplit object serializes correctly.
 
 TEST_CASE ("HoeffdingTreeBeforeSplitTest", "[SerializationTest]")
 Make sure the HoeffdingTree object serializes correctly before a split has occured.
 
 TEST_CASE ("HoeffdingTreeAfterSplitTest", "[SerializationTest]")
 Make sure the HoeffdingTree object serializes correctly after a split has occurred.
 
 TEST_CASE ("EmptyHoeffdingTreeTest", "[SerializationTest]")
 
 TEST_CASE ("HoeffdingTreeTest", "[SerializationTest]")
 Build a Hoeffding tree, then save it and make sure other trees can classify as effectively.
 
 TEST_CASE ("BinaryRBMTest", "[SerializationTest]")
 Build a Binary RBM, then save it and make sure the parameters of the all the RBM are equal.
 
 TEST_CASE ("ssRBMTest", "[SerializationTest]")
 Build a ssRBM, then save it and make sure the parameters of the all the RBM are equal.
 
 TEST_CASE ("BayesianLinearRegressionTest", "[SerializationTest]")
 
 TEST_CASE ("CerealEmptyArrayWrapperTest", "[SerializationTest]")
 

Detailed Description

Author
Ryan Curtin

Test serialization of mlpack objects.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.