peggy30 commited on
Commit
4e8aca7
·
1 Parent(s): 1bd4e77

remove one

Browse files
Files changed (1) hide show
  1. pages/ALE.py +13 -13
pages/ALE.py CHANGED
@@ -38,19 +38,19 @@ def explain_example():
38
  if global_model is None:
39
  train_model()
40
 
41
- fig, ax = plt.subplots(figsize=(10, 5))
42
- st.write("1D Main Effect ALE Plot")
43
- ale_plot(
44
- global_model,
45
- X_test,
46
- "Age",
47
- bins=5,
48
- monte_carlo=True,
49
- monte_carlo_rep=30,
50
- monte_carlo_ratio=0.5,
51
- )
52
-
53
- st.pyplot(fig)
54
 
55
  fig1, ax1 = plt.subplots(figsize=(10, 5))
56
  st.write("2D Second-Order ALE Plot")
 
38
  if global_model is None:
39
  train_model()
40
 
41
+ # fig, ax = plt.subplots(figsize=(10, 5))
42
+ # st.write("1D Main Effect ALE Plot")
43
+ # ale_plot(
44
+ # global_model,
45
+ # X_test,
46
+ # "Age",
47
+ # bins=5,
48
+ # monte_carlo=True,
49
+ # monte_carlo_rep=30,
50
+ # monte_carlo_ratio=0.5,
51
+ # )
52
+ #
53
+ # st.pyplot(fig)
54
 
55
  fig1, ax1 = plt.subplots(figsize=(10, 5))
56
  st.write("2D Second-Order ALE Plot")