Class MinMaxSerializerStrategy
- java.lang.Object
-
- org.nd4j.linalg.dataset.api.preprocessor.serializer.MinMaxSerializerStrategy
-
- All Implemented Interfaces:
NormalizerSerializerStrategy<NormalizerMinMaxScaler>
public class MinMaxSerializerStrategy extends Object implements NormalizerSerializerStrategy<NormalizerMinMaxScaler>
-
-
Constructor Summary
Constructors Constructor Description MinMaxSerializerStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NormalizerTypegetSupportedType()Get the enum opType of the supported normalizerNormalizerMinMaxScalerrestore(@NonNull InputStream stream)Restore a normalizer that was previously serialized by this strategyvoidwrite(@NonNull NormalizerMinMaxScaler normalizer, @NonNull OutputStream stream)Serialize a normalizer to a output stream
-
-
-
Method Detail
-
write
public void write(@NonNull @NonNull NormalizerMinMaxScaler normalizer, @NonNull @NonNull OutputStream stream) throws IOExceptionDescription copied from interface:NormalizerSerializerStrategySerialize a normalizer to a output stream- Specified by:
writein interfaceNormalizerSerializerStrategy<NormalizerMinMaxScaler>- Parameters:
normalizer- the normalizerstream- the output stream to write to- Throws:
IOException
-
restore
public NormalizerMinMaxScaler restore(@NonNull @NonNull InputStream stream) throws IOException
Description copied from interface:NormalizerSerializerStrategyRestore a normalizer that was previously serialized by this strategy- Specified by:
restorein interfaceNormalizerSerializerStrategy<NormalizerMinMaxScaler>- Parameters:
stream- the stream to read serialized data from- Returns:
- the restored normalizer
- Throws:
IOException
-
getSupportedType
public NormalizerType getSupportedType()
Description copied from interface:NormalizerSerializerStrategyGet the enum opType of the supported normalizer- Specified by:
getSupportedTypein interfaceNormalizerSerializerStrategy<NormalizerMinMaxScaler>- Returns:
- the enum opType
- See Also:
Normalizer.getType()
-
-