python -m pydoc -p 8080 #python api查看命令
import numpy as np
np.set_printoptions(threshold=np.inf) #在打印数组时,使所有都打印出来,不会出现和省略 threshold(入口 门槛)
GradientDescentOptimizer #梯度下降优化
程序窗口关闭后继续运行,适合在云服务器跑程序。
nohup command 1> outfilename 2>&1 &
简写nohup command > outfilename 2>&1 &
import numpy as np
np.set_printoptions(threshold=np.inf) #在打印数组时,使所有都打印出来,不会出现和省略 threshold(入口 门槛)
GradientDescentOptimizer #梯度下降优化
程序窗口关闭后继续运行,适合在云服务器跑程序。
nohup command 1> outfilename 2>&1 &
简写nohup command > outfilename 2>&1 &
tensorflow读入数据
def read_csv(batch_size, file_name, record_defaults):
filename_queue = tf.train.string_input_producer([...])
reader = rf.TextLineReader(skip_header_lines=1)
key, value = reader.read(filename_queue)
decoded = tf.decoded_csv(value, record_defaults=record_defaults)
return tf.train.shuffle_batch(decoded, batch_size = batch_size, capacity=batch_size*50)
read_csv(100, 'train.csv',[[0.0],[''],[0]])