JuliaStats / MLBase.jl

A set of functions to support the development of machine learning algorithms
MIT License
185 stars 63 forks source link

abstract normalizer type #8

Closed wildart closed 10 years ago

wildart commented 10 years ago

Please, consider an abstract type for normalizer (standardizer), so additional implementations ( MinMax, MAD, etc.) would be properly subtyped.

abstract Standardize

type ZScore <: Standardize
    dim::Int
    mean::Vector{Float64}
    scale::Vector{Float64}
end

type MinMax{T} <: Standardize
    dim::Int    
    min::T
    max::T
end
lindahua commented 10 years ago

See https://github.com/JuliaStats/MLBase.jl/pull/9.