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

this stub needs to be debugged because right now it could rise errors. This is a... #21

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago

https://github.com/psykei/psyki-python/blob/2bea82ebe0f0727f35c593b952b8b88ae5d97d29/psyki/ski/kins/__init__.py#L74


                    layer.build(x.shape)
                x = layer(x)
        new_predictor = Model(predictor_input, x)
        # TODO: this stub needs to be debugged because right now it could rise errors. This is an optional feature.
        """
        try:
            layer_diff = len(new_predictor.layers) - len(self._predictor.layers)
            injection_layer_weights_shape = self._predictor.layers[self._layer + 1].weights[0].shape