Skip to content

Commit dc0f5bf

Browse files
author
Pete Luferenko
committed
Make it compile again
1 parent d057cb5 commit dc0f5bf

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

src/Microsoft.ML.Data/Transforms/ConcatTransform.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ public BoundColumn(ISchema inputSchema, ColumnInfo columnInfo, int[] sources, Co
929929
public RowMapperColumnInfo MakeColumnInfo()
930930
{
931931
if (_isIdentity)
932-
return new RowMapperColumnInfo(_columnInfo.Output, OutputType, RowColumnUtils.GetMetadataAsRow(_inputSchema, SrcIndices[0]));
932+
return new RowMapperColumnInfo(_columnInfo.Output, OutputType, RowColumnUtils.GetMetadataAsRow(_inputSchema, SrcIndices[0], x => true));
933933

934934
var metadata = new ColumnMetadataInfo(_columnInfo.Output);
935935
if (_isNormalized)

test/Microsoft.ML.Tests/Scenarios/Api/Estimators/Wrappers.cs

-27
Original file line numberDiff line numberDiff line change
@@ -300,33 +300,6 @@ protected ScorerWrapper<TModel> MakeScorerBasic(TModel predictor, RoleMappedData
300300
}
301301
}
302302

303-
public class MyConcatTransform : IEstimator<TransformWrapper>
304-
{
305-
private readonly IHostEnvironment _env;
306-
private readonly string _name;
307-
private readonly string[] _source;
308-
309-
public MyConcatTransform(IHostEnvironment env, string name, params string[] source)
310-
{
311-
_env = env;
312-
_name = name;
313-
_source = source;
314-
}
315-
316-
public TransformWrapper Fit(IDataView input)
317-
{
318-
var xf = new ConcatTransform(_env, input, _name, _source);
319-
var empty = new EmptyDataView(_env, input.Schema);
320-
var chunk = ApplyTransformUtils.ApplyAllTransformsToData(_env, xf, empty, input);
321-
return new TransformWrapper(_env, chunk);
322-
}
323-
324-
public SchemaShape GetOutputSchema(SchemaShape inputSchema)
325-
{
326-
throw new NotImplementedException();
327-
}
328-
}
329-
330303
public sealed class MyBinaryClassifierEvaluator
331304
{
332305
private readonly IHostEnvironment _env;

0 commit comments

Comments
 (0)