medpy.features.utilities.normalize_with_model#

medpy.features.utilities.normalize_with_model(vector, model)[source]#

Normalize as with normalize, but not based on the data of the passed feature vector, but rather on a learned model created with normalize. Thus formerly unseen query data can be normalized according to the training data.

Parameters:
vectorsequence

A sequence of feature vectors to normalize.

modeltuple

A normalization model created with normalize.

Returns:
normalizendarray

The normalized versions of the input vectors.