Add parameter quiet to Stratified KFold

Remove cmake config as it is not used
This commit is contained in:
2024-12-13 12:58:17 +01:00
parent 2ac43e32ac
commit deba2a9011
6 changed files with 5 additions and 22 deletions

View File

@@ -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

View File

@@ -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
# -------

View File

@@ -1,4 +0,0 @@
configure_file(
"config.h.in"
"${CMAKE_BINARY_DIR}/configured_files/include/folding_config.h" ESCAPE_QUOTES
)

View File

@@ -1,14 +0,0 @@
#pragma once
#include <string>
#include <string_view>
#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/";

View File

@@ -59,7 +59,7 @@ namespace folding {
};
class StratifiedKFold : public Fold {
public:
inline StratifiedKFold(int k, const std::vector<int>& y, int seed = -1) : Fold(k, y.size(), seed)
inline StratifiedKFold(int k, const std::vector<int>& y, int seed = -1, bool quiet = true) : Fold(k, y.size(), seed)
{
this->y = y;
n = y.size();

View File

@@ -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)