Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: subsampler class and sgdrf config object #47

Merged
merged 2 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions sgdrf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@
from importlib.metadata import metadata as __load
from pathlib import Path

from .kernel import KernelType
from .model import SGDRF
from .optimizer import OptimizerType
from .subsample import SubsampleType
from .sgdrf_config import SGDRFConfig
from .subsample import (
ExponentialSubsampler,
LatestSubsampler,
MixingSubsampler,
Subsampler,
UniformSubsampler,
)

pkg = Path(__file__).absolute().parent.name
logger = logging.getLogger(pkg)
Expand All @@ -35,7 +40,15 @@
except PackageNotFoundError: # pragma: no cover
logger.error(f"Could not load package metadata for {pkg}. Is it installed?")

__all__ = ["SGDRF", "KernelType", "SubsampleType", "OptimizerType"]
__all__ = [
"SGDRF",
"SGDRFConfig",
"Subsampler",
"MixingSubsampler",
"LatestSubsampler",
"UniformSubsampler",
"ExponentialSubsampler",
]


class SgdrfAssets:
Expand Down
56 changes: 0 additions & 56 deletions sgdrf/kernel.py

This file was deleted.

Loading
Loading