to estimate MI between two matrices.
if your Y is discrete, i.e. multiple class labellings for X, you can
only do this column by column separately. At least in my understanding.
Post by Daniel HomolaHi
https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/feature_selection/mutual_info_.py
supports Y to be a matrix. From what I see it seems like Y can only be
a column vector.
--
sp
On Thu, Feb 11, 2016 at 9:18 AM, Manoj Kumar
Hi,
In any case you can just supply metric='chebyshev' to do that for
you in NearestNeighbors.
On Wed, Feb 10, 2016 at 10:10 PM, Shishir Pandey
Thanks.
--
sp
On Thu, Feb 11, 2016 at 6:41 AM, Daniel Homola
Hi,
https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/feature_selection/mutual_info_.py
If you want to do feature selection based on MI, check out
https://github.com/danielhomola/mifs
Cheers,
d
Post by Shishir PandeyHi
I want to estimate the mutual information based on
http://arxiv.org/pdf/cond-mat/0305641.pdf
This requires me to use the max norm. For which I have
defined a function norm. Not I want Nearest neighbors to
fit according to this norm and when I find the kneighbors
I want it to give me kneighbors based on this max norm
but instead I am getting results in Euclidean distances.
How do I fix this? Here is the class that I have created.
"""
Nearest neighbors based on max norm
"""
self.x_dim = x_dim
self.y_dim = y_dim
self.x = x
self.y = y
self. z = np.c_[x,y]
x_dist = np.linalg.norm(np.array(z1[:self.x_dim]) - \
np.array(z2[:self.x_dim]), ord = ord)
y_dist = np.linalg.norm(np.array(z1[self.x_dim:]) - \
np.array(z2[self.x_dim:]), ord = ord)
return np.max([x_dist, y_dist])
nn = NearestNeighbors(n_neighbors = 2, func = max_norm)
nn.fit(self.z)
# print nn.kneighbors(self.z)
--
sp
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Scikit-learn-general mailing list
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application
Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Scikit-learn-general mailing list
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Scikit-learn-general mailing list
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
--
Manoj,
http://github.com/MechCoder
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Scikit-learn-general mailing list
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Scikit-learn-general mailing list
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general