Друзья, всем привет!
Юзаю код:
from concurrent.futures import ProcessPoolExecutor
future = ['Pol',
'Dlina',
'Shirina',
'Glubina']
def multiproc_iter_func(max_workers, an_iter, func, item_kwarg, **kwargs):
with ProcessPoolExecutor(max_workers=max_workers) as executor:
future_results = [executor.submit(func, **{item_kwarg: item}, **kwargs)
for item in an_iter]
results = [future.result() for future in future_results]
return results
import eli5
train_expl_list = multiproc_iter_func(10, X_train,
eli5.explain_prediction_df, 'doc',
estimator=gbrt,
feature_names=future)
И проваливаюсь в ошибку
could not convert string to float: 'Pol'
Что делаю не так?