courses:xai:p1_2025

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
courses:xai:p1_2025 [2025/11/20 12:12] – [TSProto for Colab] admincourses:xai:p1_2025 [2025/12/01 09:24] (current) – [Programming Assignment I] admin
Line 3: Line 3:
 Assignments marked with {{:courses:xai:winner.png?25|}} can be extended as a continution in Programming Assgnment II. Assignments marked with {{:courses:xai:winner.png?25|}} can be extended as a continution in Programming Assgnment II.
 Projects marked with {{:courses:xai:contract.png?25|}} can be (with some additional work and depending on the results) published as scientific papers. Projects marked with {{:courses:xai:contract.png?25|}} can be (with some additional work and depending on the results) published as scientific papers.
 +
 +Select your project: 
 +  * [Monday group]: [[https://ujchmura-my.sharepoint.com/:x:/g/personal/szymon_bobek_uj_edu_pl/IQDwhgwVco6YS53jp8DRACWHAcdSSHvoObQeqkbFPXpTwHc?e=YSBAr2| Choose your project]]
  
  
Line 44: Line 47:
 {{:courses:xai:contract.png?30|}} {{:courses:xai:contract.png?30|}}
  
-Find ready to use frameworks that allwos to measure [[https://arxiv.org/pdf/1909.06677|predictive multiplicity]] -- how much two or more models that provide the same accuracy in predicion are able to provide conflicting p[redisions in areas not covered in trainig set.+Find ready to use frameworks that allwos to measure [[https://arxiv.org/pdf/1909.06677|predictive multiplicity]] -- how much two or more models that provide the same accuracy in predicion are able to provide conflicting predictions in areas not covered in trainig set.
  
 You may start by lookint this paper and its references: [[https://proceedings.neurips.cc/paper_files/paper/2024/file/dbd07478c4aac41c0ce411e12f2e5a28-Paper-Conference.pdf|RashomonGB: Analyzing the Rashomon Effect and Mitigating Predictive Multiplicity in Gradient Boosting]] You may start by lookint this paper and its references: [[https://proceedings.neurips.cc/paper_files/paper/2024/file/dbd07478c4aac41c0ce411e12f2e5a28-Paper-Conference.pdf|RashomonGB: Analyzing the Rashomon Effect and Mitigating Predictive Multiplicity in Gradient Boosting]]
Line 54: Line 57:
 {{:courses:xai:contract.png?30|}} {{:courses:xai:contract.png?30|}}
  
-How to use [[LLN|https://ibm.github.io/LNN/usage.html#using-the-lnn]] to obtaion explanations of their predictions?+How to use [[https://ibm.github.io/LNN/usage.html#using-the-lnn|LNN]] to obtaion explanations of their predictions?
 For instance how to extract the activated predicates to outrput the rule that resulted in final decission? For instance how to extract the activated predicates to outrput the rule that resulted in final decission?
  
Line 75: Line 78:
  
  
-===== TSProto for Colab ===== 
  
-Try to run tutorials of [[https://tsproto.readthedocs.io/en/latest/|TSProto]] in Colab (it will require some code tweeking/requirements adjustment to work with numpy 2.0.0. 
-Once done, create a pull request to include the changes in the current implementation of TSProto 
  
  
 +===== Counterfactual Analysis =====
 +{{:courses:xai:winner.png?30|}}
  
 +Benchmark 3 models on 3 datasets (e.g., Breast Cancer, Adult, Heart Disease), explain the best model using (SHAP, Lime, and feature importance), and get counterfactual explanations using one of these frameworks (ACFX, DICE, CLUE, CFNOW) .
 +
 +**Extra**: Evaluate the counterfactual explanations.
 +
 +===== Human-Constrained Counterfactuals =====
 +{{:courses:xai:winner.png?30|}}
 +
 +Train a classifier on a tabular dataset (e.g., Breast Cancer, Adult, Heart Disease), generate counterfactual explanations for selected instances without any constraints using (ACFX, DICE, CLUE, CFNOW) , then regenerate counterfactuals while forbidding changes to sensitive or immutable features (e.g., age, gender, race, marital status, education). Compare both sets of explanations in a before/after table. Describe how the constraints impact the plausibility, fairness, and actionability of the results.
 +Example: “A bank cannot change a customer’s age or marital status, but can suggest financial improvements.”
 +
 +**Extra**: Quantify how many counterfactuals become invalid or infeasible when constraints are applied.
 +
 +===== Correlation Problems in XAI =====
 +
 +Train a model on a dataset with correlated features (e.g., Breast Cancer, Adult, Heart Disease). Visualize the correlation structure, then generate explanations using two XAI methods (e.g., SHAP and LIME). Identify at least one case where the model attributes importance to a feature that is likely acting as a proxy for another correlated variable. Show before/after visualizations and briefly explain whether the explanation is genuinely meaningful or simply an artifact of feature correlation.
 +
 +**Extra**: Propose and implement one strategy to reduce misleading explanations (e.g., feature grouping, PCA, domain-level feature merging…).
 +
 +
 +===== TSProto for Colab =====
 +
 +Try to run tutorials of [[https://tsproto.readthedocs.io/en/latest/|TSProto]] in Colab (it will require some code tweeking/requirements adjustment to work with numpy 2.0.0.
 +Once done, create a pull request to include the changes in the current implementation of TSProto
  
  
  • courses/xai/p1_2025.1763640750.txt.gz
  • Last modified: 6 months ago
  • by admin