37 references to Create
Microsoft.Data.Analysis.Tests (14)
DataFrameTests.cs (12)
53
var dc0 = DataFrameColumn.
Create
("a0", new int[] { 0, 0 });
1252
DataFrameColumn byteColumn = DataFrameColumn.
Create
("Byte", Enumerable.Range(0, length).Select(x => (byte)x));
1254
DataFrameColumn decimalColumn = DataFrameColumn.
Create
("Decimal", Enumerable.Range(0, length).Select(x => (decimal)x));
1256
DataFrameColumn doubleColumn = DataFrameColumn.
Create
("Double", Enumerable.Range(0, length).Select(x => (double)x));
1258
DataFrameColumn floatColumn = DataFrameColumn.
Create
("Float", Enumerable.Range(0, length).Select(x => (float)x));
1260
DataFrameColumn intColumn = DataFrameColumn.
Create
("Int", Enumerable.Range(0, length).Select(x => x));
1262
DataFrameColumn longColumn = DataFrameColumn.
Create
("Long", Enumerable.Range(0, length).Select(x => (long)x));
1264
DataFrameColumn sbyteColumn = DataFrameColumn.
Create
("Sbyte", Enumerable.Range(0, length).Select(x => (sbyte)x));
1266
DataFrameColumn shortColumn = DataFrameColumn.
Create
("Short", Enumerable.Range(0, length).Select(x => (short)x));
1268
DataFrameColumn uintColumn = DataFrameColumn.
Create
("Uint", Enumerable.Range(0, length).Select(x => (uint)x));
1270
DataFrameColumn ulongColumn = DataFrameColumn.
Create
("Ulong", Enumerable.Range(0, length).Select(x => (ulong)x));
1272
DataFrameColumn ushortColumn = DataFrameColumn.
Create
("Ushort", Enumerable.Range(0, length).Select(x => (ushort)x));
DataFrameTests.Utils.cs (2)
207
DataFrameColumn baseColumn1 = DataFrameColumn.
Create
("Column1", Enumerable.Range(0, length).Select(x => (T1)Convert.ChangeType(x % 2 == 0 ? 0 : 1, typeof(T1))));
208
DataFrameColumn baseColumn2 = DataFrameColumn.
Create
("Column2", Enumerable.Range(0, length).Select(x => (T2)Convert.ChangeType(x % 2 == 0 ? 0 : 1, typeof(T2))));
Microsoft.ML.Fairlearn (18)
AutoML\AutoMLExperimentExtension.cs (1)
65
var label = DataFrameColumn.
Create
("label", trainData.GetColumn<bool>(labelColumn));
Metrics\FairlearnMetricCatalog.cs (12)
101
result["AUC"] = DataFrameColumn.
Create
("AUC", groupMetric.Keys.Select(k => groupMetric[k].AreaUnderRocCurve)); //coloumn name?
102
result["Accuracy"] = DataFrameColumn.
Create
("Accuracy", groupMetric.Keys.Select(k => groupMetric[k].Accuracy));
103
result["PosPrec"] = DataFrameColumn.
Create
("PosPrec", groupMetric.Keys.Select(k => groupMetric[k].PositivePrecision));
104
result["PosRecall"] = DataFrameColumn.
Create
("PosRecall", groupMetric.Keys.Select(k => groupMetric[k].PositiveRecall));
105
result["NegPrec"] = DataFrameColumn.
Create
("NegPrec", groupMetric.Keys.Select(k => groupMetric[k].NegativePrecision));
106
result["NegRecall"] = DataFrameColumn.
Create
("NegRecall", groupMetric.Keys.Select(k => groupMetric[k].NegativeRecall));
107
result["F1Score"] = DataFrameColumn.
Create
("F1Score", groupMetric.Keys.Select(k => groupMetric[k].F1Score));
108
result["AreaUnderPrecisionRecallCurve"] = DataFrameColumn.
Create
("AreaUnderPrecisionRecallCurve", groupMetric.Keys.Select(k => groupMetric[k].AreaUnderPrecisionRecallCurve));
235
result["RSquared"] = DataFrameColumn.
Create
("RSquared", groupMetric.Keys.Select(k => groupMetric[k].RSquared));
236
result["RMS"] = DataFrameColumn.
Create
("RMS", groupMetric.Keys.Select(k => groupMetric[k].RootMeanSquaredError));
237
result["MSE"] = DataFrameColumn.
Create
("MSE", groupMetric.Keys.Select(k => groupMetric[k].MeanSquaredError));
238
result["MAE"] = DataFrameColumn.
Create
("MAE", groupMetric.Keys.Select(k => groupMetric[k].MeanAbsoluteError));
Reductions\GridSearchTrialRunner.cs (4)
75
df["value"] = DataFrameColumn.
Create
("value", lambdasValue.Select(x => x.value));
76
_moment.LoadData(trainDataset, DataFrameColumn.
Create
("y", trainDataset.GetColumn<bool>(this._labelColumn)), DataFrameColumn.Create("group_id", trainDataset.GetColumn<string>(this._sensitiveColumn)));
84
var column = DataFrameColumn.
Create
<float>("pred", predictedLabel);
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)
57
var labelColumn = DataFrameColumn.
Create
("label", trainData.GetColumn<bool>(label));
Microsoft.ML.Fairlearn.Tests (5)
GridSearchTest.cs (5)
39
df["X"] = DataFrameColumn.
Create
("X", new[] { 0f, 1, 2, 3, 4, 5, 6, 7, 8, 9 });
40
df["y_true"] = DataFrameColumn.
Create
("y_true", new[] { true, true, true, true, true, true, true, false, false, false });
41
df["y_pred"] = DataFrameColumn.
Create
("y_pred", new[] { true, true, true, true, false, false, false, true, false, false });
63
df["score_feature"] = DataFrameColumn.
Create
("score_feature", score_feature);
64
df["y"] = DataFrameColumn.
Create
("y", new[] {