Skip to content

Commit 8265a20

Browse files
committed
Bump version to 0.1.6; Update plot_cka_matrix to accept additional plotting arguments.
1 parent 35f0864 commit 8265a20

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

cka_pytorch/cka.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "cka-pytorch"
77
authors = [
88
{ name = "Dat-Thinh Nguyen", email = "datthinh1801@gmail.com" },
99
]
10-
version = "0.1.5"
10+
version = "0.1.6"
1111
description = "A PyTorch implementation of Centered Kernel Alignment (CKA) with GPU support."
1212
readme = "README.md"
1313
requires-python = ">=3.11"

0 commit comments

Comments
 (0)