Bases: object
Classification via VEM algorithm.
Methods
free_energy | |
run | |
sort_labels | |
ve_step | |
vm_step |
A class to represent a variational EM algorithm for tissue classification.
Parameters : | data: array :
labels: int or sequence :
mask: sequence :
|
---|
Compute the free energy defined as:
F(q, theta) = int q(x) log q(x)/p(x,y/theta) dx
associated with input parameters mu, sigma and beta (up to an ignored constant).
Sort the array labels to match mean tissue intensities mu.
VE-step
Return (mu, sigma)
ppm: ndarray (4d) data_masked: ndarray (1d, masked data) mask: 3-element tuple of 1d ndarrays (X,Y,Z)
ppm: ndarray (4d) data_masked: ndarray (1d, masked data) mask: 3-element tuple of 1d ndarrays (X,Y,Z)