Skip to content

Error when trying the Basic Usage instructions #225

@LeoWelter

Description

@LeoWelter

New to Julia I'm trying the following:

using MLDatasets
trainset = MNIST(:train)

instead of getting

dataset MNIST:
  metadata    =>    Dict{String, Any} with 3 entries
  split       =>    :train
  features    =>    28×28×60000 Array{Float32, 3}
  targets     =>    60000-element Vector{Int64}

I get

ERROR: MethodError: objects of type Module are not callable
Stacktrace:
 [1] top-level scope
   @ REPL[4]:1

The same for Iris.
I'm using Julia 1.10.1 freshly installed. I downloaded the data with MNIST.download()
What am I missing here?

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