'use python interface to do interpretable ai why always restarting kernel?
https://docs.interpretable.ai/stable/IAI-Python/quickstart/ot_classification/
I use python interface to do interpretable ai, but it is always restarting the kernel.
import os
os.chdir(r'E:\python2022\yunchoutree')
import pandas as pd
df = pd.read_csv("data_banknote_authentication.txt", header=None,
names=['variance', 'skewness', 'curtosis', 'entropy', 'class'])
from interpretableai import iai
X = df.iloc[:, 0:4]
y = df.iloc[:, 4]
(train_X, train_y), (test_X, test_y) = iai.split_data('classification', X, y,
seed=1)
grid = iai.GridSearch(
iai.OptimalTreeClassifier(
random_seed=1,
),
max_depth=range(1, 6),
)
grid.fit(train_X, train_y)
grid.get_learner()
Restarting kernel...
I have installed interpretableai.install_julia() and interpretableai.install_system_image().When I use the code grid.fit(train_X, train_y) it always show "Restarting kernel..."
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
