@param layer: the level of the layer where to perform the injection.
@param fuzzifier: the fuzzifier used to map the knowledge (by default it is SubNetworkBuilder).
"""
# TODO: analyse this warning that sometimes comes out, this should not be armful (same as kbann).
tf.get_logger().setLevel("ERROR")
self._base = model_deep_copy(predictor)
self._predictor: Model = model_deep_copy(predictor)
if layer < 0 or layer > len(predictor.layers) - 2:
https://api.github.com/psykei/psyki-python/blob/6bae8304e9e1a4d5dade477f826c556e17c11f53/psyki/ski/kins/__init__.py#L25