Skip to content

Error when loading ContinuousEncoder #1181

@LucasMatSP

Description

@LucasMatSP

The following line suddenly started running into an error saying MLJModels doesn't provide this model.

ContinuousEncoder = @load ContinuousEncoder pkg = MLJModels

Checking the docs for changes about this transformer, I noticed a strange description:

A model type for constructing a continuous encoder, based on unknown.jl, and implementing the MLJ model interface.
From MLJ, the type can be imported using
ContinuousEncoder = @load ContinuousEncoder pkg=unknown

Changing my code to bring ContinuousEncoder from MLJTransforms instead solved the problem, so this is mostly a docs problem.

Environment:

julia> versioninfo()
Julia Version 1.10.10
Commit 95f30e51f41 (2025-06-27 09:51 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 96 × Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, icelake-server)
Threads: 1 default, 0 interactive, 1 GC (on 96 virtual cores)
Environment:
  JULIA_DEPOT_PATH = /home/jrun/data/.julia:/home/jrun/.julia:
  JULIA_PKG_SERVER = internal.juliahub.com
  JULIA_VSCODE_LANGUAGESERVER_CHANNEL = 1.10.10
  JULIA_PKG_USE_CLI_GIT = true
  JULIA_EDITOR = code
  JULIA_VSCODE_REPL = 1

(code) pkg> st
Status `/mnt/data/code/Project.toml`
  [336ed68f] CSV v0.10.15
  [aaaa29a8] Clustering v0.15.8
  [a93c6f00] DataFrames v1.8.0
  [b4f34e82] Distances v0.10.12
  [f6006082] EvoTrees v0.17.4
  [ec8451be] KernelFunctions v0.10.65
  [add582a8] MLJ v0.21.0
  [d354fa79] MLJClusteringInterface v0.1.13
  [1b6a4a23] MLJMultivariateStatsInterface v0.5.3
  [23777cdb] MLJTransforms v0.1.1
  [6f286f6a] MultivariateStats v0.10.3
  [636a865e] NearestNeighborModels v0.2.3
  [37e2e46d] LinearAlgebra
  [9a3f8284] Random
  [10745b16] Statistics v1.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions