示例#1
0
def university_comparer(dataframe):
    '''Handles the functionalities of University Comparer feature'''

    GUI2.start_user_interface(dataframe)
    university_name_1 = GUI2.get_uni1()
    branch_name_1 = GUI2.get_branch1()
    university_name_2 = GUI2.get_uni2()
    branch_name_2 = GUI2.get_branch2()

    print university_name_1, university_name_2
    print branch_name_1, branch_name_2
def university_comparer(dataframe):
	'''Handles the functionalities of University Comparer feature'''

	GUI2.start_user_interface(dataframe)
	university_name_1 = GUI2.get_uni1()
	branch_name_1 = GUI2.get_branch1()
	university_name_2 = GUI2.get_uni2()
	branch_name_2 = GUI2.get_branch2()

	print university_name_1, university_name_2
	print branch_name_1, branch_name_2
def university_comparer(dataframe, crimes_obj):
	'''Handles the functionalities of University Comparer feature'''

	GUI2.start_user_interface(dataframe)
	university_name_1 = GUI2.get_uni1()
	branch_name_1 = GUI2.get_branch1()
	university_name_2 = GUI2.get_uni2()
	branch_name_2 = GUI2.get_branch2()

	university_name_1, branch_name_1, multibar_plot_1, pie_chart_1 = university_crime_explorer(dataframe, crimes_obj, university_name_1, branch_name_1, False)
	university_name_2, branch_name_2, multibar_plot_2, pie_chart_2 = university_crime_explorer(dataframe, crimes_obj, university_name_2, branch_name_2, False)

	return multibar_plot_1, multibar_plot_2, pie_chart_1, pie_chart_2, university_name_1, branch_name_1, university_name_2, branch_name_2
示例#4
0
def university_comparer(dataframe, crimes_obj):
    '''Handles the functionalities of University Comparer feature'''

    GUI2.start_user_interface(dataframe)
    university_name_1 = GUI2.get_uni1()
    branch_name_1 = GUI2.get_branch1()
    university_name_2 = GUI2.get_uni2()
    branch_name_2 = GUI2.get_branch2()

    university_name_1, branch_name_1, multibar_plot_1, pie_chart_1 = university_crime_explorer(
        dataframe, crimes_obj, university_name_1, branch_name_1, False)
    university_name_2, branch_name_2, multibar_plot_2, pie_chart_2 = university_crime_explorer(
        dataframe, crimes_obj, university_name_2, branch_name_2, False)

    return multibar_plot_1, multibar_plot_2, pie_chart_1, pie_chart_2, university_name_1, branch_name_1, university_name_2, branch_name_2
示例#5
0
def university_comparer(dataframe, crimes_obj):
	'''Handles the functionalities of University Comparer feature'''

	GUI2.start_user_interface(dataframe)
	university_name_1 = GUI2.get_uni1()
	branch_name_1 = GUI2.get_branch1()
	university_name_2 = GUI2.get_uni2()
	branch_name_2 = GUI2.get_branch2()

	if len(university_name_1) == 0 or len(branch_name_1) == 0:
		print "Thank you for using the software"
		exit()

	university_name_1, branch_name_1, multibar_plot_1, pie_chart_1 = university_crime_explorer(dataframe, crimes_obj, university_name_1, branch_name_1, False)
	university_name_2, branch_name_2, multibar_plot_2, pie_chart_2 = university_crime_explorer(dataframe, crimes_obj, university_name_2, branch_name_2, False)

	return multibar_plot_1, multibar_plot_2, pie_chart_1, pie_chart_2, university_name_1, branch_name_1, university_name_2, branch_name_2
        aaa[0][j] = 1
    y_pred.append(aaa[0])
    y_pred = np.array(aaa)
    # prediction.append(aaa[0])
    kelas = showClass(aaa)
    print(aaa)
    print(kelas)
    w.LabelPred.configure(text=str(kelas))

    print('Coba2_support.func_predict')
    sys.stdout.flush()


def init(top, gui, *args, **kwargs):
    global w, top_level, root
    w = gui
    top_level = top
    root = top


def destroy_window():
    # Function which closes the window.
    global top_level
    top_level.destroy()
    top_level = None


if __name__ == '__main__':
    import GUI2
    GUI2.vp_start_gui()