Skip to content

Commit

Permalink
more interesting params
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Jun 7, 2024
1 parent 68619b3 commit 2f71809
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def retain_strongest_signals(data: xarray.DataArray, n_features: int) -> xarray.
def cluster_kmeans(input_netcdf_path: Annotated[Path, Option()], output_netcdf_path: Annotated[Path, Option()]) -> None:
image = MultiChannelImage.read_hdf5(input_netcdf_path)
# TODO make configurable
n_clusters = 6
n_features = 30
n_clusters = 10
n_features = 50

reduced_data = retain_strongest_signals(image.data_flat.transpose("i", "c"), n_features)

Expand Down

0 comments on commit 2f71809

Please sign in to comment.