# Path: disentanglement_lib/visualize/visualize_scores.py
# def heat_square(matrix, output_dir, name, xlabel, ylabel, max_val=None,
#                 factor_names=None):
# def plot_matrix_squares(matrix, max_val, palette, size_scale, ax):
#   def to_color(val):
# def plot_bar_palette(palette, max_val, ax):
# def plot_recovery_vs_independent(matrix, output_dir, name):
# def precision(matrix, th):
# def recall(matrix, th):
# def bfs(matrix, to_visit, factors, codes, size):


from absl.testing import absltest
from absl.testing import parameterized
from disentanglement_lib.visualize import visualize_scores
import numpy as np
# coding=utf-8
# Copyright 2018 The DisentanglementLib Authors.  All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Tests for the visualize_scores.py."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function



class VisualizeScoresTest(parameterized.TestCase):

  @parameterized.parameters((np.zeros((5, 10), dtype=np.float32),
                             np.zeros((2, 10), dtype=np.float32),
                             np.zeros((10, 10), dtype=np.float32)))
  def plot_recovery_vs_independent(self, matrix):

# Path: disentanglement_lib/visualize/visualize_scores.py
# def heat_square(matrix, output_dir, name, xlabel, ylabel, max_val=None,
#                 factor_names=None):
# def plot_matrix_squares(matrix, max_val, palette, size_scale, ax):
#   def to_color(val):
# def plot_bar_palette(palette, max_val, ax):
# def plot_recovery_vs_independent(matrix, output_dir, name):
# def precision(matrix, th):
# def recall(matrix, th):
# def bfs(matrix, to_visit, factors, codes, size):


# Path: disentanglement_lib/visualize/visualize_scores_test.py
from absl.testing import absltest
from absl.testing import parameterized
from disentanglement_lib.visualize import visualize_scores
import numpy as np

# coding=utf-8
# Copyright 2018 The DisentanglementLib Authors.  All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Tests for the visualize_scores.py."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function



class VisualizeScoresTest(parameterized.TestCase):

  @parameterized.parameters((np.zeros((5, 10), dtype=np.float32),
                             np.zeros((2, 10), dtype=np.float32),
                             np.zeros((10, 10), dtype=np.float32)))
  def plot_recovery_vs_independent(self, matrix):

    visualize_scores.plot_recovery_vs_independent(