tensorflow:: ops:: DecodeCSV

#include <parsing_ops.h>

تحويل سجلات CSV إلى موترات.

ملخص

كل عمود يمثل موترًا واحدًا.

يُتوقع استخدام تنسيق RFC 4180 لسجلات CSV. ( https://tools.ietf.org/html/rfc4180 ) يُرجى ملاحظة أننا نسمح بوجود مسافات بادئة ولاحقة مع حقول الأعداد الصحيحة أو العشرية.

الحجج:

  • النطاق: كائن النطاق
  • السجلات: كل سلسلة نصية تمثل سجلاً/صفاً في ملف 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

الوظائف العامة

فك تشفير ملف CSV

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

فك تشفير ملف CSV

 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
)

SelectCols

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

UseQuoteDelim

Attrs UseQuoteDelim(
  bool x
)