Skip to content

Instantly share code, notes, and snippets.

@pwfff
Created October 10, 2012 18:52
Show Gist options
  • Save pwfff/3867648 to your computer and use it in GitHub Desktop.
Save pwfff/3867648 to your computer and use it in GitHub Desktop.
In [1]: import helpers
In [2]: data = helpers.load_dataset('Datasets/dataset1.mat')
In [3]: data
Out[3]:
{'neg_examples_nobias': array([[-0.80857143, 0.8372093 ],
[ 0.35714286, 0.85049834],
[-0.75142857, -0.73089701],
[-0.3 , 0.12624585]]),
'pos_examples_nobias': array([[ 0.87142857, 0.62458472],
[-0.02 , -0.92358804],
[ 0.36285714, -0.31893688],
[ 0.88857143, -0.87043189]]),
'w_gen_feas': array([[ 4.3496526 ],
[-2.60997235],
[-0.69414749]]),
'w_init': array([[-0.62170147],
[ 0.76091527],
[ 0.77187205]])}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment