jaberg / skdata

Data sets for machine learning in Python
http://jaberg.github.com/skdata/
474 stars 147 forks source link

ENH: LFW view API with some test #54

Closed npinto closed 12 years ago

npinto commented 12 years ago

Mostly untested for now. Seems to be going ok.

npinto commented 12 years ago

Demo code:

from skdata import lfw
splits = lfw.view.FunneledView2()
for split in splits:
    trn_x = split.train.x
    assert trn_x.shape == (2, 250, 250, 3)
    # ...
npinto commented 12 years ago

Still missing View1 but it should not be too hard to get (it's simpler than View2).

jaberg commented 12 years ago

@npinto said that he hadn't tested yet, and it was kind of a work in progress. I suggested that he just use it for a week or so, and then I'll merge it in to master when he feels it's stable.

npinto commented 12 years ago

Looks pretty stable here. Wanna merge now?

jaberg commented 12 years ago

I hesitate because the old lfw had view1 too - this is still missing in your branch right?