텐서플로우:: ops:: DecodeCSV

#include <parsing_ops.h>

CSV 레코드를 텐서로 변환합니다.

요약

각 열은 하나의 텐서에 대응합니다.

CSV 레코드는 RFC 4180 형식을 따라야 합니다. ( https://tools.ietf.org/html/rfc4180 ) 정수 또는 실수 필드에는 앞뒤 공백이 허용됩니다.

논거:

  • 범위: Scope 객체
  • 레코드: 각 문자열은 CSV 파일의 레코드/행을 나타내며 모든 레코드는 동일한 형식을 가져야 합니다.
  • record_defaults: 입력 레코드의 각 열에 대해 하나의 텐서가 제공되며, 해당 열에 대한 스칼라 기본값이 포함되거나, 해당 열이 필수인 경우 빈 벡터가 포함됩니다.

선택적 속성( Attrs 참조):

  • field_delim: 레코드의 필드를 구분하는 문자 구분자입니다.
  • use_quote_delim: false인 경우 문자열 필드 내에서 큰따옴표를 일반 문자로 처리합니다(RFC 4180, 섹션 2, 항목 5 무시).
  • na_value: NA/NaN으로 인식할 추가 문자열입니다.

보고:

  • OutputList : 각 텐서는 레코드와 동일한 형태를 갖습니다.

생성자와 소멸자

DecodeCSV (const :: tensorflow::Scope & scope, :: tensorflow::Input records, :: tensorflow::InputList record_defaults)
DecodeCSV (const :: tensorflow::Scope & scope, :: tensorflow::Input records, :: tensorflow::InputList record_defaults, const DecodeCSV::Attrs & attrs)

공개 속성

operation
output

공공 기능

operator[] (size_t index) const

공개 정적 함수

FieldDelim (StringPiece x)
NaValue (StringPiece x)
SelectCols (const gtl::ArraySlice< int > & x)
UseQuoteDelim (bool x)

구조

텐서플로우:: ops:: DecodeCSV:: Attrs

DecodeCSV 에 대한 선택적 속성 설정기입니다.

공개 속성

작업

Operation operation

산출

::tensorflow::OutputList output

공공 기능

DecodeCSV

 DecodeCSV(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input records,
  ::tensorflow::InputList record_defaults
)

DecodeCSV

 DecodeCSV(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input records,
  ::tensorflow::InputList record_defaults,
  const DecodeCSV::Attrs & attrs
)

연산자[]

::tensorflow::Output operator[](
  size_t index
) const 

공개 정적 함수

필드델림

Attrs FieldDelim(
  StringPiece x
)
Attrs NaValue(
  StringPiece x
)

셀렉트콜

Attrs SelectCols(
  const gtl::ArraySlice< int > & x
)

UseQuoteDelim

Attrs UseQuoteDelim(
  bool x
)