IZEL_load

保存した学習モデルを読み込みます。保存されたファイルを読み込むことで学習結果を再利用することができます。

void  IZEL_load(int handle, string filename)

引数

  引数名

I/O                説明
handle In ハンドラ値
filename In 読み込むファイル名を指定します。

戻り値

0 : 正常

-1: エラー

サンプルソース

#include <Izel.mqh>

void sample()
{
     int handle;
     double prediction_array[2];
     int prediction;

     //   オープン
     handle = IZEL_open();

     if( handle < 0 ) {
        // エラー処理;
     }
   
     IZEL_load(handle, "IzelParam.pcl");

     IZEL_open_x_predict(handle);
     IZEL_append_x_predict(handle, 1.0);
     IZEL_append_x_predict(handle, 2.0);
     IZEL_predict(handle, prediction_array);
     prediction = IZEL_max_index(handle, prediction_array);   
}   
  
Copyright (C) izel.cloud-line.com All Rights Reserved.