o4-mini-2025-04-16· OpenAI
LMArena Human Preference 140K
I also have file sliding_scores-full-offset-neg.txt. I want to reverse it before saving
- User
I also have file sliding_scores-full-offset-neg.txt. I want to reverse it before saving
- Assistant
Here’s a small Python snippet that
- Loads both of your
.txtfiles - Reverses the “neg” array
- Saves each as a
.npy
import numpy as np # 1) Positive scores: load & save directly pos = np.loadtxt('sliding_scores-full-offset-pos.txt') np.save('sliding_scores-full-offset-pos.npy', pos) # 2) Negative scores: load, reverse, then save neg = np.loadtxt('sliding_scores-full-offset-neg.txt') neg_reversed = neg[::-1] # reverse the 1D array np.save('sliding_scores-full-offset-neg.npy', neg_reversed) print("Done! 🎉")How it works:
np.loadtxt(...)reads the text file into a 1-D float array.neg[::-1]slices the array in reverse order.
- Loads both of your
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.