Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def gamma_median_heuristic(Z, num_subsample=1000): | |
""" | |
Computes the median pairwise distance in a random sub-sample of Z. | |
Returns a \gamma for k(x,y)=\exp(-\gamma ||x-y||^2), according to the median heuristc, | |
i.e. it corresponds to \sigma in k(x,y)=\exp(-0.5*||x-y||^2 / \sigma^2) where | |
\sigma is the median distance. \gamma = 0.5/(\sigma^2) | |
""" | |
inds = np.random.permutation(len(Z))[:np.max([num_subsample, len(Z)])] | |
dists = squareform(pdist(Z[inds], 'sqeuclidean')) | |
median_dist = np.median(dists[dists > 0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Shogun 4.0</title> | |
</head> | |
<body> | |
<p> | |
The Shogun team just released <a href="http://www.shogun-toolbox.org/new/41" target="_blank">version 4.0</a> of their community driven Machine Learning toolbox. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder