Skip to content

Kriging error in example from tutorial #313

@vikram-s-narayan

Description

@vikram-s-narayan

Description:
The Kriging code from the tutorial produces a 'ReadOnlyMemory()' error.

To Reproduce:
Run the following code. Error occurs on my system if number of sampling points is greater than 65:

using Surrogates
f = x -> exp(x)*x^2+x^3
lb = 0.0
ub = 10.0
x = sample(100,lb,ub,UniformSample())
y = f.(x)
p = 1.9
my_krig = Kriging(x,y,lb,ub,p=p)

Device information:
MacBook Air (M1, 2020)
Chip Apple M1

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