0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

python

0
Last updated at Posted at 2026-05-27

▼Pythonの文字列操作
 split:文字列を分割
 trip:左右の空白文字を削除
 rstrip:文字列の右側の空白を削除
 len:文字数をカウント

▼Jupyter Notebook
 コードだけではなく、Markdown形式の文章も保存できる。

▼数学
 足し算を繰り返すΣ(シグマ)を使い、すべてを掛け合わせるΠ(パイ)

▼pandasのSeriesとDataFrame
DataFrame 2次元 辞書のキー = カラム名(列)
{'名前': '田中', '年齢': 24},
{'名前': '佐藤', '年齢': 30}

Series 1次元 辞書のキー = インデックス(行)
'国語': 80,
'数学': 95,
'英語': 70

▼scikit-learn
・fit:訓練データから学習モデルを作成
・モデルは個別のクラスに実装されており、インタンス化して使う。

① 「グループ分け」をするタイプ(クラスタリング)
 手法: K-means(K平均法)など
 使うメソッド: fit → predict
 内容:予測(predict)

② 「形を変える」タイプ(次元圧縮・特徴抽出)
 手法: PCA(主成分分析)など
 使うメソッド: fit → transform
 内容: データ変換(transform)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?