Merge branch 'master' into julia-serialize

This commit is contained in:
Ryan Curtin
2020-04-22 07:44:38 -04:00
3 changed files with 6 additions and 2 deletions
+2
View File
@@ -1,5 +1,7 @@
### mlpack ?.?.?
###### ????-??-??
* Minor Julia and Python documentation fixes (#2373).
* Updated terminal state and fixed bugs for Pendulum environment (#2354, #2369).
* Added `EliSH` activation function (#2323).
@@ -475,7 +475,8 @@ inline std::string ProgramCall(const std::string& programName)
size_t nonreqInputs = 0;
for (auto it = parameters.begin(); it != parameters.end(); ++it)
{
if (it->second.input && !it->second.required)
if (it->second.input && !it->second.required &&
(it->second.name == "verbose" || !it->second.persistent))
{
if (inputs == 0 && nonreqInputs == 0)
result << " ; ";
@@ -240,7 +240,8 @@ inline std::string ProgramCall(const std::string& programName)
bool first = true;
for (auto it = parameters.begin(); it != parameters.end(); ++it)
{
if (!it->second.input || it->second.persistent)
if (!it->second.input || (it->second.persistent &&
it->second.name != "verbose"))
continue;
if (!first)