Skip to content

Instantly share code, notes, and snippets.

View nicofarr's full-sized avatar

Nicolas Farrugia nicofarr

  • IMT Atlantique (formerly Telecom Bretagne - LabSTICC)
  • Brest - France
View GitHub Profile
Verifying that +nvf009 is my blockchain ID. https://onename.com/nvf009
import numpy as np
from sklearn.decomposition import DictionaryLearning
nfeat = 20
X = np.random.random(nfeat)
X = X.reshape(1,-1)# otherwise sklearn complains
alpha = 1
n_comp = 4