Sum -pooling
3 ビュー (過去 30 日間)
古いコメントを表示
Does anyone know how to do sum-pooling in MATLAB? I need to use it for multi-class SVM?
Would appreciate any help..
0 件のコメント
回答 (1 件)
Lorenzo Farina
2023 年 1 月 3 日
I think it could be a good way-around using the average pooling built-in function and then multipliying by the size of the pooling kernel ('Stride').
Here's an example having X as 1D array and applying an average pooling with N-cells stride.
N=4;
X= [1,2,3,4,5,6,7,8,9,10,11,12]
X_dl= dlarray(X,'S');
Y_dl= avgpool(X_dl,N,'Stride',N);
Y_avg_pooling= extractdata(Y_dl);
Y_sum_pooling= (Y_avg_pooling*N)'
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Statistics and Machine Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!