autolens.SettingsPixelization#
- class autolens.SettingsPixelization(use_border: bool = True, is_stochastic: bool = False, kmeans_seed: int = 0)[source]#
- __init__(use_border: bool = True, is_stochastic: bool = False, kmeans_seed: int = 0)[source]#
Settings which control how a pixelization is performed.
- Parameters
use_border – If True, all coordinates of both source frame grids have pixels outside their border relocated to their edge (see relocated_grid_from()).
is_stochastic – Cetrain pixelizations can create different discretizations using the same parameters / inputs, by changing their random seed (e.g. changing the KMeans seed of the VoronoiBrightnessImage pixelizaiton). If True, this random seed changes for every function call, creating completely stochastic pixelizations every time.
kmeans_seed – A fixed value for the KMeans seed that dictates the pixelization that is derived for a VoronoiBrightnessImage pixelization.
Methods
__init__
([use_border, is_stochastic, …])Settings which control how a pixelization is performed.
settings_with_is_stochastic_true
()Returns a SettingsPixelization object with the same attributes but where is_stochastic is True.