# -*- coding: utf-8 -*-

from numpy import *


def createDataSet():
    group = array([[1.0, 1.1], [1.0, 1.0], [0, 0], [0, 0.1]])
    labels = ['A', 'A', 'B', 'B']
    return group, labels


def file2matrix(filename):
    fr = open(file)

    arraylines = fr.readlines()

    print "file lengths:", len(arraylines)
