prakharg24 commited on
Commit
5d12644
·
verified ·
1 Parent(s): 4816012

Update my_pages/multiverse.py

Browse files
Files changed (1) hide show
  1. my_pages/multiverse.py +10 -6
my_pages/multiverse.py CHANGED
@@ -122,6 +122,7 @@ def render():
122
  add_instruction_text(
123
  """
124
  Visually explore the multiverse of AI models to judge loan applications.<br>
 
125
  Make a choice, and scroll down to see the properties of the trained model.
126
  """
127
  )
@@ -310,10 +311,13 @@ def render():
310
  uniq_count_acc = np.sum(condition_acc)
311
 
312
  add_red_text(f"""
313
- <b>Multiplicity of your predictions:</b> Your chosen model rejected {uniq_count_rej} loans that would have been accepted by the majority of the other models.
314
- Similariy, your chosen model accepted {uniq_count_acc} loans that would have been rejected by the majority of the other models.<br><br>
315
- You might want higher multiplicity, to avoid competiting for the same loan applicants with others and to give a chance to unique applicants.<br><br>
316
- On the other hand, you might instead want lower multiplicity, to take lower risks and to avoid facing a justification crisis, i.e.,
317
- not able to explain why you rejected certain applicants when they were accepted by everyone else.<br><br>
318
- Whether you want higher or lower multiplicity depends on the context. However, auditing multiplicity in any AI problem is extremely important!
 
 
 
319
  """)
 
122
  add_instruction_text(
123
  """
124
  Visually explore the multiverse of AI models to judge loan applications.<br>
125
+ We are using a publicly available loan approval dataset.<br>
126
  Make a choice, and scroll down to see the properties of the trained model.
127
  """
128
  )
 
311
  uniq_count_acc = np.sum(condition_acc)
312
 
313
  add_red_text(f"""
314
+ <b>Multiplicity of your predictions:</b><br>
315
+ Number of loans accepted by the majority, but rejected by you: {uniq_count_rej}<br>
316
+ Number of loans rejected by the majority, but accepted by you: {uniq_count_acc}<br><br>
317
+ <b>Reasons you might want lower multiplicity:</b><br>
318
+ To take lower risks and to avoid facing a justification crisis, i.e.,
319
+ not able to explain why you rejected an applicant who would have been accepted by most other models.<br><br>
320
+ <b>Reasons you might want higher multiplicity:</b><br>
321
+ To avoid competiting for the same loan applicants with others.<br>
322
+ To give a chance to unique applicants and deal with the concerns of homogenization.<br><br>
323
  """)