Add parameter quiet to Stratified KFold
Remove cmake config as it is not used
This commit is contained in:
@@ -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/),
|
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).
|
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
|
## [1.1.0] 2024-05-11
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
cmake_minimum_required(VERSION 3.20)
|
cmake_minimum_required(VERSION 3.20)
|
||||||
|
|
||||||
project(Folding
|
project(Folding
|
||||||
VERSION 1.1.0
|
|
||||||
DESCRIPTION "Folding utility for BayesNet library"
|
DESCRIPTION "Folding utility for BayesNet library"
|
||||||
HOMEPAGE_URL "https://github.com/rmontanana/folding"
|
HOMEPAGE_URL "https://github.com/rmontanana/folding"
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
@@ -33,7 +32,6 @@ include(AddGitSubmodule)
|
|||||||
|
|
||||||
# Subdirectories
|
# Subdirectories
|
||||||
# --------------
|
# --------------
|
||||||
add_subdirectory(config)
|
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
# -------
|
# -------
|
||||||
|
@@ -1,4 +0,0 @@
|
|||||||
configure_file(
|
|
||||||
"config.h.in"
|
|
||||||
"${CMAKE_BINARY_DIR}/configured_files/include/folding_config.h" ESCAPE_QUOTES
|
|
||||||
)
|
|
@@ -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/";
|
|
@@ -59,7 +59,7 @@ namespace folding {
|
|||||||
};
|
};
|
||||||
class StratifiedKFold : public Fold {
|
class StratifiedKFold : public Fold {
|
||||||
public:
|
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;
|
this->y = y;
|
||||||
n = y.size();
|
n = y.size();
|
||||||
|
@@ -3,7 +3,6 @@ if(ENABLE_TESTING)
|
|||||||
${Folding_SOURCE_DIR}
|
${Folding_SOURCE_DIR}
|
||||||
lib/Files
|
lib/Files
|
||||||
lib/mdlp
|
lib/mdlp
|
||||||
${CMAKE_BINARY_DIR}/configured_files/include
|
|
||||||
)
|
)
|
||||||
set(TEST_FOLDING "unit_tests_folding")
|
set(TEST_FOLDING "unit_tests_folding")
|
||||||
add_executable(${TEST_FOLDING} TestFolding.cc TestUtils.cc)
|
add_executable(${TEST_FOLDING} TestFolding.cc TestUtils.cc)
|
||||||
|
Reference in New Issue
Block a user