Skip to content

Commit

Permalink
Format code with black
Browse files Browse the repository at this point in the history
  • Loading branch information
jameschapman19 authored and github-actions[bot] committed Oct 6, 2023
1 parent a969fce commit 7d1950e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/source/examples/plot_gradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@
score_display = ScoreScatterDisplay.from_estimator(
cca, [X_train, Y_train], [X_test, Y_test]
)
score_display.plot(
title=f"CCA (Time: {elapsed_time:.2f} s)"
)
score_display.plot(title=f"CCA (Time: {elapsed_time:.2f} s)")
plt.show()

# %%
Expand Down Expand Up @@ -102,7 +100,9 @@

# We plot the transformed views on a scatter plot with different colors for train and test sets
# Use ScoreScatterDisplay or a similar plotting class for the visualization
score_display = ScoreScatterDisplay.from_estimator(ccaey, [X_train, Y_train], [X_test, Y_test])
score_display = ScoreScatterDisplay.from_estimator(
ccaey, [X_train, Y_train], [X_test, Y_test]
)
score_display.plot(
title=f"CCA_EY (Batch size: {batch_size}, Time: {elapsed_time:.2f} s)"
)
Expand Down

0 comments on commit 7d1950e

Please sign in to comment.