تينسورفلو :: العمليات :: فك شفرة 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 |
السمات العامة
عملية
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 )
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]