示例#1
0
        private protected override void SaveModel(ModelSaveContext ctx)
        {
            Host.CheckValue(ctx, "ctx");
            ctx.CheckAtModel();
            ctx.SetVersionInfo(GetVersionInfo());

            ctx.Writer.Write(_sortColumn);
            ctx.Writer.Write(_reverse);
            ctx.Writer.Write(_numThreads.HasValue ? _numThreads.Value : -1);
        }
        private protected override void SaveModel(ModelSaveContext ctx)
        {
            Host.CheckValue(ctx, "ctx");
            ctx.CheckAtModel();
            ctx.SetVersionInfo(GetVersionInfo());

            ctx.Writer.Write(_inDataFrame);
            ctx.Writer.Write(_async);
            ctx.Writer.Write(_numThreads.HasValue ? _numThreads.Value : -1);
            ctx.Writer.Write(_saverSettings);
            if (!_inDataFrame)
            {
                ctx.Writer.Write(_cacheFile);
                ctx.Writer.Write(_reuse);
            }
        }