Excercise M4.03

There are two problems:
1- Title table is showing Exercise M4.02 while it is actually M4.03.

2- Facing Error while executing the command:

from sklearn.linear_model import LinearRegression
linear_regression = LinearRegression()

from sklearn.model_selection import cross_validate
cv_results = cross_validate(linear_regression, data, target, scoring=“neg_mean_absolute_error”,return_estimator=True, cv=10, n_jobs=-1)

while running this command, I am getting 2 types of errors:

1- OSError: [Errno 12] Cannot allocate memory

2- UnboundLocalError: local variable ‘child_r’ referenced before assignment

Please guide me to rectify.

Regards

Yes, it seems something wrong with FUN. @lfarhi @MarieCollin Could you change the title in the FUN interact (Basically there two “Exercise M4.02”).

It seems that we have something going on with the JupyterHub and the docker container. We will solve it in the upcoming week. In the meanwhile you can use n_jobs=1 or let it by default.

1 Like

Thanks, n_jobs=1 works well.

Thanks for pointing this. It is fixed in FUN.