11 references to Create
Microsoft.Data.Analysis.Tests (1)
DataFrameTests.cs (1)
1248
DataFrameColumn stringColumn = DataFrameColumn.
Create
("String", Enumerable.Range(0, length).Select(x => x.ToString()));
Microsoft.ML.Fairlearn (8)
AutoML\AutoMLExperimentExtension.cs (1)
64
var sensitiveFeature = DataFrameColumn.
Create
("group_id", trainData.GetColumn<string>(sensitiveColumnName));
Metrics\FairlearnMetricCatalog.cs (2)
100
result[_sensitiveFeatureColumn] = DataFrameColumn.
Create
(_sensitiveFeatureColumn, groupMetric.Keys.Select(x => x.ToString()));
234
result[_sensitiveFeatureColumn] = DataFrameColumn.
Create
(_sensitiveFeatureColumn, groupMetric.Keys.Select(x => x.ToString()));
Reductions\GridSearchTrialRunner.cs (4)
73
df["sign"] = DataFrameColumn.
Create
("sign", lambdasValue.Select(x => x.sign));
74
df["group_id"] = DataFrameColumn.
Create
("group_id", lambdasValue.Select(x => x.e));
76
_moment.LoadData(trainDataset, DataFrameColumn.Create("y", trainDataset.GetColumn<bool>(this._labelColumn)), DataFrameColumn.
Create
("group_id", trainDataset.GetColumn<string>(this._sensitiveColumn)));
86
_moment.LoadData(validateDataset, DataFrameColumn.Create("y", eval.GetColumn<bool>(this._labelColumn)), DataFrameColumn.
Create
("group_id", validateDataset.GetColumn<string>(this._sensitiveColumn)));
Reductions\Moment.cs (1)
56
var sensitiveFeature = DataFrameColumn.
Create
("group_id", trainData.GetColumn<string>(sensitiveColumnName));
Microsoft.ML.Fairlearn.Tests (2)
GridSearchTest.cs (2)
42
df["sensitiveFeature"] = DataFrameColumn.
Create
("sensitiveFeature", new[] { "a", "b", "a", "a", "b", "a", "b", "b", "a", "b" });
71
df["sensitiveFeature"] = DataFrameColumn.
Create
("sensitiveFeature", new[] { "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "2", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3", "3" });