Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pomonam committed Jul 11, 2024
1 parent d7e35bc commit 7220ecc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions examples/cifar/inspect_factors.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@ def main():
logging.basicConfig(level=logging.INFO)

name = "ekfac"
factor = (
Analyzer.load_file(f"influence_results/cifar10/factors_{name}/activation_covariance.safetensors")
)
factor = Analyzer.load_file(f"influence_results/cifar10/factors_{name}/activation_covariance.safetensors")

plt.matshow(factor["6.0"])
plt.show()

factor = (
Analyzer.load_file(f"influence_results/cifar10/factors_{name}/gradient_covariance.safetensors")
)
factor = Analyzer.load_file(f"influence_results/cifar10/factors_{name}/gradient_covariance.safetensors")

plt.matshow(factor["6.0"])
plt.show()
Expand Down

0 comments on commit 7220ecc

Please sign in to comment.