Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ncorrect Assumption of Uniform Class Sample Sizes in computeKernelBasisVectors and computeBasisVectors Functions #1

Open
Santos-Enoque opened this issue Oct 25, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Santos-Enoque
Copy link

Issue Description:

The current implementation of the computeKernelBasisVectors function assumes that every class or subset of samples in the dataset will have an equal number of samples. This assumption might not hold in many real-world datasets, where class distributions could be imbalanced.

Expected Behavior:

The function should dynamically adjust based on the actual number of samples in each subset or class, without making assumptions about uniform class distributions.

Current Behavior:

The function assumes that every class the dataset, represented by the 4rd-order of the multi-dimensional matrix X, has the same number of samples.

Steps to Reproduce:

  1. Use a dataset with varying numbers of samples in different subsets or classes.
  2. Attempt to compute basis vectors using the computeKernelBasisVectors function.

Possible Solution:

Refactor the function to account for different sample sizes in classes Consider using dynamic data structures such as cell arrays or loops that account for the actual number of samples in each subset rather than a fixed size.

Additional Information:

This issue limits the flexibility of the function when working with imbalanced datasets. Addressing this issue will enhance the robustness and flexibility of the code.

@Santos-Enoque Santos-Enoque added the bug Something isn't working label Oct 25, 2023
@Santos-Enoque Santos-Enoque self-assigned this Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant