From a97285080b0f91dfd8d613b64f39688ebaa28bbf Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Mon, 30 Sep 2024 15:38:28 -0400 Subject: [PATCH] Rename files so they are under the absurd 100-byte filename limit. --- src/mlpack/methods/decision_tree/decision_tree.hpp | 2 +- ...imension_select.hpp => mult_random_dimension_select.hpp} | 0 .../decision_tree/select_functions/select_functions.hpp | 2 +- .../{split_functions => splits}/all_categorical_split.hpp | 6 +++--- .../all_categorical_split_impl.hpp | 6 +++--- .../best_binary_categorical_split.hpp | 6 +++--- .../best_binary_categorical_split_impl.hpp | 2 +- .../best_binary_numeric_split.hpp | 6 +++--- .../best_binary_numeric_split_impl.hpp | 6 +++--- .../random_binary_numeric_split.hpp | 6 +++--- .../random_binary_numeric_split_impl.hpp | 6 +++--- .../split_functions.hpp => splits/splits.hpp} | 6 +++--- 12 files changed, 27 insertions(+), 27 deletions(-) rename src/mlpack/methods/decision_tree/select_functions/{multiple_random_dimension_select.hpp => mult_random_dimension_select.hpp} (100%) rename src/mlpack/methods/decision_tree/{split_functions => splits}/all_categorical_split.hpp (96%) rename src/mlpack/methods/decision_tree/{split_functions => splits}/all_categorical_split_impl.hpp (96%) rename src/mlpack/methods/decision_tree/{split_functions => splits}/best_binary_categorical_split.hpp (98%) rename src/mlpack/methods/decision_tree/{split_functions => splits}/best_binary_categorical_split_impl.hpp (99%) rename src/mlpack/methods/decision_tree/{split_functions => splits}/best_binary_numeric_split.hpp (97%) rename src/mlpack/methods/decision_tree/{split_functions => splits}/best_binary_numeric_split_impl.hpp (98%) rename src/mlpack/methods/decision_tree/{split_functions => splits}/random_binary_numeric_split.hpp (96%) rename src/mlpack/methods/decision_tree/{split_functions => splits}/random_binary_numeric_split_impl.hpp (97%) rename src/mlpack/methods/decision_tree/{split_functions/split_functions.hpp => splits/splits.hpp} (72%) diff --git a/src/mlpack/methods/decision_tree/decision_tree.hpp b/src/mlpack/methods/decision_tree/decision_tree.hpp index eec026c92f..24409fa2db 100644 --- a/src/mlpack/methods/decision_tree/decision_tree.hpp +++ b/src/mlpack/methods/decision_tree/decision_tree.hpp @@ -16,7 +16,7 @@ #include #include "fitness_functions/fitness_functions.hpp" -#include "split_functions/split_functions.hpp" +#include "splits/splits.hpp" #include "select_functions/select_functions.hpp" namespace mlpack { diff --git a/src/mlpack/methods/decision_tree/select_functions/multiple_random_dimension_select.hpp b/src/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp similarity index 100% rename from src/mlpack/methods/decision_tree/select_functions/multiple_random_dimension_select.hpp rename to src/mlpack/methods/decision_tree/select_functions/mult_random_dimension_select.hpp diff --git a/src/mlpack/methods/decision_tree/select_functions/select_functions.hpp b/src/mlpack/methods/decision_tree/select_functions/select_functions.hpp index e271691b8d..001a8461ac 100644 --- a/src/mlpack/methods/decision_tree/select_functions/select_functions.hpp +++ b/src/mlpack/methods/decision_tree/select_functions/select_functions.hpp @@ -13,7 +13,7 @@ #define MLPACK_METHODS_DECISION_TREE_SELECT_FUNCTIONS_SELECT_FUNCTIONS_HPP #include "all_dimension_select.hpp" -#include "multiple_random_dimension_select.hpp" +#include "mult_random_dimension_select.hpp" #include "random_dimension_select.hpp" #endif diff --git a/src/mlpack/methods/decision_tree/split_functions/all_categorical_split.hpp b/src/mlpack/methods/decision_tree/splits/all_categorical_split.hpp similarity index 96% rename from src/mlpack/methods/decision_tree/split_functions/all_categorical_split.hpp rename to src/mlpack/methods/decision_tree/splits/all_categorical_split.hpp index d9e07e6a20..e3d538f60c 100644 --- a/src/mlpack/methods/decision_tree/split_functions/all_categorical_split.hpp +++ b/src/mlpack/methods/decision_tree/splits/all_categorical_split.hpp @@ -1,5 +1,5 @@ /** - * @file methods/decision_tree/split_functions/all_categorical_split.hpp + * @file methods/decision_tree/splits/all_categorical_split.hpp * @author Ryan Curtin * * This file defines a tree splitter that split a categorical feature into all @@ -10,8 +10,8 @@ * 3-clause BSD license along with mlpack. If not, see * http://www.opensource.org/licenses/BSD-3-Clause for more information. */ -#ifndef MLPACK_METHODS_DECISION_TREE_ALL_CATEGORICAL_SPLIT_HPP -#define MLPACK_METHODS_DECISION_TREE_ALL_CATEGORICAL_SPLIT_HPP +#ifndef MLPACK_METHODS_DECISION_TREE_SPLITS_ALL_CATEGORICAL_SPLIT_HPP +#define MLPACK_METHODS_DECISION_TREE_SPLITS_ALL_CATEGORICAL_SPLIT_HPP #include diff --git a/src/mlpack/methods/decision_tree/split_functions/all_categorical_split_impl.hpp b/src/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp similarity index 96% rename from src/mlpack/methods/decision_tree/split_functions/all_categorical_split_impl.hpp rename to src/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp index 9fab1c3a8d..a5c57c0b62 100644 --- a/src/mlpack/methods/decision_tree/split_functions/all_categorical_split_impl.hpp +++ b/src/mlpack/methods/decision_tree/splits/all_categorical_split_impl.hpp @@ -1,5 +1,5 @@ /** - * @file methods/decision_tree/split_functions/all_categorical_split_impl.hpp + * @file methods/decision_tree/splits/all_categorical_split_impl.hpp * @author Ryan Curtin * * Implementation of the AllCategoricalSplit categorical split class. @@ -9,8 +9,8 @@ * 3-clause BSD license along with mlpack. If not, see * http://www.opensource.org/licenses/BSD-3-Clause for more information. */ -#ifndef MLPACK_METHODS_DECISION_TREE_ALL_CATEGORICAL_SPLIT_IMPL_HPP -#define MLPACK_METHODS_DECISION_TREE_ALL_CATEGORICAL_SPLIT_IMPL_HPP +#ifndef MLPACK_METHODS_DECISION_TREE_SPLITS_ALL_CATEGORICAL_SPLIT_IMPL_HPP +#define MLPACK_METHODS_DECISION_TREE_SPLITS_ALL_CATEGORICAL_SPLIT_IMPL_HPP namespace mlpack { diff --git a/src/mlpack/methods/decision_tree/split_functions/best_binary_categorical_split.hpp b/src/mlpack/methods/decision_tree/splits/best_binary_categorical_split.hpp similarity index 98% rename from src/mlpack/methods/decision_tree/split_functions/best_binary_categorical_split.hpp rename to src/mlpack/methods/decision_tree/splits/best_binary_categorical_split.hpp index 3060f887b1..4cd59b9003 100644 --- a/src/mlpack/methods/decision_tree/split_functions/best_binary_categorical_split.hpp +++ b/src/mlpack/methods/decision_tree/splits/best_binary_categorical_split.hpp @@ -1,5 +1,5 @@ /** - * @file methods/decision_tree/best_binary_categorical_split.hpp + * @file methods/decision_tree/splits/best_binary_categorical_split.hpp * @author Nikolay Apanasov (nikolay@apanasov.org) * * A tree splitter that finds the best binary categorical split. @@ -9,8 +9,8 @@ * 3-clause BSD license along with mlpack. If not, see * http://www.opensource.org/licenses/BSD-3-Clause for more information. */ -#ifndef MLPACK_METHODS_DECISION_TREE_BEST_BINARY_CATEGORICAL_SPLIT_HPP -#define MLPACK_METHODS_DECISION_TREE_BEST_BINARY_CATEGORICAL_SPLIT_HPP +#ifndef MLPACK_METHODS_DECISION_TREE_SPLITS_BEST_BINARY_CATEGORICAL_SPLIT_HPP +#define MLPACK_METHODS_DECISION_TREE_SPLITS_BEST_BINARY_CATEGORICAL_SPLIT_HPP #include diff --git a/src/mlpack/methods/decision_tree/split_functions/best_binary_categorical_split_impl.hpp b/src/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp similarity index 99% rename from src/mlpack/methods/decision_tree/split_functions/best_binary_categorical_split_impl.hpp rename to src/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp index bff4db1bd8..d5cd9ccd58 100644 --- a/src/mlpack/methods/decision_tree/split_functions/best_binary_categorical_split_impl.hpp +++ b/src/mlpack/methods/decision_tree/splits/best_binary_categorical_split_impl.hpp @@ -1,5 +1,5 @@ /** - * @file methods/decision_tree/split_functions/all_categorical_split_impl.hpp + * @file methods/decision_tree/splits/all_categorical_split_impl.hpp * @author Nikolay Apanasov (nikolay@apanasov.org) * * Implementation of the BestBinaryCategoricalSplit categorical split class. diff --git a/src/mlpack/methods/decision_tree/split_functions/best_binary_numeric_split.hpp b/src/mlpack/methods/decision_tree/splits/best_binary_numeric_split.hpp similarity index 97% rename from src/mlpack/methods/decision_tree/split_functions/best_binary_numeric_split.hpp rename to src/mlpack/methods/decision_tree/splits/best_binary_numeric_split.hpp index 0186ff86b8..bc1adac8f9 100644 --- a/src/mlpack/methods/decision_tree/split_functions/best_binary_numeric_split.hpp +++ b/src/mlpack/methods/decision_tree/splits/best_binary_numeric_split.hpp @@ -1,5 +1,5 @@ /** - * @file methods/decision_tree/split_functions/best_binary_numeric_split.hpp + * @file methods/decision_tree/splits/best_binary_numeric_split.hpp * @author Ryan Curtin * * A tree splitter that finds the best binary numeric split. @@ -9,8 +9,8 @@ * 3-clause BSD license along with mlpack. If not, see * http://www.opensource.org/licenses/BSD-3-Clause for more information. */ -#ifndef MLPACK_METHODS_DECISION_TREE_BEST_BINARY_NUMERIC_SPLIT_HPP -#define MLPACK_METHODS_DECISION_TREE_BEST_BINARY_NUMERIC_SPLIT_HPP +#ifndef MLPACK_METHODS_DECISION_TREE_SPLITS_BEST_BINARY_NUMERIC_SPLIT_HPP +#define MLPACK_METHODS_DECISION_TREE_SPLITS_BEST_BINARY_NUMERIC_SPLIT_HPP #include #include diff --git a/src/mlpack/methods/decision_tree/split_functions/best_binary_numeric_split_impl.hpp b/src/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp similarity index 98% rename from src/mlpack/methods/decision_tree/split_functions/best_binary_numeric_split_impl.hpp rename to src/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp index c25221f858..a5717e2347 100644 --- a/src/mlpack/methods/decision_tree/split_functions/best_binary_numeric_split_impl.hpp +++ b/src/mlpack/methods/decision_tree/splits/best_binary_numeric_split_impl.hpp @@ -1,5 +1,5 @@ /** - * @file methods/decision_tree/split_functions/best_binary_numeric_split_impl.hpp + * @file methods/decision_tree/splits/best_binary_numeric_split_impl.hpp * @author Ryan Curtin * * Implementation of strategy that finds the best binary numeric split. @@ -9,8 +9,8 @@ * 3-clause BSD license along with mlpack. If not, see * http://www.opensource.org/licenses/BSD-3-Clause for more information. */ -#ifndef MLPACK_METHODS_DECISION_TREE_BEST_BINARY_NUMERIC_SPLIT_IMPL_HPP -#define MLPACK_METHODS_DECISION_TREE_BEST_BINARY_NUMERIC_SPLIT_IMPL_HPP +#ifndef MLPACK_METHODS_DECISION_TREE_SPLITS_BEST_BINARY_NUMERIC_SPLIT_IMPL_HPP +#define MLPACK_METHODS_DECISION_TREE_SPLITS_BEST_BINARY_NUMERIC_SPLIT_IMPL_HPP namespace mlpack { diff --git a/src/mlpack/methods/decision_tree/split_functions/random_binary_numeric_split.hpp b/src/mlpack/methods/decision_tree/splits/random_binary_numeric_split.hpp similarity index 96% rename from src/mlpack/methods/decision_tree/split_functions/random_binary_numeric_split.hpp rename to src/mlpack/methods/decision_tree/splits/random_binary_numeric_split.hpp index 0726862a7e..c89f1d33d6 100644 --- a/src/mlpack/methods/decision_tree/split_functions/random_binary_numeric_split.hpp +++ b/src/mlpack/methods/decision_tree/splits/random_binary_numeric_split.hpp @@ -1,5 +1,5 @@ /** - * @file methods/decision_tree/split_functions/random_binary_numeric_split.hpp + * @file methods/decision_tree/splits/random_binary_numeric_split.hpp * @author Rishabh Garg * * A tree splitter that finds a random binary numeric split. @@ -9,8 +9,8 @@ * 3-clause BSD license along with mlpack. If not, see * http://www.opensource.org/licenses/BSD-3-Clause for more information. */ -#ifndef MLPACK_METHODS_DECISION_TREE_RANDOM_BINARY_NUMERIC_SPLIT_HPP -#define MLPACK_METHODS_DECISION_TREE_RANDOM_BINARY_NUMERIC_SPLIT_HPP +#ifndef MLPACK_METHODS_DECISION_TREE_SPLITS_RANDOM_BINARY_NUMERIC_SPLIT_HPP +#define MLPACK_METHODS_DECISION_TREE_SPLITS_RANDOM_BINARY_NUMERIC_SPLIT_HPP #include diff --git a/src/mlpack/methods/decision_tree/split_functions/random_binary_numeric_split_impl.hpp b/src/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp similarity index 97% rename from src/mlpack/methods/decision_tree/split_functions/random_binary_numeric_split_impl.hpp rename to src/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp index d89daa9706..50f3a143e6 100644 --- a/src/mlpack/methods/decision_tree/split_functions/random_binary_numeric_split_impl.hpp +++ b/src/mlpack/methods/decision_tree/splits/random_binary_numeric_split_impl.hpp @@ -1,5 +1,5 @@ /** - * @file methods/decision_tree/split_functions/random_binary_numeric_split_impl.hpp + * @file methods/decision_tree/splits/random_binary_numeric_split_impl.hpp * @author Rishabh Garg * * Implementation of strategy that finds the random binary numeric split. @@ -9,8 +9,8 @@ * 3-clause BSD license along with mlpack. If not, see * http://www.opensource.org/licenses/BSD-3-Clause for more information. */ -#ifndef MLPACK_METHODS_DECISION_TREE_RANDOM_BINARY_NUMERIC_SPLIT_IMPL_HPP -#define MLPACK_METHODS_DECISION_TREE_RANDOM_BINARY_NUMERIC_SPLIT_IMPL_HPP +#ifndef MLPACK_METHODS_DECISION_TREE_SPLITS_RANDOM_BINARY_NUMERIC_SPLIT_IMPL_HPP +#define MLPACK_METHODS_DECISION_TREE_SPLITS_RANDOM_BINARY_NUMERIC_SPLIT_IMPL_HPP #include diff --git a/src/mlpack/methods/decision_tree/split_functions/split_functions.hpp b/src/mlpack/methods/decision_tree/splits/splits.hpp similarity index 72% rename from src/mlpack/methods/decision_tree/split_functions/split_functions.hpp rename to src/mlpack/methods/decision_tree/splits/splits.hpp index 0bfeb2f60d..34e981af7e 100644 --- a/src/mlpack/methods/decision_tree/split_functions/split_functions.hpp +++ b/src/mlpack/methods/decision_tree/splits/splits.hpp @@ -1,5 +1,5 @@ /** - * @file methods/decision_tree/split_functions/split_functions.hpp + * @file methods/decision_tree/split_functions/splits.hpp * @author Abhimanyu Dayal * * Include all split policies for decision trees. @@ -9,8 +9,8 @@ * 3-clause BSD license along with mlpack. If not, see * http://www.opensource.org/licenses/BSD-3-Clause for more information. */ -#ifndef MLPACK_METHODS_DECISION_TREE_SPLIT_FUNCTIONS_SPLIT_FUNCTIONS_HPP -#define MLPACK_METHODS_DECISION_TREE_SPLIT_FUNCTIONS_SPLIT_FUNCTIONS_HPP +#ifndef MLPACK_METHODS_DECISION_TREE_SPLIT_FUNCTIONS_SPLITS_HPP +#define MLPACK_METHODS_DECISION_TREE_SPLIT_FUNCTIONS_SPLITS_HPP #include "all_categorical_split.hpp" #include "best_binary_numeric_split.hpp"