public static extern ErrorType normalized_function_set_normalizer(SvmKernelType kernelType, MatrixElementType type, int templateRows, int templateColumns, SvmFunctionType function_type, IntPtr function, NormalizerType normalizer_type, IntPtr normalizer);
internal static NativeMethods.NormalizerType ToNativeNormalizerType(this NormalizerType normalizerType) { switch (normalizerType) { case NormalizerType.Vector: return(NativeMethods.NormalizerType.Vector); case NormalizerType.VectorPca: return(NativeMethods.NormalizerType.VectorPca); default: throw new ArgumentOutOfRangeException(nameof(normalizerType), normalizerType, null); } }
public static Normalizer CreateFeatureNormalize(NormalizerType type, int featureSize) { Normalizer norm = null; switch (type) { case NormalizerType.NONE: norm = new Normalizer(featureSize); break; case NormalizerType.MIN_MAX: norm = new MinMaxNormalizer(featureSize); break; } return(norm); }
protected Normalizer(NormalizerType normalizerType, bool isEnabledDispose = true) : base(isEnabledDispose) { this.NormalizerType = normalizerType; }