all pretty bad because outliers - joint histogram?
- User
all pretty bad because outliers - joint histogram?
Assistant
Ah yes, a joint histogram would be better for comparing the distributions directly, especially with outliers. Here's a cleaner visualization approach:
plt.figure(figsize=(12, 6)) # Create joint histogram with alpha transparency for name in chunk_lens: plt.hist(chunk_lens[name], bins=50, alpha=0.5, label=name, density=True, histtype='stepfilled') plt.xlabel('Chunk Length (characters)') plt.ylabel('Density') plt.title('Distribution of Chunk Lengths Across Tokenizers') plt.legend() # Optional: Add log scale if distributions are still hard to compare plt.yscale('log') # Uncomment if needed # plt.xscale('log') # Uncomment if needed plt.grid(True, alpha=0.3) plt.show()This should give a much clearer comparison of the distributions by overlaying them on the same axes. The alpha transparency helps see where they overlap. Using log scale(s) can help if the distributions are still hard to compare due to large value ranges.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.