We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9df7899 commit 03befecCopy full SHA for 03befec
tensorflow_decision_forests/contrib/scikit_learn_model_converter/scikit_learn_model_converter.py
@@ -90,7 +90,7 @@ def convert(
90
# to split samples in nodes in the trees as input. But we want to pass the
91
# full design matrix as an input to match the scikit-learn API, thus we
92
# create another tf_keras.Model with the desired call signature.
93
- template_input = tf_keras.Input(shape=(sklearn_model.n_features_in_,))
+ template_input = tf_keras.Input(shape=(sklearn_model.n_features_in_,)) # pytype: disable=attribute-error
94
# Extracts the indices of the features that are used by the TFDF model.
95
# The features have names with the format "feature_<index-of-feature>".
96
feature_names = (
0 commit comments