@@ -88,13 +88,14 @@ def eval_MSE_sol(individual, X, y):
88
88
arguments in the first three positions:
89
89
- the list of trees to be evaluated by the current worker;
90
90
- 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).
98
99
``` python
99
100
@ray.remote
100
101
def predict (trees , toolbox , X ):
0 commit comments