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