In [7]:
import models.bayesian_classification as model
%matplotlib inline

In [8]:
model = model.TitanicModel()

In [9]:
model.build_voting_model(model_size=10, n_jobs=4)
model.fit()


C:\Users\perus\AppData\Local\Continuum\Anaconda3\envs\bayes\lib\site-packages\sklearn\preprocessing\label.py:112: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
  y = column_or_1d(y, warn=True)
C:\Users\perus\AppData\Local\Continuum\Anaconda3\envs\bayes\lib\site-packages\sklearn\preprocessing\label.py:147: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
  y = column_or_1d(y, warn=True)

In [4]:
model.evaluate_model()


Out[4]:
0.84304932735426008

In [6]:
model.model.weights

In [ ]: