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 NormalizerType
getSupportedType()
Get the enum opType of the supported normalizerNormalizerMinMaxScaler
restore(@NonNull InputStream stream)
Restore a normalizer that was previously serialized by this strategyvoid
write(@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 IOException
Description copied from interface:NormalizerSerializerStrategy
Serialize a normalizer to a output stream- Specified by:
write
in 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:NormalizerSerializerStrategy
Restore a normalizer that was previously serialized by this strategy- Specified by:
restore
in 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:NormalizerSerializerStrategy
Get the enum opType of the supported normalizer- Specified by:
getSupportedType
in interfaceNormalizerSerializerStrategy<NormalizerMinMaxScaler>
- Returns:
- the enum opType
- See Also:
Normalizer.getType()
-
-