<commit_before>/**
 * @file radical_main.cpp
 * @author <NAME>
 *
 * Executable for RADICAL.
 */

#include <mlpack/core.hpp>
#include "radical.hpp"

PROGRAM_INFO("RADICAL", "An implementation of RADICAL, a method for independent"
    "component analysis (ICA).  Assuming that we have an input matrix X, the"
    "goal is to find a square unmixing matrix W such that Y = W * X and the "
    "dimensions of Y are independent components.");

PARAM_STRING_REQ("input_file", "Input dataset filename for ICA.", "i");

PARAM_STRING("output_ic", "File to save independent components to.", "o",
    "output_ic.csv");
PARAM_STRING("output_unmixing", "File to save unmixing matrix to.", "u",
    "output_unmixing.csv");

PARAM_DOUBLE("noise_std_dev", "Standard deviation of Gaussian noise.", "n",
    0.175);
PARAM_INT("replicates", "Number of Gaussian-perturbed replicates to use "
    "(per point) in Radical2D.", "r", 30);
PARAM_INT("angles", "Number of angles to consider in brute-force search "
    "during Radical2D.", "a", 150);<commit_msg>Clean up documentation slightly for the case of slow runs.<commit_after>/**
 * @file radical_main.cpp
 * @author <NAME>
 *
 * Executable for RADICAL.
 */

#include <mlpack/core.hpp>
#include "radical.hpp"

PROGRAM_INFO("RADICAL", "An implementation of RADICAL, a method for independent"
    "component analysis (ICA).  Assuming that we have an input matrix X, the"
    "goal is to find a square unmixing matrix W such that Y = W * X and the "
    "dimensions of Y are independent components.  If the algorithm is running"
    "particularly slowly, try reducing the number of replicates.");

PARAM_STRING_REQ("input_file", "Input dataset filename for ICA.", "i");

PARAM_STRING("output_ic", "File to save independent components to.", "o",
    "output_ic.csv");
PARAM_STRING("output_unmixing", "File to save unmixing matrix to.", "u",
    "output_unmixing.csv");

PARAM_DOUBLE("noise_std_dev", "Standard deviation of Gaussian noise.", "n",
    0.175);
PARAM_INT("replicates", "Number of Gaussian-perturbed replicates to use "
    "(per point) in Radical2D.", "r", 30);
PARAM_INT("angles", "Number of angles to consider in brute-force search "
    "during Radical2D.", "a", 150);
{'fraction_non_alphanumeric': 0.12974683544303797, 'fraction_numerical': 0.009945750452079566, 'mean_word_length': 4.5049751243781095, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '242445', 'n_tokens_mistral': 716, 'n_tokens_neox': 673, 'n_words': 249}