How to reduce the time required for training a logistic regression classifier

조회 수: 4 (최근 30일)
Hi everyone,
I am trying to train and use a logistic regression classifier using stepwiseglm function. The regression function is allowed to have up to fourth polynomial degrees of each predictors including their interactions. The AIC criterion is used to study the significance of adding or removing each term.
The training set is a 100K by 4 matrix. The problem is that the training process takes a lot of time. Is there any way to improve its speed? (for instance using GPU parallel processing? Since this is an image processing task, can convolutional neural network (CNN) be trained in a shorter time? (I am not familiar with CNN).
Many thanks in advance.

채택된 답변

Prateek Rai
Prateek Rai 2021년 7월 30일
To my understanding, you want to speed up your image classification task. You can use CNN for your classification process.
You can refer to introduction-to-convolutional-neural-networks MathWorks documentation page to learn more on how to use CNN for image classification in MATLAB.
You can also refer to deep-learning-with-big-data-on-gpus-and-in-parallel MathWorks documentation page to learn more on speeding up your task using GPU Parallel Processing.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by