Logic module (sympy.logic): improving speed

August 18, 2009
By

Today I've been doing some speed improvements for the logic module. More precisely, I implemented an efficient internal representation for clauses in conjunctive normal form. In practice this means a huge performance boost for all problems that make us...

Read more »

Refine module

August 17, 2009
By

This commit introduced a new module in sympy: the refine module. The purpose of this module is to simplify expressions when they are bound to assumptions. For example, if you know that x>0, then you can simplify abs(x) to x. This code was traditiona...

Read more »

Query module – finally in trunk

August 10, 2009
By

The query module is finally in the main SymPy repository. I made substantial changes since last post, most of them at the user interface level (thanks to Vinzent and Mateusz for many insightful comments). Main function is ask(), which replaces the old ...

Read more »

django, change language settings dynamically

August 7, 2009
By

After some failed attempts, I just found how to change the language settings dynamically in django, and I thought it could be useful to someone. Just use function activate() from django.utils.translation. For example: [cc lang="python"] from ...

Read more »

can we merge now, pleeease ?

July 21, 2009
By

Three months after I began to write sympy.queries, I feel it's about time to include it in sympy's trunk, so today I sent for review 4 patches that implement the complete query module. It's been a lot of fun, but it has also caused me some headaches .....

Read more »

Refine module, proof of concept

July 9, 2009
By

The 0.6.5 release of SymPy is taking longer than expected because some bugs in the testing framework, so my query module is not merged into trunk (yet). In the meantime, I am implementing a refine module (very little code is available yet). The refine ...

Read more »

Preparing a new release

June 30, 2009
By

Last days I've been busy preparing the first public beta of SymPy 0.6.5. Most of the time was spent solving a bug that made documentation tests fail under python2.4, but now that this is solved, I hope that by the end of the week we could have a final ...

Read more »

Efficient DPLL algorithm

June 28, 2009
By

Background: DPLL is the algorithm behind SymPy's implementation of logic.inference.satisfiable After reading the original papers by Davis & Putnam [1], I managed to implement a more efficient version of the DPLL algorithm. It is 10x times faster on...

Read more »

Queries and performance

June 22, 2009
By

After some hacking on the queries module, I finally got it right without the limitations of past versions. You can check it out from my repo http://fseoane.net/git/sympy.git, branch master. It now relies even more on logic.inference.satisfiable(), whic...

Read more »

Reading CNF files

June 20, 2009
By

The DIMACS CNF file format is used to define a Boolean expression, written in conjunctive normal form, that may be used as an example of the satisfiability problem. The new logic module (sympy.logic) can read the content of a cnf file and transform it ...

Read more »

Logic module merged

June 19, 2009
By

Yesterday I finally merged the logic module in sympy's official master branch, and should be released together with SymPy 0.6.5. Next thing to do: profile the code and write some docs before the release.

Read more »

Geography and Data

June 15, 2009
By

The Economist recently ran a fascinating article about the emergence of geographical databases and their uses for presenting and analyzing data.All this has made it much easier to create maps that explain—at a glance—something that might otherwise ...

Read more »

The boolean satisfiability problem

June 15, 2009
By

Most annoying problem in my implementation of the query system is that it will not solve implications if the implicates are far away from each other. For instance, if the graph of known facts is something like this Integer ----> Rational --> Rea...

Read more »

Initial implementation of the query system

June 12, 2009
By

I sent some patches to sympy-patches with an initial implementation of the query system. You can check it out by pulling from my branch: git pull http://fseoane.net/git/sympy.git master into your sympy repo. Some examples of what you can do (sample isy...

Read more »

Assumption system and automatic theorem proving. Should I be learning LISP ?

June 3, 2009
By

This is the third time I attempt to write the assumption system. Other attempts could be described as me following the rule: “For any complex problem, there is always a solution that is simple, clear, and wrong.” My first attempt (although better t...

Read more »

Homenaje a Antonio Vega en La Percha

June 1, 2009
By

El pasado jueves estuvimos en La Percha tocando algunas canciones de Antonio Vega. El vídeo se lo ha currado mi padre mezclando el sonido del directo con una grabación que hicimos en casa de Migue LOS ESCLAVOS: homenaje a Antonio Vega from Felipe Ped...

Read more »

Fun with the new Logic module

May 31, 2009
By

The logic module is slowly becoming useful. This week I managed to get some basic inference in propositional logic working. This should be enough for the assumption sysmtem (although having first-order inference would be cool). You can pull from my bra...

Read more »

Boolean algebra, first steps

May 15, 2009
By

The first task for my Summer of Code project is to write a nice boolean algebra module. I wanted a clean module that follows SymPy's object model and that plays well with other objects. In practice this means that it should inherit from Basic and that ...

Read more »

Logic modules in python

May 10, 2009
By

As a prerequisite of my GSOC project I have to do some modifications on sympy's current logic module (see previous post), so I decided to go out and take a look at what others are doing in this area. aima-python is a project that tries to implement all...

Read more »

Google Summer of Code

April 23, 2009
By

First post on my GSOC adventure. This year I got accepted in Google's summer of code program as student, and my job will be to implement the assumptions framework in SymPy. Although the project officially is only about implementing an assumptions frame...

Read more »

Don’t standardize interaction/moderator effects in multiple regression

March 12, 2009
By
Don’t standardize interaction/moderator effects in multiple regression

This is another quick blog entry related to a query I had today. In my moderated multiple regression workshop a while back I wrote (on slide 15) "don't use standardized regression coefficients". In the talk itself I briefly mentioned why and direct...

Read more »

Two Recommended Solutions for Missing Data: Multiple Imputation and Maximum Likelihood

March 2, 2009
By
Two Recommended Solutions for Missing Data: Multiple Imputation and Maximum Likelihood

Two methods for dealing with missing data,vast improvements over traditional approaches, have become available in mainstream statistical software in the last few years.

Read more »

Django and request.POST

January 23, 2009
By

I spent a lot of time trying to figure out why django removed the '+' character from the POST data retrieved via request.POST. Still don't know the reason of this behaviour, but using request.raw_post_data saved my day ...

Read more »


Subscribe

Email:

  Subscribe