Package for KPCA

Hi, I am a newbie to Julia. I am looking for a package for KPCA please. I tried using MultivariateStats, unfortunately, ran into the below issue

I couldn’t find any other packages which would offer similar functionality - any ideas?

thanks
Rohit

Hi

I can’t reproduce your issue with julia 1.7.1.

Can you run the following in a fresh julia session and report the full error you get?

using Pkg; Pkg.activate(temp = true); Pkg.add.(["MultivariateStats", "RDatasets"])
using MultivariateStats, RDatasets

# load iris dataset
iris = dataset("datasets", "iris")

Xtr = Matrix(iris[!,1:4])'
Xtr_labels = convert(Array, iris[!,5])

model = fit(
KernelPCA,
Xtr;
kernel = (x, y) -> x'y,
maxoutdim = 3,
inverse = true,
)
1 Like

@jbrea : Thanks mate. it works fine now. I should have tried with Julia 1.7.1.

ta!

1 Like