IZEL_close
オープンされていたハンドラをクローズします。
void IZEL_close(int handle)
引数
引数名 | I/O | 説明 |
---|---|---|
handle | In | ハンドラ値 |
戻り値
なし
サンプルソース
#include <Izel.mqh>
void sample()
{
int handle;
// オープン
handle = IZEL_open();
if( handle < 0 ) {
// エラー処理;
}
// 学習モデルの定義
IZEL_add_layer(handle, 100);
IZEL_add_layer(handle, 200);
IZEL_set_output_layer(handle, 2);
// トレーニングデータのセット
IZEL_open_x_train(handle);
IZEL_append_x_train(handle, 1.0);
IZEL_append_x_train(handle, 2.0);
IZEL_close_x_train(handle);
IZEL_set_y_train(handle, 1);
/*
データのセットを繰り返す。
・
・
・
*/
// トレーニング
IZEL_fit(handle, 100, 32);
// クローズ
IZEL_close(handle);
}