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

binary PSO for feature selection #10

Open
vaskonov opened this issue May 6, 2017 · 1 comment
Open

binary PSO for feature selection #10

vaskonov opened this issue May 6, 2017 · 1 comment

Comments

@vaskonov
Copy link

vaskonov commented May 6, 2017

I wonder how to implement the binary PSO, where the values of the particles are vectors of 0's and 1's.

It is useful for feature selection, when 0 mean doesn't include the correspond feature for the classification.

@tisimst
Copy link
Owner

tisimst commented May 10, 2017

I haven't yet had a chance to consider how the algorithm should handle discrete variables. I agree that it would be very helpful, but for the time being you could include some conditional statements that, for example, force any value x<0.5 to 0 and those that fall into x>=0.5 to be 1. Although not an ideal procedure for choosing discrete values, it might get the job done for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants