2017/06/03

    Loading data from csv file

    1. numpy - loadtxt [source]Load data from a text file.Each row in the text file must have the same number of values.Parameters:fname : file, str, or pathlib.PathFile, filename, or generator to read. If the filename extension is .gz or .bz2, the file is first decompressed. Note that generators should return byte strings for Python 3k.dtype : data-type, optionalData-type of the resulting array; de..

    Linear Regression - Multiple feature

    import tensorflow as tf #Data x_data = [[73., 80., 75.], [93., 88., 93.], [89., 91., 90.], [96., 98., 100.], [73., 66., 70.]] y_data = [[152.], [185.], [180.], [196.], [142.]] # PlaceHolder # shape : None - variable, 3 - data count # 즉 x_data를 보면, List 내에 들어갈 수 있는 List의 개수는 정해지지 않고(None), # List 내의 data는 3개인 x란 이름의 PlaceHolder 생성 x = tf.placeholder(tf.float32, shape=[None, 3]) y = tf.placeholder..