<?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>20newsgroups</anon>
    <anon>CountVectorizer</anon>
    <anon>機械学習</anon>
    <anon>ロジスティック回帰</anon>
  </categories>
  <description>はじめに 線形判別分析など、線形の判別モデルは係数を使って各クラスに重要な特徴を取り出すことができます。 今回はロジスティック回帰を使って、20newsgroupsのデータセットから各クラスの特徴語を取り出してみます。 実験 以下のようなコードを走らせます。 import textwrap import numpy as np from sklearn.datasets import fetch_20newsgroups from sklearn.feature_extraction.text import CountVectorizer from sklearn.preprocessing …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhayataka2049.hatenablog.jp%2Fentry%2F2019%2F07%2F02%2F224158&quot; title=&quot;ロジスティック回帰で特徴語を抽出する - 静かなる名辞&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-07-02 22:41:58</published>
  <title>ロジスティック回帰で特徴語を抽出する</title>
  <type>rich</type>
  <url>https://hayataka2049.hatenablog.jp/entry/2019/07/02/224158</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
