Exemplo n.º 1
0
        public IRow GetStatsIRowOrNull(RoleMappedSchema schema)
        {
            if (_stats == null)
            {
                return(null);
            }

            var cols  = new List <IColumn>();
            var names = default(VBuffer <ReadOnlyMemory <char> >);

            _stats.AddStatsColumns(cols, null, schema, ref names);
            return(RowColumnUtils.GetRow(null, cols.ToArray()));
        }
Exemplo n.º 2
0
        public override IRow GetStatsIRowOrNull(RoleMappedSchema schema)
        {
            if (_stats == null)
            {
                return(null);
            }
            var cols  = new List <IColumn>();
            var names = default(VBuffer <DvText>);

            MetadataUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, Weight.Length, ref names);

            // Add the stat columns.
            _stats.AddStatsColumns(cols, this, schema, ref names);
            return(RowColumnUtils.GetRow(null, cols.ToArray()));
        }