psykei / psyki-python

PSyKI: a (Python) platform for symbolic knowledge injection
https://psykei.github.io/psyki-python/
Apache License 2.0
12 stars 1 forks source link

analyse this warning that sometimes comes out, this should not be armful (same a... #35

Open github-actions[bot] opened 1 year ago

github-actions[bot] commented 1 year ago

https://api.github.com/psykei/psyki-python/blob/6bae8304e9e1a4d5dade477f826c556e17c11f53/psyki/ski/kins/__init__.py#L25


        @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: