duo_ai.core.algorithm ===================== .. py:module:: duo_ai.core.algorithm Classes ------- .. autoapisummary:: duo_ai.core.algorithm.Algorithm Module Contents --------------- .. py:class:: Algorithm Bases: :py:obj:`abc.ABC` Abstract base class for all algorithms in the Duo framework. This class defines the interface that all algorithm implementations must follow. .. rubric:: Examples >>> class MyAlgorithm(Algorithm): ... def train(self, *args, **kwargs): ... pass .. py:method:: train(*args, **kwargs) -> None :abstractmethod: Train the model or algorithm using the provided arguments. :param \*args: Variable length argument list. :param \*\*kwargs: Arbitrary keyword arguments. :rtype: None .. rubric:: Examples >>> algo.train(data)