Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PROPOSAL] Configuration profile #6

Closed
adrienaury opened this issue Aug 18, 2023 · 0 comments · Fixed by #7
Closed

[PROPOSAL] Configuration profile #6

adrienaury opened this issue Aug 18, 2023 · 0 comments · Fixed by #7

Comments

@adrienaury
Copy link
Member

adrienaury commented Aug 18, 2023

As a user of MIMO, I want to validate

  • a coherence rate between multiple real input fields vs the single pseudonym value
  • a masking rate with or without taking into account empty values
  • constraints on any rate like : equals to 100%, greater or equals to 95%, ...

Solution

Define a validation profile with a YAML configuration file:

mimo.yaml

metrics:
  - name: # name of the field to validate
    exclude: [ nil, "" ] # exclude nil and empty values from the masking rate computation (default: only nil values)
    coherentWith: ["name", "surname"] # list of fields from witch the coherent rate is computed (default: the current field)
    constraints:
      maskingRate:
        shouldEqualsTo: 1
      coherentRate:
        shouldBeGreaterThan: 0.95
$ mkfifo real.jsonl
$ lino pull bdd | tee real.jsonl | pimo | mimo --config mimo.yaml real.jsonl | lino push bdd
@adrienaury adrienaury linked a pull request Aug 18, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant