Comments (18)
Hi,
The example is using holdout validation. If you want to use k-fold cross-validation, then you may change the code in fitness function. Also, you may change the fitness function for regression problem such as replace the KNN with logistic regression but also need to change the error to mean square error.
from wrapper-feature-selection-toolbox-python.
from wrapper-feature-selection-toolbox-python.
Hi,
The example is using holdout validation. If you want to use k-fold cross-validation, then you may change the code in fitness function. Also, you may change the fitness function for regression problem such as replace the KNN with logistic regression but also need to change the error to mean square error.
The Logistic Regression you mentioned is only for binary problem, right?
Since error appear when I attempt to apply to continuous variables.
`in check_classification_targets(y)
167 if y_type not in ['binary', 'multiclass', 'multiclass-multioutput',
168 'multilabel-indicator', 'multilabel-sequences']:
--> 169 raise ValueError("Unknown label type: %r" % y_type)
170
171
ValueError: Unknown label type: 'continuous'`
Just want to confirm that your codes are not for continuous variable at the moment.
from wrapper-feature-selection-toolbox-python.
Hi,
My bad, the logistic regression is applied for binary classification but not to the regression. You may refer to other regression algorithms such as support vector regression, decision tree regression and linear regression.
from wrapper-feature-selection-toolbox-python.
How to select the feature of regression model with this toolbox
from wrapper-feature-selection-toolbox-python.
from wrapper-feature-selection-toolbox-python.
from wrapper-feature-selection-toolbox-python.
Can you be specific? I am changing pso.py Or demo_ PSO.py
from wrapper-feature-selection-toolbox-python.
from wrapper-feature-selection-toolbox-python.
from wrapper-feature-selection-toolbox-python.
具体怎么改适应度函数了?在回归里那个 c是什么啊?
from wrapper-feature-selection-toolbox-python.
进行回归时,您需要更改适应度函数并将分类器替换为回归模型。另外,将误差率替换为均方误差。
…
On Wed, Mar 10, 2021 at 3:44 PM kangwenhao @.***> wrote: How to select the feature of regression model with this toolbox — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#2 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKG2G4NI2A7NNWUIEU57U3TC4PNTANCNFSM4WNZVHRA .
具体怎么改适应度函数了?在回归里那个c是什么啊?
from wrapper-feature-selection-toolbox-python.
进行回归时,您需要更改适应度函数并将分类器替换为回归模型。另外,将误差率替换为均方误差。
…
On Wed, Mar 10, 2021 at 3:44 PM kangwenhao @.***> wrote: How to select the feature of regression model with this toolbox — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#2 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKG2G4NI2A7NNWUIEU57U3TC4PNTANCNFSM4WNZVHRA .
How to change the fitness function? What is that in the return?
from wrapper-feature-selection-toolbox-python.
from wrapper-feature-selection-toolbox-python.
我想我知道您要怎么做。但是对于算法的实现,目前我主要使用python。Matlab对我来说太难了。------------------&nbsp;原始邮件&nbsp; ------------------发件人:“ JingweiToo / Wrapper -Feature-Selection-Toolbox-Python“ @.> ;; 发送时间:&nbsp; 2021年3月10日(星期三)下午4:04 @.> ;; *** @ 。*** @ 。&gt ;; 主题:Re:[JingweiToo / Wrapper-Feature-Selection-Toolbox-Python]有问题吗?(#2…在2021年3月10日,星期三,3:44 PM kangwenhao @。*** &gt; 写道:如何使用此工具箱选择回归模型的功能-之所以收到此评论,是因为您发表了评论。直接回复此电子邮件,在GitHub < #2(评论)&gt;上查看,或退订https://github.com/notifications/unsubscribe-auth/AHKG2G4NI2A7NNWUIEU57U3TC4PNTANCNFSM4WNZVHRA。如何更改健身功能?回报是什么?—您收到此消息是因为您创建了线程。直接回复此电子邮件,在GitHub上查看或取消订阅。
I use python, too。I need to do feature selection of regression model。But I am a cainiao, I will not change.
from wrapper-feature-selection-toolbox-python.
from wrapper-feature-selection-toolbox-python.
from wrapper-feature-selection-toolbox-python.
Hi,
How can we check which features are selected because code just show selected features number. If we want to show which features are selected then how to show it?
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
- About cost in FunctionHO.py HOT 4
- 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.