Skip to content

Commit

Permalink
fix: simplify computation of rotate_labels
Browse files Browse the repository at this point in the history
  • Loading branch information
desilinguist committed Jun 27, 2023
1 parent 78a80ff commit 9e501a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skll/experiments/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def generate_learning_curve_plots(
# if there are any training sizes greater than 1000,
# then we should probably rotate the tick labels
# since otherwise the labels are not clearly rendered
rotate_labels = np.any([size >= 1000 for size in df["training_set_size"].unique()])
rotate_labels = df["training_set_size"].unique().max() >= 1000

# get the columns relevant to the two types of plots
score_columns = [
Expand Down

0 comments on commit 9e501a9

Please sign in to comment.