[Scikit-learn-general] Custom splitting criterion for decision tree classifier
Hi all, In the current implementation of the decision tree, data is split according to the criterion of the form: some feature some threshold Is there a way use more general form such as: some feature = some value or F(feature) some threshold where F is a function of the features. It would be best if I don't have to write the code from scratch and reuse as much code in the library as possible. Thanks for any suggestion. Regards, Caleb-- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
Re: [Scikit-learn-general] Custom splitting criterion for decision tree classifier
2014/1/12 Caleb cloverev...@yahoo.com: Is there a way use more general form such as: some feature = some value or F(feature) some threshold where F is a function of the features. You can replace the features with their F values in X for the latter. Any reason not to do that? -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
Re: [Scikit-learn-general] Custom splitting criterion for decision tree classifier
Dear Caleb, The current implementation does not allow for that. You can do as suggested by Lars though, if this is practical for you. Gilles On 12 January 2014 16:03, Caleb cloverev...@yahoo.com wrote: Hi all, In the current implementation of the decision tree, data is split according to the criterion of the form: some feature some threshold Is there a way use more general form such as: some feature = some value or F(feature) some threshold where F is a function of the features. It would be best if I don't have to write the code from scratch and reuse as much code in the library as possible. Thanks for any suggestion. Regards, Caleb -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
Re: [Scikit-learn-general] Custom splitting criterion for decision tree classifier
Of course, some feature = some value can also be expressed as F(some feature), so really, moving all of the feature transformation up front should allow you to do everything you suggested. I understand the convenience of using custom functions in some cases, but at least the workaround here is quite simple. On Mon, Jan 13, 2014 at 2:40 AM, Gilles Louppe g.lou...@gmail.com wrote: Dear Caleb, The current implementation does not allow for that. You can do as suggested by Lars though, if this is practical for you. Gilles On 12 January 2014 16:03, Caleb cloverev...@yahoo.com wrote: Hi all, In the current implementation of the decision tree, data is split according to the criterion of the form: some feature some threshold Is there a way use more general form such as: some feature = some value or F(feature) some threshold where F is a function of the features. It would be best if I don't have to write the code from scratch and reuse as much code in the library as possible. Thanks for any suggestion. Regards, Caleb -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general