IQVIA-ML / TreeParzen.jl

TreeParzen.jl, a pure Julia hyperparameter optimiser with MLJ integration
Other
35 stars 5 forks source link

Collect associated Vectors into Vector of structs #24

Open ghost opened 4 years ago

ghost commented 4 years ago

Describe the solution you'd like

Rather than pass around Vectors of mu and sigma values (and others such as weights), and then check that their length is equivalent in GMM functions, instead create a Vector of structs, where each struct collects the data for one gaussian. Something like this maybe:

struct DistDetails
    mu::Float64
    sigma::Float64
end
details = [DistDetails(6.0, 7.1), DistDetails(4.0, 8.8)]