Skip to content

Commit

Permalink
Revert "Modified keras import"
Browse files Browse the repository at this point in the history
This reverts commit b3641a8.
  • Loading branch information
RobertSamoilescu committed Nov 29, 2024
1 parent b3641a8 commit 9eeb657
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 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
from tensorflow import keras
import tensorflow.keras as 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
from tensorflow import keras
import tensorflow.keras as keras

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

import tensorflow as tf
from tensorflow import keras
import tensorflow.keras as 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
from tensorflow import keras
import tensorflow.keras as 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
from tensorflow import keras
import tensorflow.keras as 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
from tensorflow import keras
import tensorflow.keras as keras
from alibi.models.tensorflow.autoencoder import HeAE


Expand Down

0 comments on commit 9eeb657

Please sign in to comment.