Number of iterations for minimal cost complexity prunning?Why is the number of samples smaller than the number of values in my decision tree?Minimum number of trees for Random Forest classifierSpace complexity of classification algorithmsHow to control number of branches for each split in sklearn DT classifier?Decision Trees How to Calculate Entropy Gain for Continuous Values for split point?How to reduce the number of rules in decision tree with Support and ConfidenceHow important is it for each row of data to have the same number of features?Decision Tree Classifier For Minimizing Arbitrary Cost FunctionBuilding a minimal encoding of nominal labels from numerical featuresHow to determine number of leaves in decision tree analysis?

Error message with tabularx

To say I met a person for the first time

Mac Pro install disk keeps ejecting itself

Binary Numbers Magic Trick

What does the "ep" capability mean?

Size of electromagnet needed to replicate Earth's magnetic field

Examples of subgroups where it's nontrivial to show closure under multiplication?

How to get a plain text file version of a CP/M .BAS (M-BASIC) program?

Does Gita support doctrine of eternal cycle of birth and death for evil people?

Repelling Blast: Must targets always be pushed back?

Will tsunami waves travel forever if there was no land?

French for 'It must be my imagination'?

What makes accurate emulation of old systems a difficult task?

Unexpected email from Yorkshire Bank

Who is the Umpire in this picture?

Is there really no use for MD5 anymore?

Is the claim "Employers won't employ people with no 'social media presence'" realistic?

Why does academia still use scientific journals and not peer-reviewed government funded alternatives?

Seemingly unused edef prior to an ifx mysteriously affects the outcome of the ifx. Why?

How can the Zone of Truth spell be defeated without the caster knowing?

Why do games have consumables?

What route did the Hindenburg take when traveling from Germany to the U.S.?

Why other Westeros houses don't use wildfire?

Was there a shared-world project before "Thieves World"?



Number of iterations for minimal cost complexity prunning?


Why is the number of samples smaller than the number of values in my decision tree?Minimum number of trees for Random Forest classifierSpace complexity of classification algorithmsHow to control number of branches for each split in sklearn DT classifier?Decision Trees How to Calculate Entropy Gain for Continuous Values for split point?How to reduce the number of rules in decision tree with Support and ConfidenceHow important is it for each row of data to have the same number of features?Decision Tree Classifier For Minimizing Arbitrary Cost FunctionBuilding a minimal encoding of nominal labels from numerical featuresHow to determine number of leaves in decision tree analysis?













1












$begingroup$


I've been fiddling with weka's J48 decision tree implementation (C4.5). My goal is to implement cost complexity prunning using weakest link cut method. Basically my algorithm iteratively prunes the tree creating trees with fewer nodes from the previous ones ($ T_0 > T_1 > T_2 >...>T_N$).



My goal now is how do I find that $N$ from $T_N$ meaning how many times should I prune the tree. The algorithm seems to prune pretty aggressively, few iterations too much and it will be completely prunned.



For now I'm using the stop condition regarding the complexity factor and I stop the prunning when $alpha gt 0.001$ (from $R(t) = R(t) + alpha|T|$) . This works pretty well for the two datasets I've tested so far but I wouldn't bet my money on it.










share|improve this question









$endgroup$
















    1












    $begingroup$


    I've been fiddling with weka's J48 decision tree implementation (C4.5). My goal is to implement cost complexity prunning using weakest link cut method. Basically my algorithm iteratively prunes the tree creating trees with fewer nodes from the previous ones ($ T_0 > T_1 > T_2 >...>T_N$).



    My goal now is how do I find that $N$ from $T_N$ meaning how many times should I prune the tree. The algorithm seems to prune pretty aggressively, few iterations too much and it will be completely prunned.



    For now I'm using the stop condition regarding the complexity factor and I stop the prunning when $alpha gt 0.001$ (from $R(t) = R(t) + alpha|T|$) . This works pretty well for the two datasets I've tested so far but I wouldn't bet my money on it.










    share|improve this question









    $endgroup$














      1












      1








      1





      $begingroup$


      I've been fiddling with weka's J48 decision tree implementation (C4.5). My goal is to implement cost complexity prunning using weakest link cut method. Basically my algorithm iteratively prunes the tree creating trees with fewer nodes from the previous ones ($ T_0 > T_1 > T_2 >...>T_N$).



      My goal now is how do I find that $N$ from $T_N$ meaning how many times should I prune the tree. The algorithm seems to prune pretty aggressively, few iterations too much and it will be completely prunned.



      For now I'm using the stop condition regarding the complexity factor and I stop the prunning when $alpha gt 0.001$ (from $R(t) = R(t) + alpha|T|$) . This works pretty well for the two datasets I've tested so far but I wouldn't bet my money on it.










      share|improve this question









      $endgroup$




      I've been fiddling with weka's J48 decision tree implementation (C4.5). My goal is to implement cost complexity prunning using weakest link cut method. Basically my algorithm iteratively prunes the tree creating trees with fewer nodes from the previous ones ($ T_0 > T_1 > T_2 >...>T_N$).



      My goal now is how do I find that $N$ from $T_N$ meaning how many times should I prune the tree. The algorithm seems to prune pretty aggressively, few iterations too much and it will be completely prunned.



      For now I'm using the stop condition regarding the complexity factor and I stop the prunning when $alpha gt 0.001$ (from $R(t) = R(t) + alpha|T|$) . This works pretty well for the two datasets I've tested so far but I wouldn't bet my money on it.







      decision-trees






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 7 at 7:37









      oren revengeoren revenge

      1062




      1062




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "557"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48789%2fnumber-of-iterations-for-minimal-cost-complexity-prunning%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Data Science Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48789%2fnumber-of-iterations-for-minimal-cost-complexity-prunning%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Marja Vauras Lähteet | Aiheesta muualla | NavigointivalikkoMarja Vauras Turun yliopiston tutkimusportaalissaInfobox OKSuomalaisen Tiedeakatemian varsinaiset jäsenetKasvatustieteiden tiedekunnan dekaanit ja muu johtoMarja VaurasKoulutusvienti on kestävyys- ja ketteryyslaji (2.5.2017)laajentamallaWorldCat Identities0000 0001 0855 9405n86069603utb201588738523620927

          Which is better: GPT or RelGAN for text generation?2019 Community Moderator ElectionWhat is the difference between TextGAN and LM for text generation?GANs (generative adversarial networks) possible for text as well?Generator loss not decreasing- text to image synthesisChoosing a right algorithm for template-based text generationHow should I format input and output for text generation with LSTMsGumbel Softmax vs Vanilla Softmax for GAN trainingWhich neural network to choose for classification from text/speech?NLP text autoencoder that generates text in poetic meterWhat is the interpretation of the expectation notation in the GAN formulation?What is the difference between TextGAN and LM for text generation?How to prepare the data for text generation task

          Is this part of the description of the Archfey warlock's Misty Escape feature redundant?When is entropic ward considered “used”?How does the reaction timing work for Wrath of the Storm? Can it potentially prevent the damage from the triggering attack?Does the Dark Arts Archlich warlock patrons's Arcane Invisibility activate every time you cast a level 1+ spell?When attacking while invisible, when exactly does invisibility break?Can I cast Hellish Rebuke on my turn?Do I have to “pre-cast” a reaction spell in order for it to be triggered?What happens if a Player Misty Escapes into an Invisible CreatureCan a reaction interrupt multiattack?Does the Fiend-patron warlock's Hurl Through Hell feature dispel effects that require the target to be on the same plane as the caster?What are you allowed to do while using the Warlock's Eldritch Master feature?