# Path: disentanglement_lib/visualize/dendrogram.py
# def dendrogram_plot(matrix, output_dir, factor_names):
# def report_merges(z, num_factors):
# def _find(nodes, i):
# def _union(nodes, idx, idy, val, z, cluster_id, size, matrix, n_clusters,
#            idx_found):


from absl.testing import absltest
from absl.testing import parameterized
from disentanglement_lib.visualize import dendrogram
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 dendrogram.py."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function



class DendrogramTest(parameterized.TestCase):

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

# Path: disentanglement_lib/visualize/dendrogram.py
# def dendrogram_plot(matrix, output_dir, factor_names):
# def report_merges(z, num_factors):
# def _find(nodes, i):
# def _union(nodes, idx, idy, val, z, cluster_id, size, matrix, n_clusters,
#            idx_found):


# Path: disentanglement_lib/visualize/dendrogram_test.py
from absl.testing import absltest
from absl.testing import parameterized
from disentanglement_lib.visualize import dendrogram
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 dendrogram.py."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function



class DendrogramTest(parameterized.TestCase):

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

    dendrogram.dendrogram_plot(