[SciPy-user] maxentropy

Ed Schofield schofield at ftw.at
Sun Mar 26 11:54:30 CST 2006

On 23/03/2006, at 6:29 PM, Ed Schofield wrote:

> On 21/03/2006, at 9:53 PM, Matthew Cooper wrote:
>> Hi Ed,
>> I am playing around with the code on some more small examples and
>> everything has been fine.  The thing that will hold me back from
>> testing on larger datasets is the F matrix which thus far requires  
>> the
>> space of (context,label) pairs to be enumerable.  I know that
>> internally you are using a sparse representation for this matrix.   
>> Can
>> I initialize the model with a sparse matrix also?  This also requires
>> changes with the indices_context parameter in the examples.
> Hi Matt,
> Yes, good point.  I'd conveniently forgotten about this little problem
> ;)  It turns out scipy's sparse matrices need extending to support
> this.

And done.  I've committed the new sparse matrix features to the ejs  
branch and fixed conditional maxent models to work with them.  The  
examples seem to work fine too.  Please let me know how you go with it!

-- Ed

More information about the SciPy-user mailing list