mirror of
https://github.com/macaodha/batdetect2.git
synced 2026-04-04 15:20:19 +02:00
Run formatting
This commit is contained in:
parent
8313fe1484
commit
cce1b49a8d
@ -28,10 +28,12 @@ def split_dataset_by_recordings(
|
||||
majority_class = (
|
||||
sound_events.groupby("recording_id")
|
||||
.apply(
|
||||
lambda group: group["class_name"] # type: ignore
|
||||
.value_counts()
|
||||
.sort_values(ascending=False)
|
||||
.index[0],
|
||||
lambda group: (
|
||||
group["class_name"] # type: ignore
|
||||
.value_counts()
|
||||
.sort_values(ascending=False)
|
||||
.index[0]
|
||||
),
|
||||
include_groups=False, # type: ignore
|
||||
)
|
||||
.rename("class_name")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user