Skip to content

Commit a22914c

Browse files
author
Ivan Matantsev
committed
one small change
1 parent d942001 commit a22914c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Microsoft.ML.Core/Data/IEstimator.cs

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ public Column(string name, VectorKind vecKind, DataKind itemKind, bool isKey, st
4545
IsKey = isKey;
4646
MetadataKinds = metadataKinds;
4747
}
48+
49+
public Column CloneWithNewName(string newName)
50+
{
51+
Contracts.Check(newName != Name, "Should be different name");
52+
return new Column(newName, Kind, ItemKind, IsKey, MetadataKinds);
53+
}
4854
}
4955

5056
public SchemaShape(Column[] columns)

0 commit comments

Comments
 (0)