prakharg24 commited on
Commit
662769c
·
verified ·
1 Parent(s): 7180765

Update my_pages/ica.py

Browse files
Files changed (1) hide show
  1. my_pages/ica.py +5 -5
my_pages/ica.py CHANGED
@@ -76,9 +76,9 @@ def render():
76
  fig, ax = plt.subplots()
77
  ax.plot(*np.append(vertices, [vertices[0]], axis=0).T)
78
  # ax.scatter(vertices[:,0], vertices[:,1], c=["blue", "green", "red"], s=100)
79
- ax.text(*vertices[0], "Intentional", ha="center", va="bottom", color="green")
80
- ax.text(*vertices[1], "Conventional", ha="right", va="top", color="green")
81
- ax.text(*vertices[2], "Arbitrary", ha="left", va="top", color="green")
82
  ax.scatter(point[0], point[1], c="white", s=10000)
83
  ax.scatter(point[0], point[1], c="orange", s=10000, zorder=5, alpha=0.3)
84
  ax.set_aspect("equal")
@@ -92,7 +92,7 @@ def render():
92
  locations = [
93
  (0.9, 0.1, "Random Seeds", "Random Seeds are highly arbitrary, without any convention or intentionality.", "left", "bottom"),
94
  (0.35, 0.06, "Neural networks for Tabular Data", "Using neural networks of some arbitrary size (hidden layers) for a setting where \
95
- they are not needed is highly conventional, a bit arbitrary, and has very low intentionality.", "right", "bottom"),
96
  (0.4, 0.5, "Pre-trained LLM for a Complex Task", "Using a high performing LLM for a complex task is intentional, however, it also has \
97
  conventionality to it, as a specialized model could have worked, depending on context.\
98
  No arbitrariness.", "right", "bottom"),
@@ -112,7 +112,7 @@ def render():
112
  dist = np.linalg.norm([x - point[0], y - point[1]])
113
  if dist <= torch_radius:
114
  ax.scatter(x, y, c="red", s=50, zorder=6)
115
- ax.text(x, y + 0.03, label, ha=ha, va=va, color="red", zorder=6)
116
  explanations.append((label, labeltext))
117
  else:
118
  ax.scatter(x, y, c="red", s=50, zorder=6, alpha=0.3)
 
76
  fig, ax = plt.subplots()
77
  ax.plot(*np.append(vertices, [vertices[0]], axis=0).T)
78
  # ax.scatter(vertices[:,0], vertices[:,1], c=["blue", "green", "red"], s=100)
79
+ ax.text(*vertices[0], "Intentional", ha="center", va="bottom", color="green", weight="heavy")
80
+ ax.text(*vertices[1], "Conventional", ha="right", va="top", color="green", weight="heavy")
81
+ ax.text(*vertices[2], "Arbitrary", ha="left", va="top", color="green", weight="heavy")
82
  ax.scatter(point[0], point[1], c="white", s=10000)
83
  ax.scatter(point[0], point[1], c="orange", s=10000, zorder=5, alpha=0.3)
84
  ax.set_aspect("equal")
 
92
  locations = [
93
  (0.9, 0.1, "Random Seeds", "Random Seeds are highly arbitrary, without any convention or intentionality.", "left", "bottom"),
94
  (0.35, 0.06, "Neural networks for Tabular Data", "Using neural networks of some arbitrary size (hidden layers) for a setting where \
95
+ they are not needed is highly conventional, a bit arbitrary, and has very low intentionality.", "left", "bottom"),
96
  (0.4, 0.5, "Pre-trained LLM for a Complex Task", "Using a high performing LLM for a complex task is intentional, however, it also has \
97
  conventionality to it, as a specialized model could have worked, depending on context.\
98
  No arbitrariness.", "right", "bottom"),
 
112
  dist = np.linalg.norm([x - point[0], y - point[1]])
113
  if dist <= torch_radius:
114
  ax.scatter(x, y, c="red", s=50, zorder=6)
115
+ ax.text(x, y + 0.03, label, ha=ha, va=va, color="red", zorder=6, weight="heavy")
116
  explanations.append((label, labeltext))
117
  else:
118
  ax.scatter(x, y, c="red", s=50, zorder=6, alpha=0.3)