Comments (4)
Hello 😄 , num_feat
is the number of features chosen, max_feat
is total features dataset has, (num_feat / max_feat)
stands for the ratio of the chosen features to total features. Using beta * (num_feat / max_feat)
, i suppose, is to control the number of features we choose. If the num_feat
is too much, then cost would become bigger.
Hi good morning, I wonder what is cost code in here and what does it do?
cost = alpha * error + beta * (num_feat / max_feat)
And i know that you use error rate as fitness, but why use cost value as fitness instead of error rate?
from wrapper-feature-selection-toolbox-python.
from wrapper-feature-selection-toolbox-python.
Thank you 😄
from wrapper-feature-selection-toolbox-python.
Can we say that cost function is the upgrade version from error rate? because you say that cost function reduce the error rate.
Hi, You can also use error rate, there is nothing wrong with it. The cost function is to ensure a lower feature size while reducing the error rate. (normally we set alpha = 0.99 and beta = 0.01) Best Regards, Jingwei Too
…
On Wed, Apr 20, 2022 at 5:51 PM liansyyy @.***> wrote: Hello 😄 , num_feat is the number of features chosen, max_feat is total features dataset has, (num_feat / max_feat) stands for the ratio of the chosen features to total features. Using beta * (num_feat / max_feat), i suppose, is to control the number of features we choose. If the num_feat is too much, then cost would become bigger. Hi good morning, I wonder what is cost code in here and what does it do? cost = alpha * error + beta * (num_feat / max_feat) And i know that you use error rate as fitness, but why use cost value as fitness instead of error rate? — Reply to this email directly, view it on GitHub <#17 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKG2GZPLD5UFNUFO35UVFDVF7HTDANCNFSM5RAU7QWQ . You are receiving this because you are subscribed to this thread.Message ID: </issues/17/1103727930@ github.com>
from wrapper-feature-selection-toolbox-python.
Related Issues (20)
- A bug in function `boundary` (pso.py). HOT 3
- Error HOT 2
- solution please HOT 5
- regression problem HOT 1
- Question HOT 4
- Binary Conversion HOT 3
- alpha value in fitness HOT 3
- feature selection
- Install HOT 1
- ValueError HOT 1
- INSTALL HOT 1
- code not complete HOT 3
- Other related introductions
- Adding another .csv file to PSO example
- Fitness Function HOT 1
- To change fitness with XGBoot or Random forest? HOT 1
- Using selected features with other Neural Network models like LSTM HOT 1
- What does k-value used for? HOT 1
- A huge bug in `error_rate` function, the evaluation is wrong. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wrapper-feature-selection-toolbox-python.