コード例 #1
0
ファイル: OpenCVModel.cs プロジェクト: speedyjeff/mlmodels
        public override void Save(string path)
        {
            if (TrainedModel == null)
            {
                throw new InvalidOperationException("Must train/load a model before saving");
            }

            TrainedModel.Save(path);
        }
コード例 #2
0
        public override void Save(string path)
        {
            if (TrainedModel == null)
            {
                throw new Exception("Must initialize the model before calling");
            }

            TrainedModel.Save(path);
        }