Create dataset slices to focus on a part of data
Starting from Giskard v.1.4.0 it's possible to define a filtering function while inspecting a dataset. Applying this filter can allow to focus on a specific part of a dataset based on a custom criteria.
In order to create a slice, open an inspection and click on "Slice to apply" selector:
In the modal that appears one can implement the filtering logic in python:
filter_rowfunction will be applied to each row of the dataset and if it returns a
Truevalue the current row will be part of a resulting slice, else it'll be filtered out.
For example, in case of a demo German credit scoring project, we can create a filter called "Older than 50" that would look like this:
return row.age > 50
Last modified 1mo ago