resolve_output_dir |
Builds timestamped experiment output folders from base output path and YAML stem. |
src/density_estimator/train.py:36, src/density_estimator/train.py:49; src/density_estimator/utils/sweep_agent.py:109-113, src/density_estimator/utils/sweep_agent.py:126. |
_numpy_encoder |
JSON serialization fallback for NumPy, Torch, sets, and Path objects. |
Internal only: used by save_json at src/utils/helpers.py:64. |
save_json |
Saves dictionaries as pretty JSON with custom serialization. |
src/classification/utils.py:17, src/classification/utils.py:122, src/classification/utils.py:123; src/density_estimator/train.py:36, src/density_estimator/train.py:80; src/density_estimator/trainer/evaluate.py:56, src/density_estimator/trainer/evaluate.py:331; src/density_estimator/utils/sweep_agent.py:109-113, src/density_estimator/utils/sweep_agent.py:152, src/density_estimator/utils/sweep_agent.py:200. |
build_run_info |
Builds run metadata from args and environment info. |
src/density_estimator/train.py:36, src/density_estimator/train.py:79; src/density_estimator/utils/sweep_agent.py:109-113, src/density_estimator/utils/sweep_agent.py:151. |
cv_history_to_serialisable |
Converts cross-validation histories with NumPy arrays into JSON-safe lists. |
src/density_estimator/utils/sweep_agent.py:109-113, src/density_estimator/utils/sweep_agent.py:196. |
debug_timer |
Decorator that logs runtime and RAM usage when an argument has debug=True. |
src/segmentation/inference/contours_parsing.py:14, src/segmentation/inference/contours_parsing.py:17, src/segmentation/inference/contours_parsing.py:133; src/segmentation/inference/merging_functions.py:14, src/segmentation/inference/merging_functions.py:172; src/segmentation/inference/run_inference.py:18, src/segmentation/inference/run_inference.py:30. |
wrapper |
Nested function returned by debug_timer. |
Internal only inside debug_timer. |
load_wsi_and_geojson_data_from_paths |
Loads a TIFF WSI crop and matching GeoJSON from explicit paths. |
No Python source callers found; notebook usage in notebooks/density_estimation/data_creation.ipynb and notebooks/density_estimation/low_res_dataset.ipynb. |
load_image_and_annotations |
Deprecated loader using old hard-coded data/input/wsis and data/output/masks layout. |
No Python source callers found; old notebook usage in notebooks/classification/old_clustering_tests/*. |
load_tif_image |
Loads a TIFF image through TiffSlide and returns RGB array. |
src/classification/data_loader.py:12, src/classification/data_loader.py:60; notebook usage in classification/segmentation notebooks. |
split_cell_roi_geojson |
Splits GeoJSON features into cell features and ROI features. |
src/classification/data_loader.py:12, src/classification/data_loader.py:55. |
polygon_to_mask |
Rasterizes a Shapely Polygon or MultiPolygon into a binary mask. |
src/classification/cell_annotation.py:18, src/classification/cell_annotation.py:29; src/segmentation/additional_models/adaptive_threshold/adaptive_threshold_model.py:13, src/segmentation/additional_models/adaptive_threshold/adaptive_threshold_model.py:180; notebook usage in clustering/adaptive-threshold notebooks. |
round_polygon_coords |
Rounds polygon coordinates, simplifies geometry, and returns a valid polygon when possible. |
src/segmentation/additional_models/adaptive_threshold/adaptive_threshold_model.py:13, src/segmentation/additional_models/adaptive_threshold/adaptive_threshold_model.py:211; notebook usage in notebooks/segmentation/adaptive_threshold.ipynb. |
log_vram_usage |
Logs current GPU VRAM usage through NVML. |
src/segmentation/inference/detection_filters.py:9, src/segmentation/inference/detection_filters.py:38; src/segmentation/inference/run_inference.py:18, src/segmentation/inference/run_inference.py:92, src/segmentation/inference/run_inference.py:96, src/segmentation/inference/run_inference.py:142, src/segmentation/inference/run_inference.py:181, src/segmentation/inference/run_inference.py:197. |
get_n_available_cpus |
Infers CPU count from SLURM variables, falling back to os.cpu_count(). |
src/classification/inference.py:35, src/classification/inference.py:305; src/lr_inference/point_cloud_creation.py:15, src/lr_inference/point_cloud_creation.py:92; src/preprocessing/extract_crops_and_coords_LR.py:18, src/preprocessing/extract_crops_and_coords_LR.py:76. |
print_feature_importance |
Deprecated debug helper for printing linear model coefficients. |
No callers found. Also currently references pd without importing pandas, so it would fail if called. |
get_batch_size |
Deprecated GPU-memory-based batch size heuristic. |
No callers found. |