Abstracts serializing functionality. More...
#include <shark/Core/ISerializable.h>
Public Member Functions | |
virtual | ~ISerializable () |
Virtual d'tor. More... | |
virtual void | read (InArchive &archive) |
Read the component from the supplied archive. More... | |
virtual void | write (OutArchive &archive) const |
Write the component to the supplied archive. 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 () | |
Abstracts serializing functionality.
In order to integrate alien serialization libraries with the components based on this interface, the classes boost::archive::polymorphic_iarchive and boost::archive::polymorphic_oarchive need to be implemented in terms of alien serialization library.
Definition at line 91 of file ISerializable.h.
|
inlinevirtual |
Virtual d'tor.
Definition at line 96 of file ISerializable.h.
shark::ISerializable::BOOST_SERIALIZATION_SPLIT_MEMBER | ( | ) |
Referenced by save().
|
inline |
Versioned loading of components, calls read(...).
Definition at line 115 of file ISerializable.h.
References read().
|
inlinevirtual |
Read the component from the supplied archive.
[in,out] | archive | The archive to read from. |
Reimplemented in shark::LabeledData< InputT, LabelT >, shark::LabeledData< InputType, unsigned int >, shark::LabeledData< InputType, LabelType >, shark::PointSearch, shark::FFNet< HiddenNeuron, OutputNeuron >, shark::ConcatenatedModel< InputType, OutputType >, shark::NestedGridSearch, shark::IRpropPlusFull, shark::IRpropPlus, shark::ConvolutionalRBM< VisibleLayerT, HiddenLayerT, RngT >, shark::BinaryLayer, shark::WeightedSumKernel< InputType >, shark::BipolarLayer, shark::PolynomialKernel< InputType >, shark::Autoencoder< HiddenNeuron, OutputNeuron >, shark::GaussianLayer, shark::TruncatedExponentialLayer, shark::TiedAutoencoder< HiddenNeuron, OutputNeuron >, shark::RBM< VisibleLayerT, HiddenLayerT, RngT >, shark::RpropPlus, shark::KernelExpansion< InputType >, shark::KernelExpansion< RealVector >, shark::Data< Type >, shark::Data< RealVector >, shark::Data< LabelType >, shark::Data< InputT >, shark::Data< unsigned int >, shark::Data< InputType >, shark::Data< LabelT >, shark::ARDKernelUnconstrained< InputType >, shark::Normalizer< DataType >, shark::ArgMaxConverter< Model >, shark::ArgMaxConverter< LinearModel< VectorType > >, shark::ArgMaxConverter< KernelExpansion< InputType > >, shark::LinearModel< InputType >, shark::LinearModel< VectorType >, shark::CSvmDerivative< InputType, CacheType >, shark::GridSearch, shark::OneVersusOneClassifier< InputType >, shark::ConvexCombination, shark::CARTClassifier< LabelType >, shark::CARTClassifier< RealVector >, shark::MonomialKernel< InputType >, shark::SoftNearestNeighborClassifier< InputType >, shark::AbstractClustering< InputT >, shark::AbstractClustering< RealVector >, shark::NearestNeighborRegression< InputType >, shark::RBFLayer, shark::ProductKernel< InputType >, shark::NearestNeighborClassifier< InputType >, shark::RecurrentStructure, shark::AbstractModel< InputTypeT, OutputTypeT >, shark::AbstractModel< InputType, RealVector >, shark::AbstractModel< CARTClassifier< RealVector > ::InputType, CARTClassifier< RealVector > ::OutputType >, shark::AbstractModel< Model::InputType, unsigned int >, shark::AbstractModel< Sequence, Sequence >, shark::AbstractModel< InputT, OutputT >, shark::AbstractModel< DataType, DataType >, shark::AbstractModel< InputType, unsigned int >, shark::AbstractModel< RealVector, unsigned int >, shark::AbstractModel< RealVector, RealVector >, shark::AbstractModel< InputType, OutputType >, shark::AbstractModel< ModelType::InputType, ModelType::OutputType >, shark::AbstractModel< KernelExpansion< InputType > ::InputType, unsigned int >, shark::AbstractModel< LinearModel< VectorType > ::InputType, unsigned int >, shark::AbstractModel< RealVector, LabelType >, shark::AbstractModel< VectorType, RealVector >, shark::AbstractModel< InputT, RealVector >, shark::AbstractModel< InputT, unsigned int >, shark::CMACMap, shark::ScaledKernel< InputType >, shark::CrossEntropyMethod, shark::DiscreteKernel, shark::SigmoidModel, shark::GaussianRbfKernel< InputType >, shark::LinearKernel< InputType >, shark::RpropMinus, shark::Softmax, shark::TypedFlags< Flag >, shark::TypedFlags< Feature >, shark::LineSearch, shark::Centroids, shark::IndicatorBasedRealCodedNSGAII< Indicator >, shark::CMA, shark::SteepestDescent, shark::CMSA, shark::IndicatorBasedMOCMA< Indicator >, shark::IndicatorBasedSteadyStateMOCMA< Indicator >, shark::SMSEMOA, shark::OptimizationTrainer< Model, LabelTypeT >, shark::LinearNorm, shark::AbstractLineSearchOptimizer, shark::ElitistCMA, shark::MeanModel< ModelType >, shark::MeanModel< CARTClassifier< RealVector > >, shark::ClusteringModel< InputT, OutputT >, shark::ClusteringModel< InputT, RealVector >, shark::ClusteringModel< InputT, unsigned int >, shark::SimplexDownhill, shark::LBFGS, shark::CG, shark::MultiTaskSample< InputTypeT >, shark::AbstractMetric< InputTypeT >, shark::AbstractMetric< std::size_t >, shark::AbstractMetric< InputType >, and shark::BFGS.
Definition at line 102 of file ISerializable.h.
Referenced by load().
|
inline |
Versioned storing of components, calls write(...).
Definition at line 124 of file ISerializable.h.
References BOOST_SERIALIZATION_SPLIT_MEMBER(), and write().
|
inlinevirtual |
Write the component to the supplied archive.
[in,out] | archive | The archive to write to. |
Reimplemented in shark::LabeledData< InputT, LabelT >, shark::LabeledData< InputType, unsigned int >, shark::LabeledData< InputType, LabelType >, shark::PointSearch, shark::FFNet< HiddenNeuron, OutputNeuron >, shark::ConcatenatedModel< InputType, OutputType >, shark::NestedGridSearch, shark::IRpropPlusFull, shark::IRpropPlus, shark::ConvolutionalRBM< VisibleLayerT, HiddenLayerT, RngT >, shark::BinaryLayer, shark::WeightedSumKernel< InputType >, shark::BipolarLayer, shark::Autoencoder< HiddenNeuron, OutputNeuron >, shark::PolynomialKernel< InputType >, shark::RBM< VisibleLayerT, HiddenLayerT, RngT >, shark::TiedAutoencoder< HiddenNeuron, OutputNeuron >, shark::GaussianLayer, shark::TruncatedExponentialLayer, shark::KernelExpansion< InputType >, shark::KernelExpansion< RealVector >, shark::RpropPlus, shark::Data< Type >, shark::Data< RealVector >, shark::Data< LabelType >, shark::Data< InputT >, shark::Data< unsigned int >, shark::Data< InputType >, shark::Data< LabelT >, shark::ModelKernel< InputType >, shark::ARDKernelUnconstrained< InputType >, shark::Normalizer< DataType >, shark::ArgMaxConverter< Model >, shark::ArgMaxConverter< LinearModel< VectorType > >, shark::ArgMaxConverter< KernelExpansion< InputType > >, shark::LinearModel< InputType >, shark::LinearModel< VectorType >, shark::CSvmDerivative< InputType, CacheType >, shark::GridSearch, shark::OneVersusOneClassifier< InputType >, shark::ConvexCombination, shark::CARTClassifier< LabelType >, shark::CARTClassifier< RealVector >, shark::MonomialKernel< InputType >, shark::SoftNearestNeighborClassifier< InputType >, shark::AbstractClustering< InputT >, shark::AbstractClustering< RealVector >, shark::ProductKernel< InputType >, shark::NearestNeighborRegression< InputType >, shark::NearestNeighborClassifier< InputType >, shark::RBFLayer, shark::AbstractModel< InputTypeT, OutputTypeT >, shark::RecurrentStructure, shark::AbstractModel< InputType, RealVector >, shark::AbstractModel< CARTClassifier< RealVector > ::InputType, CARTClassifier< RealVector > ::OutputType >, shark::AbstractModel< Model::InputType, unsigned int >, shark::AbstractModel< Sequence, Sequence >, shark::AbstractModel< InputT, OutputT >, shark::AbstractModel< DataType, DataType >, shark::AbstractModel< InputType, unsigned int >, shark::AbstractModel< RealVector, unsigned int >, shark::AbstractModel< RealVector, RealVector >, shark::AbstractModel< InputType, OutputType >, shark::AbstractModel< ModelType::InputType, ModelType::OutputType >, shark::AbstractModel< KernelExpansion< InputType > ::InputType, unsigned int >, shark::AbstractModel< LinearModel< VectorType > ::InputType, unsigned int >, shark::AbstractModel< RealVector, LabelType >, shark::AbstractModel< VectorType, RealVector >, shark::AbstractModel< InputT, RealVector >, shark::AbstractModel< InputT, unsigned int >, shark::ScaledKernel< InputType >, shark::CMACMap, shark::CrossEntropyMethod, shark::DiscreteKernel, shark::GaussianRbfKernel< InputType >, shark::SigmoidModel, shark::LinearKernel< InputType >, shark::Softmax, shark::RpropMinus, shark::LineSearch, shark::IndicatorBasedRealCodedNSGAII< Indicator >, shark::TypedFlags< Flag >, shark::TypedFlags< Feature >, shark::Centroids, shark::IndicatorBasedMOCMA< Indicator >, shark::SteepestDescent, shark::IndicatorBasedSteadyStateMOCMA< Indicator >, shark::SMSEMOA, shark::CMA, shark::CMSA, shark::OptimizationTrainer< Model, LabelTypeT >, shark::LinearNorm, shark::MeanModel< ModelType >, shark::MeanModel< CARTClassifier< RealVector > >, shark::AbstractLineSearchOptimizer, shark::ClusteringModel< InputT, OutputT >, shark::ClusteringModel< InputT, RealVector >, shark::ClusteringModel< InputT, unsigned int >, shark::ElitistCMA, shark::SimplexDownhill, shark::LBFGS, shark::AbstractMetric< InputTypeT >, shark::MultiTaskSample< InputTypeT >, shark::AbstractMetric< std::size_t >, shark::AbstractMetric< InputType >, shark::CG, and shark::BFGS.
Definition at line 109 of file ISerializable.h.
Referenced by save().