tensorflow::ops::DecodeCSV::Attrs

#include <parsing_ops.h>

Các thiết lập thuộc tính tùy chọn cho DecodeCSV .

Bản tóm tắt

Thuộc tính công khai

field_delim_ = ","
StringPiece
na_value_ = ""
StringPiece
select_cols_ = {}
gtl::ArraySlice< int >
use_quote_delim_ = true
bool

Chức năng công cộng

FieldDelim (StringPiece x)
TF_MUST_USE_RESULT Attrs
Ký tự phân cách dùng để phân tách các trường trong một bản ghi.
NaValue (StringPiece x)
TF_MUST_USE_RESULT Attrs
Thêm chuỗi ký tự để nhận dạng là NA/NaN.
SelectCols (const gtl::ArraySlice< int > & x)
TF_MUST_USE_RESULT Attrs
Mặc định là [].
UseQuoteDelim (bool x)
TF_MUST_USE_RESULT Attrs
Nếu là false, sẽ coi dấu ngoặc kép là các ký tự thông thường bên trong các trường chuỗi (bỏ qua RFC 4180, Mục 2, Điểm 5).

Thuộc tính công khai

field_delim_

StringPiece tensorflow::ops::DecodeCSV::Attrs::field_delim_ = ","

na_value_

StringPiece tensorflow::ops::DecodeCSV::Attrs::na_value_ = ""

select_cols_

gtl::ArraySlice< int > tensorflow::ops::DecodeCSV::Attrs::select_cols_ = {}

use_quote_delim_

bool tensorflow::ops::DecodeCSV::Attrs::use_quote_delim_ = true

Chức năng công cộng

FieldDelim

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::FieldDelim(
  StringPiece x
)

Ký tự phân cách dùng để phân tách các trường trong một bản ghi.

Mặc định là ","

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::NaValue(
  StringPiece x
)

Thêm chuỗi ký tự để nhận dạng là NA/NaN.

Mặc định là ""

SelectCols

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::SelectCols(
  const gtl::ArraySlice< int > & x
)

Mặc định là [].

UseQuoteDelim

TF_MUST_USE_RESULT Attrs tensorflow::ops::DecodeCSV::Attrs::UseQuoteDelim(
  bool x
)

Nếu là false, sẽ coi dấu ngoặc kép là các ký tự thông thường bên trong các trường chuỗi (bỏ qua RFC 4180, Mục 2, Điểm 5).

Mặc định là true