第2章準備
2.2.4. Discussion2.2.4 考察
You now know how to partition data columns, impute missing variables, and load
pandas data into tensors. In Section 5.7, you will pick up some more data processing skills. While this crash course kept things simple, data processing can get hairy. For example, rather than arriving in a single CSV file, our dataset might be spread across multiple files extracted from a relational database. For instance, in an e-commerce application, customer addresses might live in one table and purchase data in another. Moreover, practitioners face myriad data types beyond categorical and numeric, for example, text strings, images, audio data, and point clouds. Oftentimes, advanced tools and efficient algorithms are required in order to prevent data processing from becoming the biggest bottleneck in the machine learning pipeline. These problems will arise when we get to computer vision and natural language processing. Finally, we must pay attention to data quality. Real-world datasets are often plagued by outliers, faulty measurements from sensors, and recording errors, which must be addressed before feeding the data into any model. Data visualization tools such as seaborn, Bokeh, or matplotlib can help you to manually inspect the data and develop intuitions about the type of problems you may need to address.英語のヒント
これで、データの列を分け、欠けた変数を補完し、
pandasのデータをテンソルに読み込む方法がわかった。5.7節では、さらにいくつかのデータ処理の技能を身につける。この駆け足の講座では物事を単純にしておいたが、データ処理は面倒なことになりうる。たとえば、データセットは一つのCSVファイルで届くのではなく、リレーショナルデータベースから取り出した複数のファイルに分かれているかもしれない。たとえば電子商取引のアプリケーションでは、客の住所はある表に、購入データは別の表にあるかもしれない。さらに実践者は、カテゴリーや数値以外の無数のデータ型、たとえば文字列、画像、音声データ、点群に直面する。データ処理が機械学習のパイプラインの最大のボトルネックになるのを防ぐには、高度な道具と効率的なアルゴリズムが必要になることもよくある。こうした問題は、コンピュータビジョンや自然言語処理に進んだときに出てくる。最後に、データの品質に注意を払わなければならない。現実のデータセットは、外れ値、センサーの誤った測定値、記録の誤りに悩まされることが多く、データをモデルに与える前に対処しなければならない。seaborn、Bokeh、matplotlibのようなデータ可視化の道具は、データを手作業で調べ、対処すべき問題の種類について直観を養うのに役立つ。