Quantcast
Channel: Math.NET Numerics
Viewing all articles
Browse latest Browse all 971

New Post: Can this be done faster?

$
0
0
Ok here are my results:
    timer.Start()
    For x = 0 To 99
        DeltaEncoder.Clear()
        For col = 0 To NumberOfObs - 1
            DeltaEncoder + = NeuronError.Column(col).OuterProduct(InputWithBias.Column(col))
        Next col
        DeltaEncoder /= NumberOfObs
    Next x
    timer.Stop()
101809 milliseconds (Debug mode)
63878 milliseconds (Release mode)
    timer.Start()
    For x = 0 To 99
        DeltaEncoder.Clear()
        For col = 0 To NumberOfObs - 1
            DeltaEncoder.Add(NeuronError.Column(col).OuterProduct(InputWithBias.Column(col)), DeltaEncoder)
        Next col
        DeltaEncoder /= NumberOfObs
    Next x
    timer.Stop()
78009 milliseconds (Debug mode)
37766 milliseconds (Release mode)

Thanks looks like I can about double my speed in release mode!

I didn't realize that the (debug vs release) times would be so significantly different.
This is the first time I used release mode.

Viewing all articles
Browse latest Browse all 971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>