Skip to content

Commit

Permalink
Skip improt
Browse files Browse the repository at this point in the history
  • Loading branch information
tingiskhan committed Nov 16, 2024
1 parent 81628a6 commit ff5e72e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
6 changes: 0 additions & 6 deletions skyro/_mixin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import sys
from functools import cached_property
from operator import attrgetter
from random import randint
Expand All @@ -10,11 +9,6 @@
from numpyro.infer import MCMC, NUTS
from numpyro.infer.mcmc import MCMCKernel

if sys.version_info >= (3, 11):
pass
else:
pass

from ._result import NumpyroResultSet
from .exc import ConvergenceError

Expand Down
10 changes: 2 additions & 8 deletions skyro/sklearn.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import sys
from typing import Any, Dict

import numpy as np
from numpyro.infer import Predictive
from skbase.base import BaseEstimator

if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self

from skyro._mixin import BaseNumpyroMixin
from ._mixin import BaseNumpyroMixin


class BaseNumpyroEstimator(BaseNumpyroMixin, BaseEstimator):
Expand Down Expand Up @@ -88,5 +82,5 @@ def predict(self, X, full_posterior: bool = False, **kwargs):

return self.reduce(output)

def sample_prior_predictive(self, X, **kwargs) -> Self:
def sample_prior_predictive(self, X, **kwargs):
return self._do_sample(X=X)

0 comments on commit ff5e72e

Please sign in to comment.