geowatch.tasks.fusion.datamodules.temporal_sampling.plots module¶
- geowatch.tasks.fusion.datamodules.temporal_sampling.plots.show_affinity_sample_process(chosen, info, fnum=1)[source]¶
Debugging / demo visualization of the iterative sample algorithm. For details see
TimeWindowSampler.show_procedure()
.
- geowatch.tasks.fusion.datamodules.temporal_sampling.plots.plot_dense_sample_indices(sample_idxs, unixtimes, title_suffix='', linewidths=0)[source]¶
Visualization helper
- Parameters:
sample_idxs (List[List[int]] | ArrayLike[ndim=2]) – A list of frame indexes that index into unixtimes. I.e. multiple samples of frame index groups.
unixtimes (List | ArrayLike[ndim=1] | None) – [ An array of unix timestamps corresonding to frame indexes. If unspecified, then frame indexes are shown directly.
Example
>>> # xdoctest: +REQUIRES(module:kwplot) >>> unixtimes = None >>> sample_idxs = [ >>> [0, 1, 2], >>> [3, 5, 6], >>> [2, 3, 6], >>> ] >>> plot_dense_sample_indices(sample_idxs, unixtimes)
- geowatch.tasks.fusion.datamodules.temporal_sampling.plots.plot_temporal_sample_indices(sample_idxs, unixtimes=None, sensors=None, title_suffix='')[source]¶
Visualization helper
- Parameters:
sample_idxs (List[List[int]]) – A list of frame indexes that index into unixtimes. I.e. multiple samples of frame index groups.
unixtimes (List | None) – An array of unix timestamps corresonding to frame indexes. If unspecified, then frame indexes are shown directly.
Example
>>> # xdoctest: +REQUIRES(module:kwplot) >>> unixtimes = None >>> sample_idxs = [ >>> [0, 1, 2], >>> [3, 5, 6], >>> [2, 3, 6], >>> ] >>> plot_temporal_sample_indices(sample_idxs, unixtimes)