add fitness function to a python code of symbolic regression

Job ID: 30977029

Budget: $10 – $30 USD

Hi,

I have symbolic regression python code. attached main2.py.

I need the following:
delete the following content of the function symbolicRegression and write code to do the following:
1. turn individual to string and create a local file named "individual.txt" that contains the string.
2. wait in a loop (listenning) waiting for a file named "fitness.txt".
3. read the c ontent of it (its a number) and delete it.
4. return the value received in return of the function.