Skip to content

Commit 76f6645

Browse files
committed
remove sklearn
1 parent b0bbee6 commit 76f6645

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

src/post_processing/utils/fpod_utils.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
to_numeric,
2727
to_timedelta,
2828
)
29-
from sklearn.mixture import GaussianMixture
3029

3130
from post_processing.utils.core_utils import get_coordinates, get_sun_times
3231
from user_case.config import season_color, site_colors
@@ -443,28 +442,6 @@ def feeding_buzz(
443442
return f
444443

445444

446-
def gmm_log(
447-
array: Series,
448-
) -> None:
449-
"""Gaussian mixture model.
450-
451-
Parameters
452-
----------
453-
array: Series
454-
Data you want to test for clustering.
455-
456-
"""
457-
log_ici = np.log(array.values).reshape(-1, 1)
458-
gmm_3 = GaussianMixture(
459-
n_components=3,
460-
covariance_type="full",
461-
random_state=42,
462-
max_iter=200,
463-
n_init=10,
464-
)
465-
gmm_3.fit(log_ici)
466-
467-
468445
def assign_daytime(
469446
df: DataFrame,
470447
) -> DataFrame:

0 commit comments

Comments
 (0)