APIs

API reference: pe.api package

pe.api.API is responsible for implementing the foundation model APIs. It has the following key methods:

  • pe.api.API.random_api(): Randomly generates the synthetic samples for the initial samples of the Private Evolution algorithm.

  • pe.api.API.variation_api(): Generates the variations of the given synthetic samples for the initial or the next Private Evolution iteration.

Available APIs

Currently, the following APIs are implemented:

Adding Your Own APIs

To add your own APIs, you need to create a class that inherits from pe.api.API and implements the pe.api.API.random_api() and pe.api.API.variation_api() methods.

Citations