Skip to content

Commit

Permalink
Add simple doc for watch_param
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Jan 3, 2018
1 parent dd97dba commit ee3aa74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/shogun/base/SGObject.h
Expand Up @@ -489,6 +489,12 @@ class CSGObject
create_parameter(tag, AnyParameter(erase_type(value)));
}

/** Puts a pointer to some parameter into the parameter map.
*
* @param name name of the parameter
* @param value pointer to the parameter value
* @param properties properties of the parameter (e.g. if model selection is supported)
*/
template <typename T>
void watch_param(
const std::string& name, T* value, AnyParameterProperties properties)
Expand Down

0 comments on commit ee3aa74

Please sign in to comment.