print_doc_functions.hpp File Reference
Include dependency graph for print_doc_functions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mlpack
 
Linear algebra utility functions, generally performed on matrices or vectors.
 
 mlpack::bindings
 
 mlpack::bindings::python
 

Functions

template<typename... Args>
std::string CallMethod (const std::string &bindingName, const std::string &objectName, const std::string &methodName, Args... args)
 
template<typename... Args>
std::string CreateObject (const std::string &bindingName, const std::string &objectName, const std::string &groupName, Args... args)
 
std::string CreateObject (const std::string &bindingName, const std::string &objectName, const std::string &groupName)
 
std::string GetBindingName (const std::string &bindingName)
 Given the name of a binding, print its Python name. More...

 
std::string GetDataset (const std::string &datasetName, const std::string &url)
 
bool IgnoreCheck (const std::string &bindingName, const std::string &paramName)
 Print whether or not we should ignore a check on the given parameter. More...

 
bool IgnoreCheck (const std::string &bindingName, const std::vector< std::string > &constraints)
 Print whether or not we should ignore a check on the given set of constraints. More...

 
bool IgnoreCheck (const std::string &bindingName, const std::vector< std::pair< std::string, bool >> &constraints, const std::string &paramName)
 Print whether or not we should ignore a check on the given set of constraints. More...

 
std::string ImportExtLib ()
 
std::string ImportSplit ()
 
std::string ImportThis (const std::string &groupName)
 
std::string ParamString (const std::string &paramName)
 Given the parameter name, determine what it would actually be when passed to the command line. More...

 
std::string PrintDataset (const std::string &datasetName)
 Given the name of a matrix, print it. More...

 
std::string PrintDefault (const std::string &bindingName, const std::string &paramName)
 Given a parameter name, print its corresponding default value. More...

 
std::string PrintImport (const std::string &bindingName)
 Print any import information for the Python binding. More...

 
std::string PrintInputOptionInfo ()
 Print any special information about input options. More...

 
std::string PrintInputOptions (util::Params &params, bool onlyHyperParams, bool onlyMatrixParams)
 
template<typename T , typename... Args>
std::string PrintInputOptions (util::Params &params, bool onlyHyperParams, bool onlyMatrixParams, const std::string &paramName, const T &value, Args... args)
 Print an input option. More...

 
std::string PrintModel (const std::string &modelName)
 Given the name of a model, print it. More...

 
std::string PrintOutputOptionInfo ()
 Print any special information about output options. More...

 
std::string PrintOutputOptions (util::Params &params)
 
template<typename T , typename... Args>
std::string PrintOutputOptions (util::Params &params, const std::string &paramName, const T &value, Args... args)
 
template
<
typename
T
>
std::string PrintValue (const T &value, bool quotes)
 Given a parameter type, print the corresponding value. More...

 
template
<
>
std::string PrintValue (const bool &value, bool quotes)
 
template<typename... Args>
std::string ProgramCall (const std::string &programName, Args... args)
 Given a name of a binding and a variable number of arguments (and their contents), print the corresponding function call. More...

 
std::string ProgramCall (util::Params &p, const std::string &programName)
 Given the name of a binding, print a program call assuming that all options are specified. More...

 
std::string SplitTrainTest (const std::string &datasetName, const std::string &labelName, const std::string &trainDataset, const std::string &trainLabels, const std::string &testDataset, const std::string &testLabels, const std::string &splitRatio)
 

Detailed Description

Author
Ryan Curtin

This file contains functions useful for printing documentation strings related to Python bindings.

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.

Definition in file print_doc_functions.hpp.