Closed sylvaticus closed 3 years ago
Is this not solved by the patch in #84 ?
Thank you. It works in a standard Julia console:
$ julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.0 (2021-03-24)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using Logging, Random, RDatasets,GaussianMixtures
julia> iris = dataset("datasets", "iris");
julia> x = Matrix{Float64}(iris[:,1:4]);
julia> shuffle!(x);
julia> logger = Logging.SimpleLogger(stdout, Logging.Warn)
Base.CoreLogging.SimpleLogger(Base.TTY(RawFD(13) open, 0 bytes waiting), Warn, Dict{Any, Int64}())
julia> global_logger(logger)
ConsoleLogger(Base.TTY(RawFD(15) open, 0 bytes waiting), Info, Logging.default_metafmt, true, 0, Dict{Any, Int64}())
julia> fGMM = GMM(3, x; method=:kmeans, kind=:full);
julia> em!(fGMM, x);
julia>
It doesn't however in Juno, it prints some strange text, but I guess this is a problem of Juno, so I am closing this issue:
Starting Julia...
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.0 (2021-03-24)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using Logging, Random, RDatasets,GaussianMixtures
julia> iris = dataset("datasets", "iris");
julia> x = Matrix{Float64}(iris[:,1:4]);
julia> shuffle!(x);
julia> logger = Logging.SimpleLogger(stdout, Logging.Warn);
julia> global_logger(logger);
julia> fGMM = GMM(3, x; method=:kmeans, kind=:full);
julia> em!(fGMM, x);
3 (1:3
julia> )
3 (1:3,)
3 (1:3,)
I couldn't find in the readme a parameter to null the output (other than redirecting the output stream). For example when I run
dGMM = GMM(3, x; method=:kmeans, kind=:full)
I always getThat's annoying when you do stuff like cross-validation...