[Solved] OpenTurns Error when trying to use kernel build [closed]


The build only takes a Sample object. You have to convert your numpy array:

import openturns as ot
import numpy as np
sample = ot.Sample(np.array([(1.0, 2.0), (3.0, 4.0), (5.0, 6.0)]))

For the conversion to happen, your data need to have the proper shape: (n_sample, dimension)

In this example, we have 3 sample and the dimension is 2.

0

solved OpenTurns Error when trying to use kernel build [closed]