[python]tensorflow 파일에서 원하는 정보 읽어오기 □참고 ▶tensorflow 홈페이지 예제 ▶tensorflow에서 제공되는 file data read 기능들을 사용해 보자. □sample □Test 1.읽을 파일 N개 filenames_queue = tf.train.string_input_producer(['/home/ksu/sample.csv']) 2.제목인 첫 줄은 생략 reader = tf.TextLineReader(skip_header_lines = 1)key, value = reader.read(filenames_queue) 3.데이터가 없을 시 채워줄 Default값 설정 record_defaults = [ [""], [""], [""], [""], [""], ["True"], ["0"]] 4.field_delim로 콤마로 구분해서 데이터.. 더보기 이전 1 ··· 14 15 16 17 18 19 20 ··· 98 다음