In order to comply better with good programming practice in Python, the syntax to import the variable names from the data file has been modified since version 3.2.5. The statement
from headers import *
must be replaced by
globals().update(database.variables)
where database
is the object contaning the
database, created as follows:
import biogeme.database as db
df = pd.read_csv("swissmetro.dat",'\t')
database = db.Database("swissmetro",df)
Moreover, in order to avoid any ambiguity, the operators used by Biogeme must be explicitly imported. For instance:
from biogeme.expressions import Beta, DefineVariable, bioDraws, PanelLikelihoodTrajectory, MonteCarlo, log
Note that it is also possible to import all of them using the following syntax
from biogeme.expressions import *
although this is not a good Python programming practice.
Biogeme is a open source Python package designed for the maximum likelihood estimation of parametric models in general, with a special emphasis on discrete choice models. It relies on the package Python Data Analysis Library called Pandas.
Biogeme used to be a stand alone software package, written in C++. All the material related to the previous versions of Biogeme are available on the old webpage.
Several versions of Biogeme have been developed over the years. Several names of animals appear: Gnu, Bison, Python, and now, Pandas.
 HieLoW

Around 1990, Michel Bierlaire wrote a software package called HieLoW: Hierarchical Logit for Windows. It was written in Borland C++, and was the first discrete choice estimation software with a graphical user interface. It was designed for the estimation of logit and nested logit models. The user had to specify the models through a graphical user interface. This software was distributed by Stratec SA, Brussels.
 BisonBiogeme
Around 2000, the first version of Biogeme was released. Written in GNU C++, it was the first open source discrete choice software. It was designed to estimate the parameters of a list of predetermined discrete choice models such as logit, binary probit, nested logit, crossnested logit, multivariate extreme value models, discrete and continuous mixtures of multivariate extreme value models, models with nonlinear utility functions, models designed for panel data, and heteroscedastic models. The modeling language was designed to be simple, and was developed using a a generalpurpose parser generator called GNU Bison. Later, it will be referred to as BisonBiogeme. The distributions can be found here.
 PythonBiogeme
Around 2010, a more flexible version was designed for general purpose parametric models. . The modeling language was extended, and based on the Python language. A series of discrete choice models were precoded for an easy use. Also written in GNU C++, it is distributed on the homebrew package manager. The distributions can be found here.
 PandasBiogeme
In 2018, a completely new version of the software was released. It was not anymore a standalone executable, but a Python package. The package is written in Python, with the exception of the core calculations of the models, that are written in C++ for the sake of efficiency. The motivation was to combine the simplicity of the usage (especially for teaching purposes), with the sophistication provided by Python (for research and applications purposes). Morever, the management of the data relies on the package Pandas, which has become the workhorse of data scientists. Therefore, the name PandasBiogeme has been adopted. It is distributed on the Python Package Index repository.
BIOGEME is distributed free of charge. We ask each user
 to register to Biogeme's users group, and
 to mention explicitly the use of the package when publishing results, using the following reference:
I would like to thank the following persons who played various roles in the development of Biogeme along the years. The list is certainly not complete, and I apologize for those who are omitted: Alexandre Alahi, Nicolas Antille, Gianluca Antonini, Kay Axhausen, John Bates, Denis Bolduc, David Bunch, Andrew Daly, Anna Fernandez Antolin, Mamy Fetiarison, Mogens Fosgerau, Emma Frejinger, Carmine Gioia, MarieHélène Godbout, Stephane Hess, Tim Hillel, Richard Hurni, Eva Kazagli, Jasper Knockaert, Xinjun Lai, Gael Lederrey, Virginie Lurkin, Nicholas Molyneaux, Carolina Osorio, Meritxell Pacheco Paneque, Thomas Robin, Pascal Scheiben, Matteo Sorci, Michael Thémans, Joan Walker.
I would like to express a special thank to Moshe BenAkiva and Daniel McFadden for their friendship, and for the immense influence that they had and still have on my work.
Biogeme has been developed by Michel Bierlaire, Ecole Polytechnique Fédérale de Lausanne, Switzerland.