tensorflow:: אופס:: DecodeCSV

#include <parsing_ops.h>

המרת רשומות CSV לטנזורים.

סיכום

כל עמודה ממופה לטנזור אחד.

פורמט RFC 4180 צפוי עבור רשומות ה-CSV. ( https://tools.ietf.org/html/rfc4180 ) שימו לב שאנו מאפשרים חללים מובילים ונגררים עם שדה int או float.

טיעונים:

  • scope: אובייקט 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)

מבנים

tensorflow:: 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 

פונקציות סטטיות ציבוריות

FieldDelim

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

בחר קולס

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

UseQuoteDelim

Attrs UseQuoteDelim(
  bool x
)