第5章多層パーセプトロン
5.7.9. Summary and Discussion5.7.9 まとめと考察
Real data often contains a mix of different data types and needs to be preprocessed. Rescaling real-valued data to zero mean and unit variance is a good default. So is replacing missing values with their mean. Furthermore, transforming categorical features into indicator features allows us to treat them like one-hot vectors. When we tend to care more about the relative error than about the absolute error, we can measure the discrepancy in the logarithm of the prediction. To select the model and adjust the hyperparameters, we can use -fold cross-validation .
英語のヒント
現実のデータには、しばしば異なるデータ型が混ざっていて、前処理が必要である。実数値のデータを平均0、分散1にスケールし直すのは、よい既定の選択である。欠損値をその平均で置き換えるのもそうである。さらに、カテゴリーの特徴量を指標特徴量に変換すると、それらをワンホットベクトルのように扱える。絶対誤差より相対誤差のほうを気にかける傾向があるときには、予測の対数で食い違いを測れる。モデルを選び、ハイパーパラメータを調整するには、分割交差検証を使える。