/bin/python /home/kk/Documents/post-lab.py
sh-5.2$ /bin/python /home/kk/Documents/post-lab.py
[1810 preload-host-spawn-strategy] Warning: waitpid override ignores groups
/var/data/python/lib/python3.11/site-packages/tpot/builtins/init.py:36: UserWarning: Warning: optional dependency torch is not available. - skipping import of NN models.
warnings.warn("Warning: optional dependency torch is not available. - skipping import of NN models.")
/home/kk/Documents/post-lab.py:24: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
plt.show()
/home/kk/Documents/post-lab.py:28: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
plt.show()
/home/kk/Documents/post-lab.py:32: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
plt.show()
/home/kk/Documents/post-lab.py:36: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
plt.show()
/home/kk/Documents/post-lab.py:40: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
plt.show()
/home/kk/Documents/post-lab.py:47: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.
For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.
data['Age'].fillna(data['Age'].median(), inplace=True)
/home/kk/Documents/post-lab.py:48: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.
For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.
data['Fare'].fillna(data['Fare'].median(), inplace=True)
/home/kk/Documents/post-lab.py:49: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.
For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.
data['Embarked'].fillna(data['Embarked'].mode()[0], inplace=True)
/home/kk/Documents/post-lab.py:47: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.
For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.
data['Age'].fillna(data['Age'].median(), inplace=True)
/home/kk/Documents/post-lab.py:48: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.
For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.
data['Fare'].fillna(data['Fare'].median(), inplace=True)
/home/kk/Documents/post-lab.py:49: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.
For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.
data['Embarked'].fillna(data['Embarked'].mode()[0], inplace=True)
Generation 1 - Current best internal CV score: -inf
Traceback (most recent call last):
File "/var/data/python/lib/python3.11/site-packages/tpot/base.py", line 817, in fit
self._pop, _ = eaMuPlusLambda(
^^^^^^^^^^^^^^^
File "/var/data/python/lib/python3.11/site-packages/tpot/gp_deap.py", line 285, in eaMuPlusLambda
per_generation_function(gen)
File "/var/data/python/lib/python3.11/site-packages/tpot/base.py", line 1183, in _check_periodic_pipeline
self._update_top_pipeline()
File "/var/data/python/lib/python3.11/site-packages/tpot/base.py", line 935, in _update_top_pipeline
raise RuntimeError(
RuntimeError: There was an error in the TPOT optimization process. This could be because the data was not formatted properly, or because data for a regression problem was provided to the TPOTClassifier object. Please make sure you passed the data to TPOT correctly. If you enabled PyTorch estimators, please check the data requirements in the online documentation: https://epistasislab.github.io/tpot/using/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kk/Documents/post-lab.py", line 76, in
tpot.fit(X_train, y_train)
File "/var/data/python/lib/python3.11/site-packages/tpot/base.py", line 864, in fit
raise e
File "/var/data/python/lib/python3.11/site-packages/tpot/base.py", line 855, in fit
self._update_top_pipeline()
File "/var/data/python/lib/python3.11/site-packages/tpot/base.py", line 935, in _update_top_pipeline
raise RuntimeError(
RuntimeError: There was an error in the TPOT optimization process. This could be because the data was not formatted properly, or because data for a regression problem was provided to the TPOTClassifier object. Please make sure you passed the data to TPOT correctly. If you enabled PyTorch estimators, please check the data requirements in the online documentation: https://epistasislab.github.io/tpot/using/