🔧 Implement an analysis block for "anchors" #1006
Labels
Community
Community-led efforts
discussion
Further discussion is required
enhancement
New feature or request
hacktoberfest
Contirubte to Lightwood and participate in Hacktoberfest.
help wanted
Extra attention is needed
Research
For PRs that are research-oriented
Introduction
Lightwood is an AutoML library that aims at abstracting common procedures in the Machine Learning workflow (e.g. data preparation, feature engineering, model building, model analysis) with an approach that can be fully automated but easily customizable and extended thanks to its flexibility.
To analyze a model, a series of "analysis blocks" run after the ensemble step and when generating predictions. Each of these blocks can (1) do some type of analysis after training has finished, (2) do computations at inference time to give additional insights about predictions (e.g. a confidence score), or both (1) and (2).
Anchors (High-Precision Model-Agnostic Explanations) are a popular method for explaining predictions of a ML model for tabular data.
Task
In this task, we seek to add an analysis block that will output anchor explanations for the predictions of Lightwood models.
Steps 🕵️♂️ 🕵️♀️
staging
branch and from it create a new one.lightwood/analysis/base/BaseAnalysisBlock
) inlightwood/analysis/helpers/
that computes anchors in its.explain()
method by interacting with the library linked above. The output should be added to the input insights in additional columns with a naming scheme likef"prediction_anchor"
, or similar, with a string containing the entire rule (e.g. "COLUMN_NAME >= VALUE").docssrc/source/tutorial/custom_explainer
folder, explaining how to use this block and what insights can be made from an example predictive task.Additional rewards 🥇
Accepted PRs will let you participate in the MindsDB hacktoberfest contest! For more info check out https://mindsdb.com/hacktoberfest/.
The text was updated successfully, but these errors were encountered: