Fix feature size calculation and add error handling for KMeans training by stelfrag · Pull Request #21155 · netdata/netdata

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@stelfrag

Copy link Copy Markdown

Collaborator

Summary
  • Allocate enough elements in the vector to prevent buffer overflow
  • Add check to ensure we have at least 2 data points (ml_kmeans_train)

@github-actions github-actions bot added the area/ml

Machine Learning Related Issues

label

Oct 16, 2025

@stelfrag stelfrag marked this pull request as ready for review

October 16, 2025 07:42
Copy link Copy Markdown

Contributor

@thiagoftsm thiagoftsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After compile this PR, no issue was reported locally.. LGTM!

@stelfrag stelfrag merged commit d22056f into netdata:master

Oct 16, 2025

114 of 115 checks passed

@stelfrag stelfrag deleted the fix_ml_crash1 branch

October 16, 2025 13:04

stelfrag added a commit to stelfrag/netdata that referenced this pull request

Oct 27, 2025

@stelfrag stelfrag mentioned this pull request

Oct 27, 2025

Ferroin pushed a commit that referenced this pull request

Oct 28, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@thiagoftsm thiagoftsm thiagoftsm approved these changes

@vkalintiris vkalintiris Awaiting requested review from vkalintiris vkalintiris is a code owner

Assignees

No one assigned

Labels

area/ml

Machine Learning Related Issues

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@stelfrag @thiagoftsm