mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-09 14:00:55 +08:00
14 lines
290 B
Python
14 lines
290 B
Python
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT License.
|
|
|
|
import abc
|
|
|
|
|
|
class BaseOptimizer(abc.ABC):
|
|
"""Modeling things"""
|
|
|
|
@abc.abstractmethod
|
|
def __call__(self, *args, **kwargs) -> object:
|
|
""" Generate a optimized portfolio allocation """
|
|
pass
|