<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hayataka2049</author_name>
  <author_url>https://blog.hatena.ne.jp/hayataka2049/</author_url>
  <blog_title>静かなる名辞</blog_title>
  <blog_url>https://hayataka2049.hatenablog.jp/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>sklearn</anon>
    <anon>機械学習</anon>
    <anon>Tips</anon>
    <anon>特徴抽出</anon>
  </categories>
  <description>はじめに 回帰などで非線形の効果を取り扱いたいとき、多項式回帰は定番の方法です。また、交互作用項も使うと有用なときがあります。 pythonユーザはいきなりSVRやランダムフォレスト回帰などの非線形回帰を使うことが多い気もしますが、線形モデルでも特徴量を非線形変換すればできます。scikit-learnでやるのであれば、PolynomialFeaturesを使います*1。 使い方 リファレンスはここです。sklearn.preprocessing.PolynomialFeatures — scikit-learn 0.21.3 documentation 以下のような引数を取ります。 clas…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhayataka2049.hatenablog.jp%2Fentry%2F2019%2F07%2F14%2F043223&quot; title=&quot;scikit-learnのPolynomialFeaturesで多項式と交互作用項の特徴量を作る - 静かなる名辞&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hayataka2049/20190713/20190713210854.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-07-14 04:32:23</published>
  <title>scikit-learnのPolynomialFeaturesで多項式と交互作用項の特徴量を作る</title>
  <type>rich</type>
  <url>https://hayataka2049.hatenablog.jp/entry/2019/07/14/043223</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
