Пример #1
0
def main():
	X, Y = read_nhefs_data()
	N, K = X.shape
	print "N <- " + str(N)
	print "K <- " + str(K)
	print "x <- structure(c" + print_arr(X.T.ravel()) + ", .Dim=c(" + str(N) + ", " + str(K) + "))"
	print "y <- c" + print_arr(Y)
Пример #2
0
def main():
    X, Y = read_pima_data()
    N, K = X.shape
    print "N <- " + str(N)
    print "K <- " + str(K)
    print "x <- structure(c" + print_arr(
        X.T.ravel()) + ", .Dim=c(" + str(N) + ", " + str(K) + "))"
    print "y <- c" + print_arr(Y)
Пример #3
0
def main():
	K = int(sys.argv[1])
	y = read_old_faithful_data()
	N, D = y.shape
	print "N <- " + str(N)
	print "D <- " + str(D)
	print "K <- " + str(K)
	print "y <- structure(c" + print_arr(y.T.ravel()) + ", .Dim=c(" + str(N) + ", " + str(D) + "))"
Пример #4
0
def main():
    N, L, D = [int(elem) for elem in sys.argv[1:]]
    Y = read_reduced_movielens_data(N, L, D)
    print "N <- " + str(N)
    print "L <- " + str(L)
    print "D <- " + str(D)
    print "Y <- structure(c" + print_arr(
        Y.T.ravel()) + ", .Dim=c(" + str(N) + ", " + str(D) + "))"
Пример #5
0
def main():
    K = int(sys.argv[1])
    y = read_old_faithful_data()
    N, D = y.shape
    print "N <- " + str(N)
    print "D <- " + str(D)
    print "K <- " + str(K)
    print "y <- structure(c" + print_arr(
        y.T.ravel()) + ", .Dim=c(" + str(N) + ", " + str(D) + "))"
Пример #6
0
def main():
	y = read_google_stock_data()
	print "N <- " + str(len(y)) 
	print "y <- c" + print_arr(y)