duo_ai.core.algorithm

Classes

Algorithm

Abstract base class for all algorithms in the Duo framework.

Module Contents

class duo_ai.core.algorithm.Algorithm[source]

Bases: abc.ABC

Abstract base class for all algorithms in the Duo framework.

This class defines the interface that all algorithm implementations must follow.

Examples

>>> class MyAlgorithm(Algorithm):
...     def train(self, *args, **kwargs):
...         pass
abstract train(*args, **kwargs) None[source]

Train the model or algorithm using the provided arguments.

Parameters:
  • *args – Variable length argument list.

  • **kwargs – Arbitrary keyword arguments.

Return type:

None

Examples

>>> algo.train(data)