Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLN/MAINT: Fix learncurve order and CI #719

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
run: |
nox -s test-data-download-source
nox -s test-data-download-generated-ci
nox -s coverage --verbose
pip install .[test]
pytest --cov=./ --cov-report=xml
- name: upload code coverage
uses: codecov/codecov-action@v3
11 changes: 6 additions & 5 deletions src/vak/learncurve/frame_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,12 @@ def learning_curve_for_frame_classification_model(
dataset_df = dataset_df[
(dataset_df.train_dur.notna()) & (dataset_df.replicate_num.notna())
]
train_durs = sorted(dataset_df["train_dur"].unique())
replicate_nums = [
int(replicate_num)
for replicate_num in sorted(dataset_df["replicate_num"].unique())
]
train_durs = sorted(
[int(train_dur) for train_dur in dataset_df["train_dur"].unique()]
)
replicate_nums = sorted(
[int(replicate_num) for replicate_num in dataset_df["replicate_num"].unique()]
)
to_do = []
for train_dur in train_durs:
for replicate_num in replicate_nums:
Expand Down
6 changes: 6 additions & 0 deletions src/vak/prep/frame_classification/source_files.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""Get source files for a dataset, or make them.

Gets either audio or spectrogram files from ``data dir``,
possibly paired with annotation files."""
from __future__ import annotations

import logging
import pathlib

Expand Down
Loading