تينسورفلو :: العمليات :: فك شفرة CSV
#include <parsing_ops.h>
تحويل سجلات CSV إلى موتر.
ملخص
كل عمود يرسم موتر واحد.
من المتوقع تنسيق RFC 4180 لسجلات CSV. ( https://tools.ietf.org/html/rfc4180 ) لاحظ أننا نسمح بمسافات بادئة ولاحقة مع حقل int أو float.
الحجج:
- النطاق: كائن النطاق
- السجلات: كل سلسلة عبارة عن سجل / صف في ملف csv ويجب أن يكون لجميع السجلات نفس التنسيق.
- Record_defaults: موتر واحد لكل عمود من سجل الإدخال ، إما مع قيمة افتراضية قياسية لهذا العمود أو متجه فارغ إذا كان العمود مطلوبًا.
السمات الاختيارية (انظر Attrs
):
- field_delim: محدد الأحرف لفصل الحقول في التسجيلة.
- use_quote_delim: إذا كان خطأ ، يتعامل مع علامات الاقتباس المزدوجة كأحرف عادية داخل حقول السلسلة (تجاهل 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 )
NaValue
Attrs NaValue( StringPiece x )
اختر كولس
Attrs SelectCols( const gtl::ArraySlice< int > & x )
استخدم
Attrs UseQuoteDelim( bool x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2022-08-30 (حسب التوقيت العالمي المتفَّق عليه)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"لا يحتوي على المعلومات التي أحتاج إليها."
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"الخطوات معقدة للغاية / كثيرة جدًا."
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"المحتوى قديم."
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ثمة مشكلة في الترجمة."
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"غير ذلك"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"يسهُل فهم المحتوى."
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"ساعَدني المحتوى في حلّ مشكلتي."
},{
"type": "thumb-up",
"id": "otherUp",
"label":"غير ذلك"
}]