Skip to content

Commit edcfd58

Browse files
authored
bug: fix constant prediction early stopping rollback (#214)
* fix constant prediction early stopping rollback * update CHANGELOG
1 parent 8d22d41 commit edcfd58

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
Changes:
4+
* Fix constant prediction early stopping rollback ([#214](https://github.com/xcsf-dev/xcsf/pull/214))
5+
36
## Version 1.4.8 (Aug 26, 2025)
47

58
Changes:

xcsf/pred_constant.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ void
4646
pred_constant_copy(const struct XCSF *xcsf, struct Cl *dest,
4747
const struct Cl *src)
4848
{
49-
(void) xcsf;
50-
(void) dest;
51-
(void) src;
49+
memcpy(dest->prediction, src->prediction, sizeof(double) * xcsf->y_dim);
5250
}
5351

5452
/**

0 commit comments

Comments
 (0)