public class FairGBMParamParserUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Optional<Integer> |
getConstraintGroupColumnIndex(Map<String,String> mapParams,
com.feedzai.openml.data.schema.DatasetSchema schema)
Gets the (canonical) index of the constraint group column.
|
static Optional<Integer> |
getConstraintGroupColumnIndexWithoutLabel(Map<String,String> mapParams,
com.feedzai.openml.data.schema.DatasetSchema schema)
Gets the index of the constraint group column without the label column (LightGBM-specific format)
|
static boolean |
isFairnessConstrained(Map<String,String> mapParams)
Whether the given mapParams correspond to a constrained LightGBM objective (aka FairGBM).
|
public static boolean isFairnessConstrained(Map<String,String> mapParams)
mapParams - set of train parameters for LightGBM.public static Optional<Integer> getConstraintGroupColumnIndex(Map<String,String> mapParams, com.feedzai.openml.data.schema.DatasetSchema schema)
mapParams - LightGBM train parameters.schema - Schema of the dataset.public static Optional<Integer> getConstraintGroupColumnIndexWithoutLabel(Map<String,String> mapParams, com.feedzai.openml.data.schema.DatasetSchema schema)
mapParams - LightGBM train parameters.schema - Schema of the dataset.Copyright © 2022 Feedzai. All rights reserved.