My code is slower on a more powerful machine?
Mostrar comentarios más antiguos
Hey guys, I ran my code on my Windows 10 machine that has 8 cores of CPU and 16 GB of RAM on MATLAB 2022b. And then ran the same code on a Linux Ubuntu machine that has 128 cores of CPU and 512 GB of RAM on MATLAB 2020b. The code was significantly slower on the Linux machine even though the machine is MUCH more powerful. Is it due to a difference in the OS or a difference in the MATLAB version? Or is it something else? I am not sure. Here is my code (its basically a code to train a neural network to fit a variable in terms of other 7 variables):
Table=AM03_a02b; %a table of 2000 rows and 18 columns of decimal values
Matrix=Table{:,:};
Input=Matrix(1:end,[1:3,7:10]); %the inputs to the neural network that will be used in the training
Output=Matrix(1:end,13); %the output of the neural network that will be used in the training
% Resizing The Matricies
Input=Input';
Output=Output';
ANN=newff(Input,Output,[100 100 100]); %a neural network with three layers and 100 neurals per layer
ANN.trainFcn = 'trainrp';
ANN.trainParam.max_fail=10;
ANN.trainParam.epochs=1000; %a total of 1000 iterations
% Training Process
ANN=train(ANN,Input,Output);
view(ANN)
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!