Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Python is a programming language commonly used for machine learning. Use this tag for any *on-topic* question that (a) involves `Python` either as a critical part of the question or expected answer, & (b) is not *just* about how to use `Python`.
11
votes
Methods in R or Python to perform feature selection in unsupervised learning
It's a year old but I still feel it is relevant, so I just wanted to share my python implementation of Principal Feature Analysis (PFA) as proposed in the paper that Charles linked to in his answer. …
5
votes
1
answer
2k
views
Class-specific feature importance
I'm training a Random Forest classifier using sklearn in Python 2.7, on a large dataset ~(80k,250) where observations are movie reviews and features are attributes of critic and movie. …
4
votes
1
answer
3k
views
Computing the Entropy of a walk
Here's a small Python example:
import numpy as np
from collections import Counter
def time_correlated_entropy(walk):
counter = Counter(zip(walk[:-1], walk[1:]))
P = np.array(counter.values(), …