Exemplo n.º 1
0
def titanic():
    text1 = request.form['train']
    text2 = request.form['test']
    t = TitanicController(text1,text2)
    t.titanic()
    #result = c.calc()
    #render_params = {}
    #render_params['result'] = int(result)
    return render_template('titanic.html')
Exemplo n.º 2
0
from titanic.controller import TitanicController
from titanic.view import TitanicView

if __name__ == '__main__':
    ctrl = TitanicController()
    #ctrl.create_train()

    #view = TitanicView()
    #t = view.create_train()
    #view.plot_survived_dead(t)
    #view.plot_sex(t)
    #view.bar_chart(t, 'Sex')
    #view.plot_pclass_sex(t)

    #ctrl.test_all()

    ctrl.submit()
Exemplo n.º 3
0
def titanic():
    train = request.form['train']
    test = request.form['test']
    c = TitanicController(train, test)
Exemplo n.º 4
0
from titanic.controller import TitanicController
from titanic.view import TitanicView
if __name__ == '__main__':
    ctrl = TitanicController()
    t = ctrl.create_train()
    ctrl.test_all()
    # view = TitanicView()
    # t = view.create_train()
    # view.plot_pclass_sex(t)
    ctrl.submit()
Exemplo n.º 5
0
from titanic.controller import TitanicController
if __name__ == '__main__':
    ctrl = TitanicController()
    t = ctrl.create_train()