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
テンプレート・パラメーター#
|
データセットのタイプ。 |
|
データセットの観測行列のレイアウト。固有の値は次のとおりです: |
入力パラメーター#
名前 |
タイプ |
説明 |
|---|---|---|
n_dims |
|
次元数 (変数) |
n_observations |
|
観測数 |
observations |
|
観察の行列 |
オプションの入力パラメーター
名前 |
タイプ |
説明 |
|---|---|---|
weights |
|
サイズ n_observations の重みの配列。配列の要素は負でない数値です。パラメーターが指定されていない場合、各観測値には 1 に等しい重みが割り当てられます。 |
indices |
|
処理されるベクトル・コンポーネントの配列。配列のサイズは |
戻り値#
バッファー API
|
指定されたパラメーターを保持するデータセット |
USM API
|
指定されたパラメーターを保持するデータセット |