diff --git a/src/mlpack/methods/det/det_main.cpp b/src/mlpack/methods/det/det_main.cpp index 94dc943d5a..f79c78bdf3 100644 --- a/src/mlpack/methods/det/det_main.cpp +++ b/src/mlpack/methods/det/det_main.cpp @@ -108,9 +108,9 @@ int main(int argc, char *argv[]) // Compute densities for the training points in the optimal tree. FILE *fp = NULL; - if (CLI::GetParam("training_set_estimate_file") != "") + if (CLI::GetParam("training_set_estimates_file") != "") { - fp = fopen(CLI::GetParam("training_set_estimate_file").c_str(), + fp = fopen(CLI::GetParam("training_set_estimates_file").c_str(), "w"); // Compute density estimates for each point in the training set.