メインコンテンツ

投影

主成分分析 (PCA) を使用してネットワーク層を投影し、学習可能なパラメーターの数を減らす

学習データの典型的なデータ セットを使用し、層の活性化に対して主成分分析 (PCA) を実行し、層の学習可能なパラメーターに対して線形投影を適用することによって、層を投影します。投影された深層ニューラル ネットワークのフォワード パスは、通常、ライブラリを使用せずに C/C++ コードを生成して組み込みハードウェアにネットワークを展開すると、より高速になります。

Deep Learning Toolbox™ Model Compression Library で利用可能な圧縮手法の詳細な概要については、Reduce Memory Footprint of Deep Neural Networksを参照してください。

Simplified illustration of projection. On the left is a sketch of a neural network with two layers that consist of three and two neurons, respectively. Every neuron in the first layer is connected to every neuron in the second layer. An arrow points to a second sketch on the right, which shows a different model that consists of three layers, with three, one, and two neurons, respectively. The right network has fewer weights in total compared to the left.

関数

compressNetworkUsingProjectionCompress neural network using projection (R2022b 以降)
neuronPCAPrincipal component analysis of neuron activations (R2022b 以降)
unpackProjectedLayersUnpack projected layers of neural network (R2023b 以降)
ProjectedLayerCompressed neural network layer using projection (R2023b 以降)
gruProjectedLayerGated recurrent unit (GRU) projected layer for recurrent neural network (RNN) (R2023b 以降)
lstmProjectedLayerLong short-term memory (LSTM) projected layer for recurrent neural network (RNN) (R2022b 以降)

トピック

注目の例