|
1 | | -This is a new version of the package that introduces a new method for predicting gender from Brazilian first names using a neural network model. In addition, this version includes some updates to the documentation, code improvements, and several new tests. |
| 1 | +This is a new version (1.4.0) that introduces asymmetrical thresholds for |
| 2 | +gender classification: users can now set a different threshold for each sex |
| 3 | +in `get_gender()` and `get_gender_nn()` (e.g., `threshold = c(0.9, 0.8)`), |
| 4 | +and threshold combinations that would make the female and male bands overlap |
| 5 | +are now rejected with an informative error. The release also adds a |
| 6 | +`nn_size` argument to split large inputs into batches, a `device` argument |
| 7 | +to run neural network inference on a GPU (`cuda` or `mps`), fixes a |
| 8 | +vocabulary mismatch in the neural network character encoder (`<UNK>` vs |
| 9 | +`<PAD>`), and moves `torch` from `Imports` to `Suggests` -- the neural |
| 10 | +network model is now built only when the NN backend is actually used, and a |
| 11 | +clear message tells users to install `torch` when it is missing. See |
| 12 | +NEWS.md for full details. |
| 13 | + |
| 14 | +Note on file downloads: `download_gender_model()` downloads pre-trained |
| 15 | +model weights from Hugging Face to `tools::R_user_dir("genderBR", "cache")`. |
| 16 | +This happens only on explicit user request, never at load or install time, |
| 17 | +and the corresponding examples are wrapped in `\dontrun{}` so R CMD check |
| 18 | +does not trigger it. |
2 | 19 |
|
3 | 20 | ## Test environments |
4 | 21 |
|
5 | | -* macOS Tahoe 26.3 (personal computer), R 4.5.3 |
6 | | -* Fedora 43 (personal computer), R 4.5.3 |
| 22 | +* macOS Tahoe 26.5.1 (personal computer), R 4.5.3 |
| 23 | +* Fedora 44 (personal computer), R 4.6.1 |
7 | 24 | * GitHub Actions - (ubuntu): release, devel, oldrel-1 |
8 | 25 | * GitHub Actions - (windows-latest): release |
9 | 26 | * GitHub Actions - (macOS-latest): release |
10 | 27 | * Winbuilder - (windows server 2022): release, devel |
11 | 28 |
|
12 | 29 | ## R CMD check results |
13 | 30 |
|
14 | | -0 errors | 0 warnings | 0 note |
| 31 | +0 errors | 0 warnings | 0 notes |
15 | 32 |
|
16 | 33 | ## Reverse dependencies |
17 | 34 |
|
|
0 commit comments