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')
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()
def titanic(): train = request.form['train'] test = request.form['test'] c = TitanicController(train, test)
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()
from titanic.controller import TitanicController if __name__ == '__main__': ctrl = TitanicController() t = ctrl.create_train()