Commit b57f7046 authored by Jean-Baptiste Mouret's avatar Jean-Baptiste Mouret
Browse files

[ci skip] add a new load/save with a simpler api

parent bbd32929
......@@ -418,6 +418,13 @@ namespace limbo {
bool inv_kernel_computed() { return _inv_kernel_updated; }
/// TODO
template <typename A>
void save(const std::string& directory){
A archive(directory);
save(archive);
}
/// save the parameters and the data for the GP to the archive (text or binary)
template <typename A>
void save(A& archive)
......@@ -429,6 +436,13 @@ namespace limbo {
archive.save(_observations, "observations");
}
/// TODO
template<typename A>
void load(const std::string& directory){
A archive(directory);
load(archive);
}
/// load the parameters and the data for the GP from the archive (text or binary)
template <typename A>
void load(A& archive)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment