File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -246,6 +246,11 @@ def plot_cka_matrix(
246246 show_img : bool = True ,
247247 show_half_heatmap : bool = False ,
248248 invert_y_axis : bool = True ,
249+ title_font_size : int = 14 ,
250+ axis_font_size : int = 12 ,
251+ tick_font_size : int = 10 ,
252+ figsize : tuple [int , int ] = (10 , 10 ),
253+ dpi : int = 300 ,
249254 ) -> None :
250255 """Plot the CKA matrix.
251256
@@ -286,6 +291,11 @@ def plot_cka_matrix(
286291 show_img = show_img ,
287292 show_half_heatmap = show_half_heatmap ,
288293 invert_y_axis = invert_y_axis ,
294+ title_font_size = title_font_size ,
295+ axis_font_size = axis_font_size ,
296+ tick_font_size = tick_font_size ,
297+ figsize = figsize ,
298+ dpi = dpi ,
289299 )
290300
291301 def reset (self ) -> None :
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ name = "cka-pytorch"
77authors = [
88 { name = " Dat-Thinh Nguyen" , email = " datthinh1801@gmail.com" },
99]
10- version = " 0.1.5 "
10+ version = " 0.1.6 "
1111description = " A PyTorch implementation of Centered Kernel Alignment (CKA) with GPU support."
1212readme = " README.md"
1313requires-python = " >=3.11"
You can’t perform that action at this time.
0 commit comments