Python Xgboost не работает после Windows 10 обновления - PullRequest
0 голосов
/ 05 февраля 2020
Сценарий

Python, использующий Xgboost, начал давать сбой после того, как моя компания обновила всех до Windows 10.

В частности, этот фрагмент кода завершается ошибкой:

from xgboost import XGBClassifier
from xgboost import XGBRegressor
from xgboost import plot_tree
from xgboost import plot_importance
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score

import numpy as np

# Split Data into X and y
X = np.array(dfx.iloc[:,0:-1])
Y = np.array(dfx.iloc[:,-1])

# Train Test Split
seed = 7
test_size = 0.33
X_train, X_test, y_train, y_test = train_test_split(X,Y,test_size=test_size,random_state=seed)

# Train Model
model = XGBClassifier(n_estimators=1000,max_depth=5)

model.fit(X_train,y_train)

в последней строке со следующими ошибка:

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Этот же скрипт работал ранее, и единственное существенное отличие, которое приходит на ум, - это изменение Windows 10.

Я пытался удалить и переустановить библиотеку xgboost

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...