GithubHelp home page GithubHelp logo

Comments (4)

hbaniecki avatar hbaniecki commented on August 22, 2024

-1. readability: DESCRIPTION change URL to https://github.com/ModelOriented/ingredients
update demo.png in README

  1. in many places in documentation x should be documented as explainer first and
    data/y/predict_function should be placed as last parameters in function
    ex: conditional_dependency.R, feature_importance.R, ...

  2. placement of ... parameter is inconsistent across many functions

  • accumulated_dependency.R
  • aspect_importance.R
  • conditional_dependency.R
  • feature_importance.R
  • partial_dependency.R
  • more
  1. parameters in documentation are in different order than in function call
  • aggregate_profiles.R
  • cluster_profiles.R
  1. change parameter name
  • aspect_importance.R aspects_list could be just aspects (like variables)
  • plot_ceteris_paribus_2d_explainer.R split_ncol to facet_ncol
  1. In many functions N and B are beeing used. There is no consistency

  2. check x class and produce error in calculate_oscillations.R could also appear in

  • aggregate_profiles.R
  • cluster_profiles.R
  • plot_aggregated_profiles_explainer.R
  • plot_ceteris_paribus_2d_explainer.R
  • plot_ceteris_paribus_explainer.R
  • more
  1. = instead of <-
  1. CODE NOTES
  1. calculate_variable_profile.R has no support for DALEX explainer use + sad documentation

  2. ceteris_paribus_2d.R all parameters are inconsistent with the rest of ingredients

  3. describe.R could be deleted?

  4. Change file name:

  • describe_aggregatedprofiles.R

  • describe_ceterisparibus.R

  • describe_featureimportance.R

  • plotD3_aggregated_profiles_explainer.R

  • plotD3_ceteris_paribus_explainer.R

  • plotD3_feature_importance_explainer.R

  • plot_aggregated_profiles_explainer.R

  • and more..... (cut _explainer everywhere)

  • cut s: print_ceteris_paribus_descriptions.R

  1. weird/no parameter documentation
  1. ingredients has theme_drwhy.R

  2. add @noRd to not exported functions

from ingredients.

AdamIzdebski avatar AdamIzdebski commented on August 22, 2024

(Key functions)
readability: documentation (title, description, details)

  • feature_importance()
    1. Make descriptions consistent with https://pbiecek.github.io/PM_VEE/
      possible change: "This function calculates permutation based feature importance."
    2. Arguments:
      x should the description include model or just class explainer (Argument in favour of deleting the model option: function feature_importance needs arguments that are additional and are on the low end of the list in order to work with model.)
      typos,
      'type' possible change "a string specifying which ... . Possible values are ... "
      punctuation is not consistent it's either a comma or dot after argument class and before the description
  • ceteris_paribus()
    3. description: The first sentence should communicate what the function does. possible change: "This function calculates a one dimensional ceteris paribus profile for the selected variables."
    4. Arguments order is not consistent, new_observation is needed for the function to work and should be second in order.
    new_observation should the observation contain the decision (y) variable?
  • calculate_oscillations() 2 applies
  • ceteris_paribus_2d() description that could serve as an example for other functions, arguments 'variables' in not clear how to use
  • partial_dependency() 2 applies,
  • conditional_dependency() 1,3`

readability: examples (relevant, complete, with comments)

  • feature_importance() if x can be a model, then an example how to use the function with models should be added
  • ceteris_paribus() 5. examples could be commented, more different arguments could be demonstrated on the same explainer
  • ceteris_paribus_2d() 6. example for using variables argument should be provided, it is not always working
  • partial_dependency() 5 and 6 applies
  • conditional_dependency() 5,6
  • aggregate_profiles() warnings are generated, 6

reproducibility: tests (code coverage)

  • describe_aggregated_profiles.R - test on inputs with continuous variable
  • aggregated_profiles.R - test accumulated profiles on non null groups and non-numeric variables, test conditional_profiles for nonnumeric variables, those examples can be ploted too.

links to functions: \code
All functions need link to DALEX::explain in arguments
argument x linked to ceteris_paribus() in aggregate_profiles() , accumulated_dependency()

from ingredients.

maksymiuks avatar maksymiuks commented on August 22, 2024

Try to get rid of titanic package suggest

from ingredients.

hbaniecki avatar hbaniecki commented on August 22, 2024

add demo gif to ingredients and iBreakDown

from ingredients.

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.