'**SUMMARY**
Load the trainging data.
**PARAMETERS**
* *filename* - File where you want to load the data from.
**RETURNS**
Nothing. None.
**EXAMPLES**
>>> f = FaceRecognizer()
>>> f.load("trainingdata.xml")
>>> img = Image("some_image_of_any_of_the_type_present_in_data")
>>> print f.predict(img)'

def load(self, filename):

    if (not self.supported):
        warnings.warn('Fisher    Recognizer    is    supported    by    OpenCV    >=    2.4.4')
        return None
    self.model.load(filename)
    loadfile = open(filename, 'r')
    for line in loadfile.readlines():
        if ('cols' in line):
            match = re.search('(?<=\\>)\\w+', line)
            tsize = int(match.group(0))
            break
    loadfile.close()
    w = int((tsize ** 0.5))
    h = (tsize / w)
    while ((w * h) != tsize):
        w += 1
        h = (tsize / w)
    self.imageSize = (w, h)
