Skip to content

Commit

Permalink
change return type of 'psf_predict'
Browse files Browse the repository at this point in the history
  • Loading branch information
mamei16 committed Oct 29, 2023
1 parent 683038b commit 1bc873b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pypsf/predict.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from collections import Counter
from typing import List

import numpy as np

Expand All @@ -8,7 +9,7 @@


def psf_predict(dataset: np.array, n_ahead: int, cycle_length: int, k, w,
supress_warnings=False) -> np.array:
supress_warnings=False) -> List[np.array]:
"""
Run the PSF algorithm on the provided data to generate the desired number
of predictions.
Expand Down Expand Up @@ -67,4 +68,4 @@ def psf_predict(dataset: np.array, n_ahead: int, cycle_length: int, k, w,
psf_warn("No pattern was found in training for any window size.\n"
"Using centroid of largest cluster as the prediction!")

return np.array(temp[-n_ahead_cycles:])
return temp[-n_ahead_cycles:]

0 comments on commit 1bc873b

Please # to comment.