File size: 1,475 Bytes
7f50cd1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # TF-IDF + SciRepEval LinearSVR
Run `./run.sh INPUT_DIRECTORY OUTPUT_DIRECTORY`. The fitted vocabulary, IDF,
coefficients, and intercept are included. The output is `predictions.csv` with
columns `paper_id,prediction`. Inference uses no network and reads no labels.
This is the permitted standard text-regression fallback for the SciRepEval Max
Author hIndex task. TF-IDF fitted on the task's shared training text replaces
the published pretrained scientific encoder. The regression procedure is
preserved from SciRepEval commit `e04594e6401cb68fb4ddf6daa801fb219cccc0bb`.
See the enclosing `PORT.md` for this material deviation and the measured score.
The only features are the title and abstract, separated by whitespace.
`TfidfVectorizer()` uses scikit-learn 1.5.2 defaults. `LinearSVR(random_state=42)`
uses three-fold `GridSearchCV` over `10**[-4,-3,-2,-1,0,1,2]`, with the estimator's
default R-squared selection criterion. Cross-validation uses one worker.
The fitted C is 0.01. Inputs and targets are kept on the task's supplied scale.
To refit in the task environment, run the enclosing `train.sh`, which defaults
to `/app/core` and `/app/methods/main`. For direct invocation:
```sh
python3 train.py --core /app/core --model /app/methods/main
```
Runtime dependencies are the supplied NumPy 2.0.2, SciPy 1.14.1, and
scikit-learn 1.5.2. The method does not require any neural library, pretrained
weights, external dataset, downloaded vocabulary, or build step.
|