Skip to content

Commit eea250f

Browse files
author
Alessandro Lucantonio
committed
Minor changes to actions.
1 parent 2574a08 commit eea250f

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: ['3.10']
12+
python-version: ['3.12']
1313

1414
steps:
1515
- uses: actions/checkout@v3

README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,14 @@ def eval_MSE_sol(individual, X, y):
8888
arguments in the first three positions:
8989
- the list of trees to be evaluated by the current worker;
9090
- the `toolbox` object used to compile the individual trees into callable functions;
91-
- the dataset features needed for the evaluation of the individuals. The name of the argument **must** be `X`.
92-
Additionally, the fourth argument of the **fitness** function **must** be the dataset
93-
labels, called `y`. For unsupervised problems, `None` can be passed for the labels to the `fit`
94-
method of the regressor.
95-
Both functions **must** be decorated with `ray.remote` to support
96-
distributed evaluation (multiprocessing). Any additional arguments can be set using
97-
the `common_data` argument of the `GPSymbolicRegressor` object (see below).
91+
- the dataset features needed for the evaluation of the individuals. The name of the
92+
argument **must** be `X`.
93+
94+
Additionally, the fourth argument of the **fitness** function **must** be the dataset
95+
labels, called `y`. For unsupervised problems, `None` can be passed for the labels to
96+
the `fit` method of the regressor. Both functions **must** be decorated with `ray.remote` to support
97+
distributed evaluation (multiprocessing). Any additional arguments can be set using
98+
the `common_data` argument of the `GPSymbolicRegressor` object (see below).
9899
```python
99100
@ray.remote
100101
def predict(trees, toolbox, X):

0 commit comments

Comments
 (0)