Skip to content

Commit

Permalink
fix hsic kernel bug (#85)
Browse files Browse the repository at this point in the history
* fix hsic kernel bug

* release v0.1.2
  • Loading branch information
sampan501 authored May 6, 2020
1 parent 185ddac commit 7cd3382
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 9 deletions.
16 changes: 11 additions & 5 deletions docs/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@
Release Log
===========

v0.1.0
v0.1.2
------
| **Release date:** 25 February 2020
| **Supports:** Python 3.5+.
| :doc:`release/0.1.0-release`.
| **Release date:** 5 May 2020
| **Supports:** Python 3.6+.
| :doc:`release/0.1.2-release`.
v0.1.0
v0.1.1
------
| **Release date:** 28 April 2020
| **Supports:** Python 3.6+.
| :doc:`release/0.1.1-release`.
v0.1.0
------
| **Release date:** 25 February 2020
| **Supports:** Python 3.5+.
| :doc:`release/0.1.0-release`.
25 changes: 25 additions & 0 deletions docs/release/0.1.2-release.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
hyppo v0.1.2 Release Notes
==========================

.. contents::

hyppo 0.1.2 does not include any new features, just fixes. This release requires
Python 3.6+.

Fixes
-----

*k*-sample testing
^^^^^^^^^^^^^^^^^^
Fixed MMD/k-samp;e Hsic not running bug.

Authors
=======

This release contains work by the following people (contributed at least
one patch to this release, names in alphabetical order by last name):

* Sambit Panda

A total of 1 person contributed to this release.
People with a "+" by their names contributed a patch for the first time.
7 changes: 3 additions & 4 deletions hyppo/ksample/ksamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,12 @@ def __init__(self, indep_test, compute_distance=euclidean, bias=False):
}
if indep_test not in test_names.keys():
raise ValueError("Test is not a valid independence test")
if indep_test == "Hsic" and compute_distance == euclidean:
if indep_test == "hsic" and compute_distance == euclidean:
compute_distance = gaussian
self.indep_test_name = indep_test
indep_test = test_names[indep_test]
self.indep_test_name = indep_test.__name__

dist_tests = [Dcorr, HHG, Hsic, MGC]
if indep_test in dist_tests:
if self.indep_test_name in ["dcorr", "hhg", "hsic", "mgc"]:
if self.indep_test_name == "hsic":
self.indep_test = indep_test(compute_kernel=compute_distance, bias=bias)
elif self.indep_test_name == "dcorr":
Expand Down

0 comments on commit 7cd3382

Please sign in to comment.