Skip to content

Commit

Permalink
Modified keras import
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertSamoilescu committed Nov 29, 2024
1 parent cc47fc5 commit b3641a8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion alibi/datasets/tensorflow.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Tuple, Union

import tensorflow.keras as keras
import numpy as np

from tensorflow import keras
from alibi.utils.data import Bunch


Expand Down
2 changes: 1 addition & 1 deletion alibi/explainers/backends/tensorflow/cfrl_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import numpy as np
import tensorflow as tf
import tensorflow.keras as keras
from tensorflow import keras

from alibi.explainers.backends.cfrl_base import CounterfactualRLDataset
from alibi.models.tensorflow.actor_critic import Actor, Critic
Expand Down
2 changes: 1 addition & 1 deletion alibi/explainers/tests/test_cfrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpy as np
from numpy.testing import assert_allclose
import tensorflow as tf
import tensorflow.keras as keras
from tensorflow import keras

from alibi.explainers import CounterfactualRLTabular
from alibi.explainers.backends.cfrl_base import get_hard_distribution
Expand Down
3 changes: 1 addition & 2 deletions alibi/models/tensorflow/actor_critic.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"""

import tensorflow as tf
import tensorflow.keras as keras

from tensorflow import keras

class Actor(keras.Model):
"""
Expand Down
2 changes: 1 addition & 1 deletion alibi/models/tensorflow/autoencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

import tensorflow as tf
import tensorflow.keras as keras
from tensorflow import keras
from typing import List, Tuple, Union


Expand Down
2 changes: 1 addition & 1 deletion alibi/models/tensorflow/cfrl_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

import tensorflow as tf
import tensorflow.keras as keras
from tensorflow import keras
from typing import List


Expand Down
2 changes: 1 addition & 1 deletion alibi/models/tensorflow/tests/test_autoencoder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
import pytest
import tensorflow.keras as keras
from tensorflow import keras
from alibi.models.tensorflow.autoencoder import HeAE


Expand Down

0 comments on commit b3641a8

Please sign in to comment.