Question about Permutation Importance on LSTM Keras
问题 from keras.wrappers.scikit_learn import KerasClassifier, KerasRegressor import eli5 from eli5.sklearn import PermutationImportance model = Sequential() model.add(LSTM(units=30,return_sequences= True, input_shape=(X.shape[1],421))) model.add(Dropout(rate=0.2)) model.add(LSTM(units=30, return_sequences=True)) model.add(LSTM(units=30)) model.add(Dense(units=1, activation='relu')) perm = PermutationImportance(model, scoring='accuracy',random_state=1).fit(X, y, epochs=500, batch_size=8) eli5.show