<gh_stars>1-10
from pathlib import Path


work_dir = Path('/workdir')
data_dir = work_dir / 'data'
cover_dir = data_dir / 'Cover'
jmipod_dir = data_dir / 'JMiPOD'
juniward_dir = data_dir / 'JUNIWARD'
uerd_dir = data_dir / 'UERD'
sample_submission_path = data_dir / 'sample_submission.csv'
test_dir = data_dir / 'Test'

train_folds_path = data_dir / 'train_folds_v2.csv'
experiments_dir = data_dir / 'experiments'
predictions_dir = data_dir / 'predictions'
quality_json_path = data_dir / 'quality.json'
classes = ['Cover', 'JMiPOD', 'JUNIWARD', 'UERD']
unaltered_target = 0
class2target = {
    'Cover': unaltered_target,
    'JMiPOD': 1,
    'JUNIWARD': 2,
    'UERD': 3
}
qualities = [75, 90, 95]
quality2target = {q: t for t, q in enumerate(qualities)}
num_qualities = len(qualities)
class2altered = {cls: int(trg != unaltered_target)
                 for cls, trg in class2target.items()}
altered_classes = [cls for cls, alt in class2altered.items() if alt]
unaltered_classes = [cls for cls, alt in class2altered.items() if not alt]
altered_targets = [class2target[cls] for cls in altered_classes]
unaltered_targets = [class2target[cls] for cls in unaltered_classes]

num_unique_targets = len(set(class2target.values()))
n_folds = 2
folds = list(range(n_folds))

from pathlib import Path


work_dir = Path('/workdir')
data_dir = work_dir / 'data'
cover_dir = data_dir / 'Cover'
jmipod_dir = data_dir / 'JMiPOD'
juniward_dir = data_dir / 'JUNIWARD'
uerd_dir = data_dir / 'UERD'
sample_submission_path = data_dir / 'sample_submission.csv'
test_dir = data_dir / 'Test'

train_folds_path = data_dir / 'train_folds_v2.csv'
experiments_dir = data_dir / 'experiments'
predictions_dir = data_dir / 'predictions'
quality_json_path = data_dir / 'quality.json'
classes = ['Cover', 'JMiPOD', 'JUNIWARD', 'UERD']
unaltered_target = 0
class2target = {
    'Cover': unaltered_target,
    'JMiPOD': 1,
    'JUNIWARD': 2,
    'UERD': 3
}
qualities = [75, 90, 95]
quality2target = {q: t for t, q in enumerate(qualities)}
num_qualities = len(qualities)
class2altered = {cls: int(trg != unaltered_target)
                 for cls, trg in class2target.items()}
altered_classes = [cls for cls, alt in class2altered.items() if alt]
unaltered_classes = [cls for cls, alt in class2altered.items() if not alt]
altered_targets = [class2target[cls] for cls in altered_classes]
unaltered_targets = [class2target[cls] for cls in unaltered_classes]

num_unique_targets = len(set(class2target.values()))
n_folds = 2
folds = list(range(n_folds))