Esempio n. 1
0
        public override void Save(string path)
        {
            if (TrainedModel == null)
            {
                throw new InvalidOperationException("Must train/load a model before saving");
            }

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

            TrainedModel.Save(path);
        }