File tree Expand file tree Collapse file tree
src/post_processing/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 to_numeric ,
2727 to_timedelta ,
2828)
29- from sklearn .mixture import GaussianMixture
3029
3130from post_processing .utils .core_utils import get_coordinates , get_sun_times
3231from 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-
468445def assign_daytime (
469446 df : DataFrame ,
470447) -> DataFrame :
You can’t perform that action at this time.
0 commit comments