Science Score: 49.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 21 DOI reference(s) in README -
○Academic publication links
-
✓Committers with academic emails
1 of 13 committers (7.7%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.6%) to scientific vocabulary
Keywords
Repository
Iterated Racing for Automatic Algorithm Configuration
Basic Info
- Host: GitHub
- Owner: MLopez-Ibanez
- License: gpl-2.0
- Language: R
- Default Branch: master
- Homepage: https://mlopez-ibanez.github.io/irace/
- Size: 27.3 MB
Statistics
- Stars: 64
- Watchers: 6
- Forks: 16
- Open Issues: 17
- Releases: 0
Topics
Metadata Files
README.md
irace: Iterated Racing for Automatic Algorithm Configuration
[ Homepage ] [ User Guide (PDF) ] [ Tutorial ]
Maintainers: Manuel López-Ibáñez, Leslie Pérez Cáceres
Creators: Manuel López-Ibáñez, Jérémie Dubois-Lacoste
Contributors: Jérémie Dubois-Lacoste, Thomas Stützle, Mauro Birattari, Eric Yuan and Prasanna Balaprakash.
Contact: https://groups.google.com/d/forum/irace-package
Introduction
The irace package implements the Iterated Race method, which is a generalization of the Iterated F-race method for the automatic configuration of optimization algorithms, that is, the tuning of their parameters by finding the most appropriate settings given a set of instances of an optimization problem. It builds upon the race package by Birattari and it is implemented in R.
You may also find the iraceplot package useful for analyzing the output of irace.
Keywords: automatic configuration, offline tuning, parameter tuning, racing, F-race.
Relevant literature:
M. López-Ibáñez, J. Dubois-Lacoste, L. Pérez Cáceres, T. Stützle, and M. Birattari. The irace package: Iterated Racing for Automatic Algorithm Configuration. Operations Research Perspectives, 3:43–58, 2016.
[ bibtex | doi: 10.1016/j.orp.2016.09.002 ]Leslie Perez Cáceres, Manuel López-Ibáñez, Holger Hoos, and Thomas Stützle. An Experimental Study of Adaptive Capping in irace. Learning and Intelligent Optimization. LION 2017. Lecture Notes in Computer Science, vol 10556. Springer, Cham.
[ bibtex | doi: 10.1007/978-3-319-69404-7_17 ]Thomas Stützle and Manuel López-Ibáñez. Tutorial: Automated algorithm configuration and design. GECCO '21: Proceedings of the Genetic and Evolutionary Computation Conference Companion, July 2021. doi:10.1145/3449726.3461404
Requisites
- R (https://www.r-project.org) is required for running irace, but you don't need to know the R language to use it.
User guide
A complete user guide comes with the package. You can access it online or, after installing the irace package, invoking from the R console the following command:
R
vignette("irace-package")
The following is a quick-start guide. The user guide gives more detailed instructions.
Quick Start
- Install R (with your favourite package manager, and see more details below).
Install irace. This command works on Bash shell (Linux and MacOS) and Powershell (Windows) with R added to PATH (see detailed instructions below).
bash Rscript -e "install.packages('irace', repos='https://cloud.r-project.org')"Add irace to the
PATHenvironment variable. This command works in Bash shell (Linux and MacOS). For Windows user, this step is unfortunately more involved, so please see more detailed instructions below.bash export PATH="$(Rscript -e "cat(paste0(system.file(package='irace', 'bin', mustWork=TRUE), ':'))" 2> /dev/null)${PATH}"Consider adding this line to your~/.bashrc,~/.zshrc, or~/.profilefor it to persist between sessions.You can open the user guide with the following command. This command works on Bash shell (Linux and MacOS) and and Powershell (Windows) with R added to PATH (see detailed instructions below).
bash Rscript -e "vignette('irace-package')"
Installing R
The official instructions are available at https://cran.r-project.org/doc/manuals/r-release/R-admin.html. We give below a quick R installation guide that will work in most cases.
GNU/Linux
You should install R from your package manager. On a Debian/Ubuntu system, you will run in the Bash shell:
bash
sudo apt-get install r-base
Once R is installed, you can launch R from the Terminal and from the R prompt install the irace package. See instructions below.
OS X
You can install R directly from a CRAN mirror (https://cran.r-project.org/bin/macosx/).
Alternatively, if you use homebrew, you can just run from the Terminal (Bash shell):
bash
brew install --cask r
(Using brew install r is not recommended because that will build R from source and you will not be able to use any CRAN binary, possibly resulting in annoying build failures).
Once R is installed, you can launch R from the Terminal (or from your Applications), and from the R prompt install the irace package. See instructions below.
Windows
You can install R from a CRAN mirror (https://cran.r-project.org/bin/windows/). Once R is installed, you can launch the R console and install the irace package from it. See instructions below.
In addition to using the R console, it might be very useful to add R to PATH so you can run R commands in CMD or Powershell. Usually, R is installed in C:\Program Files\R\R-4.1.3 (the version number depends on your installation).
You should add the following line to PATH (if you want to use the 64-bit version)
C:\Program Files\R\R-4.1.3\bin\x64
Or, if you are on a 32-bit version
C:\Program Files\R\R-4.1.3\bin\i386
Installing the irace package
There are two methods for installing the irace R package on your computer:
Install within R (automatic download). Run the following from the R console:
R install.packages("irace", repos = "https://cloud.r-project.org")and test the installation with:R library(irace) irace_cmdline("--version") q()Manually download the package from CRAN and invoke at the Bash shell, Terminal or Powershell:
bash R CMD INSTALL <package>where<package>is one of the three versions available:.tar.gz(Unix/BSD/GNU/Linux),.tgz(MacOS X), or.zip(Windows).
If the package fails to install because of insufficient permissions,
you need to force a local installation by typing in the Bash shell:
bash
mkdir ~/R
R CMD INSTALL --library=~/R irace.tar.gz
export R_LIBS=~/R:${R_LIBS}
Once installed, test that it is working by typing in the R console (not in the bash shell):
R
library(irace)
irace_cmdline("--version")
cat(system.file(package="irace", "bin", mustWork=TRUE), "\n")
The last command gives you the installation folder of irace, for example, /home/user/R/irace/bin.
GNU/Linux and OS X
Save the installation directory of irace to a variable, and add it to your
.bash_profile, .bashrc or .profile:
bash
export IRACE_HOME=/home/user/R/irace/bin/ # Path given by system.file(package="irace", "bin", mustWork=TRUE)
export PATH=${IRACE_HOME}:$PATH
# export R_LIBS=~/R:${R_LIBS} # Only if local installation was forced
After adding this and opening a new terminal, you should be able to
invoke irace as follows:
bash
irace --help
Windows
You can find out where the irace binary is installed by running the following in Powershell or CMD:
Powershell
C:\> Rscript -e "cat(gsub('/', '\\\\', system.file(package='irace', 'bin', 'x64', mustWork=TRUE)))"
It will output a path, such as C:\Program Files\R\R-4.1.3\library\irace\bin\x64 (replace x64 with i386 if you are on a 32-bit system), which can you add to PATH.
Then running the following should work:
Powershell
C:\> irace --help
You can also launch irace by opening the R console and executing:
R
library(irace)
irace_cmdline("--help")
GitHub (Development version)
If you wish to try the development version, you can install it by executing the following command within the R console:
R
install.packages('irace', repos = c('https://mlopez-ibanez.r-universe.dev', 'https://cloud.r-project.org'))
Python
You can use the irace R package from Python using rpy2. There are actually two different implementations of this idea: iracepy and iracepy-tiny.
Rust
You can use irace from Rust by using irace-rs.
Usage
Create a directory for storing the tuning scenario setup (Bash shell):
bash mkdir ./tuning cd ./tuningInitialize your tuning directory with template config files (Bash shell):
bash $IRACE_HOME/bin/irace --initModify the generated files following the instructions found within each file. In particular,
- The scripts
target-runnerandtarget-evaluator(if you need it at all) should be executable. The output oftarget-runner(ortarget-evaluatorif you use a separate evaluation step) is minimized by default. If you wish to maximize it, just multiply the value by-1within the script. - In
scenario.txt, uncomment and assign only the parameters for which you need a value different than the default one. For example, you may need to settrainInstancesDir="./Instances/".
There are examples in
$IRACE_HOME/examples/.- The scripts
Put the instances in
./tuning/Instances/. In addition, you can create a file that specifies which instances from that directory should be run and which instance-specific parameters to use. Seescenario.txtandinstances-list.txtfor examples. The command irace will not attempt to create the execution directory (execDir), so it must exist before calling irace. The defaultexecDiris the current directory.Calling the command in the Bash shell:
bash cd ./tuning/ && $IRACE_HOME/bin/iraceperforms one run of Iterated Race. See the output ofirace --helpfor additional irace parameters. Command-line parameters override the scenario setup specified in thescenario.txtfile.
Many tuning runs in parallel
For executing several repetitions of irace in parallel, call the
program parallel-irace from the Bash shell:
bash
cd ./tuning/ && $IRACE_HOME/bin/parallel-irace N
where N is the number of repetitions. By default, the execution directory of
each run of irace will be set to ./execdir-dd, where dd is a number padded
with zeroes.
Be careful, parallel-irace will create these directories from
scratch, deleting them first if they already exist.
Check the help of parallel-irace by running it without parameters.
Parallelize one tuning
A single run of irace can be done much faster by executing the calls
to targetRunner (the runs of the algorithm being tuned) in
parallel. See the user guide for the details.
License
irace is Copyright (C) 2010-2020 Manuel López-Ibáñez, Jérémie Dubois-Lacoste and Leslie Pérez-Cáceres.
This program is free software (software libre); you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
IMPORTANT NOTE: Please be aware that the fact that this program is released as Free Software does not excuse you from scientific propriety, which obligates you to give appropriate credit! If you write a scientific paper describing research that made substantive use of this program, it is your obligation as a scientist to (a) mention the fashion in which this software was used in the Methods section; (b) mention the algorithm in the References section. The appropriate citation is:
- Manuel López-Ibáñez, Jérémie Dubois-Lacoste, Leslie Pérez Cáceres, Thomas Stützle, and Mauro Birattari. The irace package: Iterated Racing for Automatic Algorithm Configuration. Operations Research Perspectives, 2016. doi: 10.1016/j.orp.2016.09.002
The irace package uses code under the GPL from the race package is Copyright (C) 2003 Mauro Birattari.
Building an irace standalone container
Thanks to Singularity, you can build a
standalone container of irace using the file irace.sindef which is
available in the directory inst/ in the source tarball and github repository
or, after installing the irace R package, in the installation directory given
by the R expression system.file(package="irace"). After installing
SingularityCE, the container may be build using:
sudo singularity build irace.sindef irace.sif
and run with:
singularity run irace.sif <arguments>
Frequently Asked Questions
The user guide contains a list of frequently asked questions.
Owner
- Name: Manuel López-Ibáñez
- Login: MLopez-Ibanez
- Kind: user
- Website: https://lopez-ibanez.eu
- Repositories: 3
- Profile: https://github.com/MLopez-Ibanez
GitHub Events
Total
- Issues event: 29
- Watch event: 7
- Issue comment event: 69
- Push event: 173
- Pull request event: 2
- Fork event: 2
- Create event: 2
Last Year
- Issues event: 29
- Watch event: 7
- Issue comment event: 69
- Push event: 173
- Pull request event: 2
- Fork event: 2
- Create event: 2
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| MLopez-Ibanez | 2****z | 1,999 |
| leslieperez | 9****z | 36 |
| binaryFate | 1****e | 32 |
| GitHub Actions | a****s@g****m | 18 |
| Deyao Chen | c****0@g****m | 8 |
| sbomsdorf | 8****f | 5 |
| albertofranzin | a****n@g****m | 4 |
| yuan | y****n | 4 |
| Jonathan Wurth | j****h@u****e | 2 |
| Johann Dreo | j****n@d****r | 1 |
| Filippo Bistaffa | f****a@g****m | 1 |
| mascia | m****a | 1 |
| leslieperez | l****z@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 65
- Total pull requests: 18
- Average time to close issues: 5 months
- Average time to close pull requests: about 1 month
- Total issue authors: 22
- Total pull request authors: 6
- Average comments per issue: 3.0
- Average comments per pull request: 4.11
- Merged pull requests: 13
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 11
- Pull requests: 2
- Average time to close issues: 23 days
- Average time to close pull requests: 2 days
- Issue authors: 8
- Pull request authors: 2
- Average comments per issue: 4.18
- Average comments per pull request: 2.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- MLopez-Ibanez (25)
- DE0CH (10)
- jyotiTec (4)
- TheIronBorn (3)
- Saethox (3)
- nojhan (3)
- ThomasF59 (2)
- be-marc (2)
- rickboks (1)
- gutodelazeri (1)
- rmartinsanta (1)
- ivarsdzalbs (1)
- camillamelo (1)
- ndangtt (1)
- ceandrade (1)
Pull Request Authors
- DE0CH (12)
- sbomsdorf (2)
- Saethox (2)
- ivan1arriola (2)
- jdreo (1)
- filippobistaffa (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
-
Total downloads:
- cran 1,961 last-month
- Total docker downloads: 24,154
-
Total dependent packages: 6
(may contain duplicates) -
Total dependent repositories: 16
(may contain duplicates) - Total versions: 27
- Total maintainers: 1
cran.r-project.org: irace
Iterated Racing for Automatic Algorithm Configuration
- Homepage: https://mlopez-ibanez.github.io/irace/
- Documentation: http://cran.r-project.org/web/packages/irace/irace.pdf
- License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
-
Latest release: 4.2.0
published about 1 year ago
Rankings
Maintainers (1)
conda-forge.org: r-irace
- Homepage: http://iridia.ulb.ac.be/irace
- License: GPL-2.0-or-later
-
Latest release: 3.4.1
published almost 6 years ago
Rankings
Dependencies
- R >= 3.2.0 depends
- R6 * imports
- compiler * imports
- stats * imports
- utils * imports
- ParamHelpers * suggests
- Rmpi >= 0.6.0 suggests
- covr * suggests
- devtools * suggests
- knitr * suggests
- mlr >= 2.15.0 suggests
- parallel * suggests
- testthat * suggests
- withr * suggests
- actions/checkout v3 composite
- actions/checkout v2 composite
- actions/upload-artifact main composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- r-lib/actions/setup-tinytex v2 composite
- debian bullseye build