Work on your own project

Last updated on 2024-07-08 | Edit this page

Overview

Questions

  • How can you use vantage6 in your own project?

Objectives

  • Start working on your own research project

OR

  • Complete some advanced challenges

Working on your own project

In this chapter, we will give you the opportunity to work on your own project. Feel free to ask questions and discuss your project with the instructors. We are here to help you!

If you prefer, you can also complete some advanced challenges that we have prepared for you.

Advanced challenges

Challenge: Add privacy filters to your algorithm

In the previous lesson, you have created a simple algorithm. Now, you can add privacy filters to your algorithm.

  • Create an algorithm that does not return the results unless there are more than 10 data points.
  • Make this value configurable by the node administrator. Hint: look up the node configuration options in the documentation to provide environment variables to your algorithm.
  • What else could you do to protect the privacy of the data?
  • When the privacy filters are triggered, use one of the vantage6 exceptions to return an error message.

Hint: the contingency table algorithm already has a few privacy filters implemented. You can use this algorithm as an example.

Challenge: Document your algorithm

In the previous lesson, you have created a simple algorithm. For this challenge, learn how to document your algorithm.

  • Make sure a documentation template is available in the algorithm repository. If it is not, you can generate it using the v6 algorithm command.
  • Try out how you can run the documentation locally in your browser, and adapt it to your needs.

Challenge: Visualize the results of your algorithm in the UI

In the previous lesson, you have created a simple algorithm. In this challenge, modify the algorithm in the algorithm store to include a visualization of the results. You can do this in the UI by modifying your algorithm in the algorithm store.

Challenge: Expand your average algorithm

In the previous lesson, you have created a simple average algorithm. In this challenge, expand your algorithm to calculate the one or more of the following:

  • Standard deviation
  • Minimum
  • Maximum

Consider which data you share in the partial results and how you can minimize this to protect the privacy of the data.