Git Product home page Git Product logo

Comments (3)

andrey-khropov avatar andrey-khropov commented on May 24, 2024

According to the paper, it said the plain mode will build the tree by following the GBDT strategy. However, when I plot the tree trained with Plain mode, the structure of tree is oblivious tree not the decision tree.

Oblivious trees are a subtype of decision trees so no contradiction here. If you want CatBoost to build non-oblivious trees you can specify grow_policy training parameter as Depthwise or Lossguide.

Another confusing point is why the priornum used in each layer is different?

Because there can be several numerical features derived from categorical ones with different priors.

You can see the default sets of priors for each Ctr type here.

It is also possible to specify your own priors using training parameters.

from catboost.

ccylance avatar ccylance commented on May 24, 2024

According to the paper, it said the plain mode will build the tree by following the GBDT strategy. However, when I plot the tree trained with Plain mode, the structure of tree is oblivious tree not the decision tree.

Oblivious trees are a subtype of decision trees so no contradiction here. If you want CatBoost to build non-oblivious trees you can specify grow_policy training parameter as Depthwise or Lossguide.

Another confusing point is why the priornum used in each layer is different?

Because there can be several numerical features derived from categorical ones with different priors.

You can see the default sets of priors for each Ctr type here.

It is also possible to specify your own priors using training parameters.

@andrey-khropov Appreciate for your help. But one question you missed is how the leaf value calculated? In the tree_plot it shows as 0.071 but the prediction return the value 0.5166, and I am confused about how the leaf node value is converted into the predicted value?

from catboost.

andrey-khropov avatar andrey-khropov commented on May 24, 2024

how the leaf value calculated? In the tree_plot it shows as 0.071 but the prediction return the value 0.5166, and I am confused about how the leaf node value is converted into the predicted value?

  1. You display only the single tree (specified by tree_idx), but the model typically contains many trees (up to the number of iterations but may have less than the specified maximum value of iterations if the overfitting detector and/or use_best_model are used). The number of trees in the model can be obtained from the tree_count_ attribute of the trained model.

  2. The return value of predict will be the function of the sum of values of the selected leaves in all trees. Post-transformation depends on the specified prediction_type parameter.

from catboost.

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.