Skip to content

Commit

Permalink
Removing get_prediction_interval() method since it hasn't been implem…
Browse files Browse the repository at this point in the history
…ented anywhere yet
  • Loading branch information
dmnapolitano committed Mar 18, 2024
1 parent 70bbaf7 commit 1c18883
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
3 changes: 0 additions & 3 deletions src/elexsolver/TransitionSolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ def fit_predict(self, X: np.ndarray, Y: np.ndarray, weights: np.ndarray | None =
"""
raise NotImplementedError

def get_prediction_interval(self, pi: float):
raise NotImplementedError

@property
def transitions(self) -> np.ndarray:
return self._transitions
Expand Down
6 changes: 0 additions & 6 deletions tests/test_transition_matrix_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,6 @@ def test_matrix_fit_predict_pivoted():
np.testing.assert_allclose(expected, current, rtol=RTOL, atol=ATOL)


def test_matrix_get_prediction_interval():
tms = TransitionMatrixSolver()
with pytest.raises(NotImplementedError):
tms.get_prediction_interval(0)


def test_matrix_fit_predict_bad_dimensions():
X = np.array(
[
Expand Down
7 changes: 0 additions & 7 deletions tests/test_transition_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ def test_superclass_fit_predict():
ts.fit_predict(None, None)


@patch.object(TransitionSolver, "__abstractmethods__", set())
def test_superclass_get_prediction_interval():
with pytest.raises(NotImplementedError):
ts = TransitionSolver()
ts.get_prediction_interval(0)


@patch.object(TransitionSolver, "__abstractmethods__", set())
def test_superclass_get_transitions():
ts = TransitionSolver()
Expand Down

0 comments on commit 1c18883

Please sign in to comment.