Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 23, 2025
1 parent a8cc636 commit be17dfc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions explore_high_dimensional_data/explore_high_dimensional_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def load_data():

data, labels = sklearn.datasets.load_digits(return_X_y=True)
return data, labels

return (load_data,)


Expand All @@ -64,9 +65,10 @@ def embed_data(data):
"""
import sklearn

return sklearn.decomposition.PCA(
n_components=2, whiten=True
).fit_transform(data)
return sklearn.decomposition.PCA(n_components=2, whiten=True).fit_transform(
data
)

return (embed_data,)


Expand Down Expand Up @@ -96,6 +98,7 @@ def scatter_data(df: pl.DataFrame) -> alt.Chart:
)
.properties(width=500, height=500)
)

return (scatter_data,)


Expand Down Expand Up @@ -128,6 +131,7 @@ def show_selection(data, rows, max_rows=10):
axes.set_xticks([])
plt.tight_layout()
return fig

return (show_selection,)


Expand Down Expand Up @@ -159,6 +163,7 @@ def _(load_data):
@app.cell
def _():
import polars as pl

return (pl,)


Expand Down Expand Up @@ -213,6 +218,7 @@ def _(chart, data, mo, show_selection, table):
@app.cell
def _():
import marimo as mo

return (mo,)


Expand Down

0 comments on commit be17dfc

Please sign in to comment.