mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: SGD model sizes
Date Tue, 04 Sep 2012 23:15:18 GMT
The model size is very simple.  If you have k categories and m features,
the model size will be (k-1) x m x s1 + m * s2 + s3 where s1 is roughly 8
bytes and s2 is about 4 bytes and s3 is probably around 100 bytes.  These
are approximate numbers and could be off by 2 if I forgot something.  The
first product is the beta matrix, the second is the learning rate vector
and the third is the object overhead.  There might be an additional
component to s2 to account for per row overhead of beta.

On Tue, Sep 4, 2012 at 2:05 PM, Grant Ingersoll <gsingers@apache.org> wrote:

> Hi,
>
> I'm wondering if any has any rules of thumb around model size and memory
> usage for SGD?  I'm doing some testing of it myself, but thought I would
> ask to see how it compares.
>
> Thanks,
> Grant

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message