eda_plugin.examples.analysers.Keras1CWorker

class eda_plugin.examples.analysers.Keras1CWorker(*args: Any, **kwargs: Any)

Bases: KerasWorker

A KerasWorker with background subtraction and intensity normalization before inference.

__init__(*args, **kwargs)

Call the init function of KerasWorker with the settings supplied on call.

Methods

__init__(*args, **kwargs)

Call the init function of KerasWorker with the settings supplied on call.

extract_decision_parameter(network_output)

Return the a value of the ndarray.

post_process_output(data, positions)

Strip off the dimensions that come from the network.

prepare_images(images)

Subtract background and normalize image intensity.

run()

Run the model.

extract_decision_parameter(network_output: numpy.ndarray)

Return the a value of the ndarray.

post_process_output(data: numpy.ndarray, positions)

Strip off the dimensions that come from the network.

prepare_images(images: numpy.ndarray)

Subtract background and normalize image intensity.

run()

Run the model.

Prepare the images, infer the model, calculate the decision parameter and construct the image that will be displayed in the GUI. Preparation and postprocessing are optional and can be implemented by subclasses as necessary for the specific model. Specific implementations can be found in examples.analysers.keras