1 write to Tags
Microsoft.ML.Fairlearn (1)
Reductions\Moment.cs (1)
49Tags = new DataFrame();
10 references to Tags
Microsoft.ML.Fairlearn (10)
Reductions\Moment.cs (3)
31public DataFrameColumn SensitiveFeatureColumn { get => Tags["group_id"]; } 50Tags["label"] = label; 51Tags["group_id"] = sensitiveFeature;
Reductions\UtilityParity.cs (7)
84ProbGroupEvent = Tags.GroupBy("group_id").Count()["label"] / (TotalSamples * 1.0); 93Tags["pred"] = yPred; 97var expectEvent = Tags["pred"].Mean(); 98var expectGroupEvent = Tags.GroupBy("group_id").Mean("pred").OrderBy(("group_id"))["pred"]; 112var groupID = Tags.GroupBy("group_id").Mean("pred").OrderBy("group_id")["group_id"]; 150long dataSetLength = Tags.Rows.Count(); 154foreach (DataFrameRow row in Tags.Rows)