public class MinMaxSerializerStrategy extends Object implements NormalizerSerializerStrategy<NormalizerMinMaxScaler>
NormalizerMinMaxScaler
instances in single binary filesConstructor and Description |
---|
MinMaxSerializerStrategy() |
Modifier and Type | Method and Description |
---|---|
NormalizerType |
getSupportedType()
Get the enum opType of the supported normalizer
|
NormalizerMinMaxScaler |
restore(@NonNull InputStream stream)
Restore a normalizer that was previously serialized by this strategy
|
void |
write(@NonNull NormalizerMinMaxScaler normalizer,
@NonNull OutputStream stream)
Serialize a normalizer to a output stream
|
public void write(@NonNull @NonNull NormalizerMinMaxScaler normalizer, @NonNull @NonNull OutputStream stream) throws IOException
NormalizerSerializerStrategy
write
in interface NormalizerSerializerStrategy<NormalizerMinMaxScaler>
normalizer
- the normalizerstream
- the output stream to write toIOException
public NormalizerMinMaxScaler restore(@NonNull @NonNull InputStream stream) throws IOException
NormalizerSerializerStrategy
restore
in interface NormalizerSerializerStrategy<NormalizerMinMaxScaler>
stream
- the stream to read serialized data fromIOException
public NormalizerType getSupportedType()
NormalizerSerializerStrategy
getSupportedType
in interface NormalizerSerializerStrategy<NormalizerMinMaxScaler>
Normalizer.getType()
Copyright © 2020. All rights reserved.