주요 콘텐츠

자동 미분을 사용한 사용자 지정 훈련

사용자 지정 훈련 루프를 사용하여 딥러닝 신경망 훈련

trainingOptions 함수가 작업에 필요한 훈련 옵션을 제공하지 않거나 trainnet 함수가 지원하지 않는 손실 함수가 있는 경우에는 사용자 지정 훈련 루프를 정의할 수 있습니다. 계층 신경망으로 지정할 수 없는 모델의 경우 모델을 함수로 정의할 수 있습니다. 자세한 내용은 사용자 지정 훈련 루프, 손실 함수 및 신경망 정의 항목을 참조하십시오.

함수

모두 확장

dlnetwork딥러닝 신경망
imagePretrainedNetwork영상에 대해 사전 훈련된 신경망 (R2024a 이후)
resnetNetwork2-D residual neural network (R2024a 이후)
resnet3dNetwork3-D residual neural network (R2024a 이후)
addLayers신경망에 계층 추가하기
removeLayers신경망에서 계층 제거
replaceLayerReplace layer in neural network
connectLayers신경망에서 계층 연결하기
disconnectLayers신경망에서 계층 연결 끊기
addInputLayerAdd input layer to network (R2022b 이후)
initializeInitialize learnable and state parameters of neural network (R2021a 이후)
networkDataLayoutDeep learning network data layout for learnable parameter initialization (R2022b 이후)
setL2Factor계층의 학습 가능한 파라미터의 L2 정규화 인자 설정
getL2Factor계층의 학습 가능한 파라미터의 L2 정규화 인자 가져오기
setLearnRateFactor계층의 학습 가능한 파라미터에 대한 학습률 인자 설정
getLearnRateFactor계층의 학습 가능한 파라미터에 대한 학습률 인자 가져오기
plot신경망 아키텍처 플로팅
summary신경망 요약 출력 (R2022b 이후)
analyzeNetwork딥러닝 신경망 아키텍처 분석
checkLayerCheck validity of custom or function layer
isequalCheck equality of neural networks (R2021a 이후)
isequalnCheck equality of neural networks ignoring NaN values (R2021a 이후)
forwardCompute deep learning network output for training
predictCompute deep learning network output for inference
adamupdateUpdate parameters using adaptive moment estimation (Adam)
rmspropupdate Update parameters using root mean squared propagation (RMSProp)
sgdmupdate Update parameters using stochastic gradient descent with momentum (SGDM)
lbfgsupdateUpdate parameters using limited-memory BFGS (L-BFGS) (R2023a 이후)
lbfgsStateState of limited-memory BFGS (L-BFGS) solver (R2023a 이후)
dlupdate Update parameters using custom function
trainingProgressMonitorMonitor and plot training progress for deep learning custom training loops (R2022b 이후)
updateInfoUpdate information values for custom training loops (R2022b 이후)
recordMetricsRecord metric values for custom training loops (R2022b 이후)
groupSubPlotGroup metrics in training plot (R2022b 이후)
deep.gpu.deterministicAlgorithmsSet determinism of deep learning operations on the GPU to get reproducible results (R2024b 이후)
padsequencesPad or truncate sequence data to same length (R2021a 이후)
minibatchqueueCreate mini-batches for deep learning
onehotencodeEncode data labels into one-hot vectors
onehotdecodeDecode probability vectors into class labels
nextminibatchqueue에서 데이터의 다음 미니 배치 가져오기
resetReset minibatchqueue to start of data
shuffleShuffle data in minibatchqueue
hasdataDetermine if minibatchqueue can return mini-batch
partitionPartition minibatchqueue
dlarray사용자 지정을 위한 딥러닝 배열
dlgradientCompute gradients for custom training loops using automatic differentiation
dljacobianJacobian matrix deep learning operation (R2024b 이후)
dldivergenceDivergence of deep learning data (R2024b 이후)
dllaplacianLaplacian of deep learning data (R2024b 이후)
dlfevalEvaluate deep learning model for custom training loops
dimsdlarray 객체의 데이터 형식
finddimFind dimensions with specified label
stripdimsRemove dlarray data format
extractdatadlarray에서 데이터 추출
isdlarrayCheck if object is dlarray
crossentropyCross-entropy loss for classification tasks
indexcrossentropyIndex cross-entropy loss for classification tasks (R2024b 이후)
l1lossL1 loss for regression tasks (R2021b 이후)
l2lossL2 loss for regression tasks (R2021b 이후)
huberHuber loss for regression tasks (R2021a 이후)
ctcConnectionist temporal classification (CTC) loss for unaligned sequence classification (R2021a 이후)
mse평균제곱오차의 절반
dlaccelerateAccelerate deep learning function for custom training loops (R2021a 이후)
AcceleratedFunctionAccelerated deep learning function (R2021a 이후)
clearCacheClear accelerated deep learning function trace cache (R2021a 이후)

도움말 항목

사용자 지정 훈련 루프

자동 미분

생성적 적대 신경망

그래프 신경망

딥러닝 함수 가속

관련 정보

추천 예제