oneapi::mkl::stats::make_dataset#

説明#

提供されたパラメーターからデータセットを作成するエントリーポイント。

API#

構文#

バッファー API

template<layout ObservationsLayout = layout::row_major, 
    typename Type> dataset<ObservationsLayout, 
    sycl::buffer<Type, 1>> make_dataset(std::int64_t n_dims, 
    std::int64_t n_observations, 
    sycl::buffer<Type, 1> observations, 
    sycl::buffer<Type, 1> weights = {0}, 
    sycl::buffer<std::int64_t, 1> indices = {0});

USM API

template<layout ObservationsLayout = layout::row_major, 
    typename Type> dataset<ObservationsLayout, 
    Type*> make_dataset(std::int64_t n_dims, 
    std::int64_t n_observations, 
    Type* observations, Type* weights = nullptr, 
    std::int64_t* indices = nullptr);

インクルード・ファイル#

  • oneapi/mkl/stats.hpp

テンプレート・パラメーター#

typename DataType

データセットのタイプ。floatdouble の場合があります。

oneapi::mkl::stats::layout ObservationsLayout

データセットの観測行列のレイアウト。固有の値は次のとおりです: oneapi::mkl::stats::layout::row_major oneapi::mkl::stats::layout::col_major

入力パラメーター#

名前

タイプ

説明

n_dims

std::int64_t

次元数 (変数)

n_observations

std::int64_t

観測数

observations

sycl::buffer<Type, 1> / Type*

観察の行列

オプションの入力パラメーター

名前

タイプ

説明

weights

sycl::buffer<Type, 1> / Type*

サイズ n_observations の重みの配列。配列の要素は負でない数値です。パラメーターが指定されていない場合、各観測値には 1 に等しい重みが割り当てられます。

indices

sycl::buffer<std::int64_t, 1> / std::int64_t*

処理されるベクトル・コンポーネントの配列。配列のサイズは n_dims です。パラメーターが指定されていない場合は、ランダムベクトルのすべてのコンポーネントが処理されます。

戻り値#

バッファー API

oneapi::mkl::stats::dataset<ObservationsLayout, sycl::buffer<Type, 1>>

指定されたパラメーターを保持するデータセット

USM API

oneapi::mkl::stats::dataset<ObservationsLayout, Type*>

指定されたパラメーターを保持するデータセット