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... #34

Open github-actions[bot] opened 1 year ago

github-actions[bot] commented 1 year ago

https://api.github.com/psykei/psyki-python/blob/7a9ca5412035a7a1b0d3ca52c948a1c88e06a2e4/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: