統合辞書 — AI・機械学習

Phase 0 試作 / 生成日 2026-10-03 / 項目数 12 / ← 全ジャンル目次


誤差逆伝播法

別名: Backpropagation、 バックプロパゲーション

schema:pass / example:fail / source_match:NO

主張

誤差逆伝播法は、ニューラルネットワークの損失関数のパラメータに関する偏微分を効率よく計算し、確率的勾配降下法でパラメータを更新する方法。

記号束縛

記号意味型単位
L損失関数function

前提条件

最小例

def backpropagation(L, params):
    grad = {}  # 偏微分を格納する辞書
    for param in params:
        grad[param] = L.gradient(param)  # 損失関数の偏微分を計算
    return grad
print('Backpropagation executed')

expected stdout:

Backpropagation executed

出典

畳み込み層

別名: Convolutional layer、 CNN

schema:pass / example:fail / source_match:PARTIAL

主張

畳み込み層は人工ニューラルネットワークの一種で、入力に畳み込み操作を適用します。

記号束縛

記号意味型単位
畳み込み層A type of network layer that applies a convolution operation to the input.network layer

前提条件

最小例

import numpy as np
from scipy.signal import convolve2d
kernel = np.array([[0, -1, 0], [-1, 5, -1], [0, -1, 0]])
image = np.random.rand(5, 5)
output = convolve2d(image, kernel, mode='same')
print(output)

expected stdout:

[[ 0.00226561 -0.00047789 -0.00179794 -0.00047789  0.00226561]
 [-0.00179794 -0.00013724 -0.00054891 -0.00013724 -0.00179794]
 [-0.00054891 -0.00021881 -0.00087565 -0.00021881 -0.00054891]
 [-0.00179794 -0.00054891 -0.00087565 -0.00054891 -0.00179794]
 [ 0.00226561 -0.00047789 -0.00179794 -0.00047789  0.00226561]]

出典

勾配降下法

別名: Gradient descent、 最急降下法

schema:pass / example:fail / source_match:NO

主張

勾配降下法は、関数の一階微分のみを使用して最小値を探索する勾配法の一種。

記号束縛

記号意味型単位
f'関数fの一階微分function

前提条件

最小例

x = 100
delta = 0.01
while abs(f(x)) > 1e-6: x -= delta * f'(x)
print(f'x={x}')

expected stdout:

x=-4.440892098500626e-06

出典

線形回帰

別名: Linear regression

schema:pass / example:fail / source_match:PARTIAL

主張

線形回帰は、目的変数が説明変数に対して線形または近似線形の関係にある状況をモデル化する方法。

記号束縛

記号意味型単位
説明変数独立変数variable
目的変数従属変数または反応変数variable

前提条件

最小例

import numpy as np; x = np.array([1, 2, 3, 4, 5]); y = np.array([2, 4, 5, 4, 5]); m, b = np.polyfit(x, y, 1); print(f'y={m}x+{b}')

expected stdout:

y=0.6x+1.8

出典

ロジスティック回帰

別名: Logistic regression

schema:pass / example:fail / source_match:PARTIAL

主張

ロジスティック回帰は、ベルヌーイ分布に従う変数の確率を推定する統計モデルであり、log-oddsを線形結合で表現。

記号束縛

記号意味型単位
log-oddsロジットfunction

前提条件

最小例

import numpy as np
from sklearn.linear_model import LogisticRegression
X = np.array([[0, 1], [1, 1]])
y = np.array([0, 1])
model = LogisticRegression()
model.fit(X, y)
print(model.coef_)

expected stdout:

array([[ 1.38629436,  0.74308864]])

出典

シグモイド関数

別名: Sigmoid function

schema:pass / example:pass / source_match:NO

主張

シグモイド関数は、xを引数とする実数値の関数で、そのグラフはS字型の曲線を描きます。数学的に、これは \( f(x) = \frac{1}{1 + e^{-x}} \) で定義されます。

記号束縛

記号意味型単位
f(x)シグモイド関数の値real

前提条件

最小例

import math
x = 0
f_x = 1 / (1 + math.exp(-x))
print(f'f({x}) = {f_x}')

expected stdout:

f(0) = 0.5

出典

平均二乗誤差

別名: Mean squared error、 MSE

schema:pass / example:pass / source_match:YES

主張

平均二乗誤差は、推定値と実測値の二乗誤差の平均。

記号束縛

記号意味型単位
MSE平均二乗誤差loss function

前提条件

最小例

y_true = [3, -0.5, 2, 7]
y_pred = [2.5, 0.0, 2, 8]
MSE = sum((y_true[i] - y_pred[i])**2 for i in range(len(y_true))) / len(y_true)
print(f'MSE={MSE}')

expected stdout:

MSE=0.375

出典

アテンション機構

別名: Attention (machine learning)、 Scaled dot-product attention

schema:pass / example:fail / source_match:NO

主張

アテンションは、各トークンの重要性を計算する方法で、自然言語処理では単語にソフトウェイトを割り当てる。

記号束縛

記号意味型単位
attention各トークンの重要性を計算するメソッドmethod

前提条件

最小例

def scaled_dot_product_attention(q, k, v): return q @ k.T @ v
print(scaled_dot_product_attention([[1, 2], [3, 4]], [[5, 6], [7, 8]], [[9, 10], [11, 12]]))

expected stdout:

[[164.], [452.]]

出典

Transformer

別名: Transformer (deep learning architecture)

schema:pass / example:not_applicable / source_match:PARTIAL

主張

Transformer is a deep learning architecture based on the multi-head attention mechanism.

記号束縛

記号意味型単位
TransformerA deep learning architecturearchitecture

前提条件

最小例

(本項目は実行可能な最小例を持たない。 external_ids で照合する。)

出典

主成分分析

別名: Principal component analysis、 PCA

schema:pass / example:fail / source_match:PARTIAL

主張

主成分分析は、データの次元を削減するために用いられる線形の多変量解析手法。

記号束縛

記号意味型単位
PCAPrincipal component analysismethod

前提条件

最小例

import numpy as np
X = np.random.rand(100, 5)
from sklearn.decomposition import PCA
pca = PCA(n_components=2)
X_reduced = pca.fit_transform(X)
print(f'X_reduced shape: {X_reduced.shape}')

expected stdout:

X_reduced shape: (100, 2)

出典

サポートベクターマシン

別名: Support vector machine

schema:pass / example:not_applicable / source_match:NO

主張

サポートベクターマシンは教師あり学習を用いるパターン認識モデルで、分類や回帰に適用できる。

最小例

(本項目は実行可能な最小例を持たない。 external_ids で照合する。)

出典

決定木

別名: Decision tree learning

schema:pass / example:not_applicable / source_match:NO

主張

決定木は、意志決定を助けるために作られたグラフであり、目標に到達するための計画を立案するのに用いられる。

最小例

(本項目は実行可能な最小例を持たない。 external_ids で照合する。)

出典


本辞書は Wikipedia (CC BY-SA 4.0) を primary source に、ローカル LLM (Ollama) で構造化しています。 検証 bot は 出典照合・書式検査・最小例実行照合 のみを担当し、 意味的な正誤判断は行いません。 したがって本辞書の内容が 事実として 正しい ことは 保証されません (validator discipline)。