Giter Club home page Giter Club logo

Comments (18)

JingweiToo avatar JingweiToo commented on August 17, 2024

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.

Njzjhd avatar Njzjhd commented on August 17, 2024

from wrapper-feature-selection-toolbox-python.

hanamthang avatar hanamthang commented on August 17, 2024

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.

JingweiToo avatar JingweiToo commented on August 17, 2024

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.

kangwenhao avatar kangwenhao commented on August 17, 2024

How to select the feature of regression model with this toolbox

from wrapper-feature-selection-toolbox-python.

JingweiToo avatar JingweiToo commented on August 17, 2024

from wrapper-feature-selection-toolbox-python.

Njzjhd avatar Njzjhd commented on August 17, 2024

from wrapper-feature-selection-toolbox-python.

kangwenhao avatar kangwenhao commented on August 17, 2024

Can you be specific? I am changing pso.py Or demo_ PSO.py

from wrapper-feature-selection-toolbox-python.

Njzjhd avatar Njzjhd commented on August 17, 2024

from wrapper-feature-selection-toolbox-python.

Njzjhd avatar Njzjhd commented on August 17, 2024

from wrapper-feature-selection-toolbox-python.

kangwenhao avatar kangwenhao commented on August 17, 2024

具体怎么改适应度函数了?在回归里那个 c是什么啊?

from wrapper-feature-selection-toolbox-python.

kangwenhao avatar kangwenhao commented on August 17, 2024

进行回归时,您需要更改适应度函数并将分类器替换为回归模型。另外,将误差率替换为均方误差。

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.

kangwenhao avatar kangwenhao commented on August 17, 2024

进行回归时,您需要更改适应度函数并将分类器替换为回归模型。另外,将误差率替换为均方误差。

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.

Njzjhd avatar Njzjhd commented on August 17, 2024

from wrapper-feature-selection-toolbox-python.

kangwenhao avatar kangwenhao commented on August 17, 2024

我想我知道您要怎么做。但是对于算法的实现,目前我主要使用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.

Njzjhd avatar Njzjhd commented on August 17, 2024

from wrapper-feature-selection-toolbox-python.

Njzjhd avatar Njzjhd commented on August 17, 2024

from wrapper-feature-selection-toolbox-python.

fatima24-a avatar fatima24-a commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.