madeleineudell / LowRankModels.jl

LowRankModels.jl is a julia package for modeling and fitting generalized low rank models.
Other
190 stars 65 forks source link

Using LowRankModels, DataFrames does not import fit!(g::GLRM) into the namespace #20

Closed alejandroschuler closed 9 years ago

alejandroschuler commented 9 years ago
julia> using DataFrames, LowRankModels

julia> methods(fit!)
#1 method for generic function "fit!":
fit!(glrm::GLRM) at /Users/aschuler/.julia/v0.3/LowRankModels/src/glrm.jl:171

but (note the order of the using statement):

julia> using LowRankModels, DataFrames

julia> methods(fit!)
#1 method for generic function "fit!":
fit!(obj::StatisticalModel,data...) at /Users/aschuler/.julia/v0.3/StatsBase/src/statmodels.jl:14
madeleineudell commented 9 years ago

Looks like the fit! methods of the two packages overwrite each other instead of adding new methods to the methods table. You should raise this issue on julialang/julia or ask a question about it on julia-users.

On Mon, Jul 6, 2015 at 11:25 AM, Alejandro Schuler <notifications@github.com

wrote:

julia> using DataFrames, LowRankModels

julia> methods(fit!)# 1 method for generic function "fit!":fit!(glrm::GLRM) at /Users/aschuler/.julia/v0.3/LowRankModels/src/glrm.jl:171

but (note the order of the using statement):

julia> using LowRankModels, DataFrames Warning: using LowRankModels.scale in module Main conflicts with an existing identifier.

julia> methods(fit!)# 1 method for generic function "fit!":fit!(obj::StatisticalModel,data...) at /Users/aschuler/.julia/v0.3/StatsBase/src/statmodels.jl:14

— Reply to this email directly or view it on GitHub https://github.com/madeleineudell/LowRankModels.jl/issues/20.

Madeleine Udell www.stanford.edu/~udell

madeleineudell commented 9 years ago

This topic is discussed on this thread of julia-users.