diff --git a/CHANGELOG.md b/CHANGELOG.md index c899645..7df00ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.1] 2024-12-13 + +- Added a new parameter `quiet` to enable/disable the warning messages in the Stratified K-Fold partitioning. Default value `true`. + ## [1.1.0] 2024-05-11 ### Fixed diff --git a/CMakeLists.txt b/CMakeLists.txt index cba1f1e..fa57206 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,6 @@ cmake_minimum_required(VERSION 3.20) project(Folding - VERSION 1.1.0 DESCRIPTION "Folding utility for BayesNet library" HOMEPAGE_URL "https://github.com/rmontanana/folding" LANGUAGES CXX @@ -33,7 +32,6 @@ include(AddGitSubmodule) # Subdirectories # -------------- -add_subdirectory(config) # Testing # ------- diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt deleted file mode 100644 index 09fd480..0000000 --- a/config/CMakeLists.txt +++ /dev/null @@ -1,4 +0,0 @@ -configure_file( - "config.h.in" - "${CMAKE_BINARY_DIR}/configured_files/include/folding_config.h" ESCAPE_QUOTES -) diff --git a/config/config.h.in b/config/config.h.in deleted file mode 100644 index 26937cf..0000000 --- a/config/config.h.in +++ /dev/null @@ -1,14 +0,0 @@ -#pragma once - -#include -#include - -#define PROJECT_VERSION_MAJOR @PROJECT_VERSION_MAJOR @ -#define PROJECT_VERSION_MINOR @PROJECT_VERSION_MINOR @ -#define PROJECT_VERSION_PATCH @PROJECT_VERSION_PATCH @ - -static constexpr std::string_view folding_project_name = "@PROJECT_NAME@"; -static constexpr std::string_view folding_project_version = "@PROJECT_VERSION@"; -static constexpr std::string_view folding_project_description = "@PROJECT_DESCRIPTION@"; -static constexpr std::string_view folding_data_path = "@Folding_SOURCE_DIR@/tests/data/"; -static constexpr std::string_view folding_csv_path = "@Folding_SOURCE_DIR@/tests/csv/"; diff --git a/folding.hpp b/folding.hpp index b0b40b2..2beba68 100644 --- a/folding.hpp +++ b/folding.hpp @@ -59,7 +59,7 @@ namespace folding { }; class StratifiedKFold : public Fold { public: - inline StratifiedKFold(int k, const std::vector& y, int seed = -1) : Fold(k, y.size(), seed) + inline StratifiedKFold(int k, const std::vector& y, int seed = -1, bool quiet = true) : Fold(k, y.size(), seed) { this->y = y; n = y.size(); diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7a72841..18f0c54 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -3,7 +3,6 @@ if(ENABLE_TESTING) ${Folding_SOURCE_DIR} lib/Files lib/mdlp - ${CMAKE_BINARY_DIR}/configured_files/include ) set(TEST_FOLDING "unit_tests_folding") add_executable(${TEST_FOLDING} TestFolding.cc TestUtils.cc)