Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,15 @@ results/
profiles/
docs/*.html
docs/index_files/

# --- Local junk / scratch artifacts (root) ---
sample*.csv
*.log
Untitled
tl_2023_17_bg.zip

# --- Quarantine area (local) ---
archive_quarantine/

# Legacy artifacts (do not track)
archive/
4 changes: 2 additions & 2 deletions analysis/clustering/euclidean_clustering_k_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def predict_and_write_assignments_streaming(

pf = pq.ParquetFile(input_path)
out_schema = pf.schema_arrow.append(pa.field("cluster", pa.int32()))
writer = pq.ParquetWriter(output_path, out_schema, compression="zstd")
writer = pq.ParquetWriter(output_path, out_schema, compression="snappy")

k = int(model.n_clusters)
counts = np.zeros(k, dtype=np.int64)
Expand Down Expand Up @@ -273,7 +273,7 @@ def plot_centroids(centroids: np.ndarray, output_path: Path) -> None:
x = np.arange(n_timepoints)
xlabel = "Time Interval"

fig, ax = plt.subplots(figsize=(12, 6))
_fig, ax = plt.subplots(figsize=(12, 6))
for i in range(k):
ax.plot(x, centroids[i], label=f"Cluster {i}", linewidth=2)

Expand Down
Loading
Loading