This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from Tkinter import * | |
| from time import sleep | |
| from threading import Thread | |
| import socket, sys | |
| from struct import * | |
| import datetime | |
| from lxml import etree | |
| from manager_xml import update_timing,update_split | |
| import sqlite3 | |
| #Global Var |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import socket, sys | |
| from struct import * | |
| import datetime | |
| def generate_timing(data): | |
| isi=[] | |
| with open('Timing.xml','r+') as timin: | |
| for line in timin: | |
| isi.append(line) | |
| timin.close() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| APS Failure at Scania Trucks Dataset, access via ilang.in/datasetKitaBNF | |
| Final Project Data Mining, by | |
| P. Baskara (05111540000055) | |
| Failaqul Haq() (05111540000090) | |
| Anindya Hantari (05111540000116) | |
| Dosen : Dr. Chastine Fatichah, M.Kom. | |
| Informatika ITS 2018 | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from collections import Counter | |
| from imblearn.under_sampling import NearMiss | |
| from imblearn.over_sampling import ADASYN | |
| from imblearn.under_sampling import TomekLinks | |
| import pandas as pd | |
| from sklearn.neural_network import MLPClassifier | |
| from sklearn.model_selection import train_test_split | |
| from sklearn.metrics import accuracy_score | |
| from sklearn.metrics import classification_report as cr | |
| from sklearn.metrics import confusion_matrix as cm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import binascii | |
| import des as DES | |
| from random import randint as rd | |
| def findIter(plain): | |
| length=len(plain) | |
| if length%16==0: | |
| n_iter=length/16 | |
| else: | |
| n_iter=(length/16)+1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image as Im | |
| from Tkinter import * | |
| from math import log10 | |
| import tkFileDialog | |
| import ImageTk | |
| import os | |
| #====Global Var Declarations | |
| home=None | |
| topFrame=None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv | |
| import numpy | |
| from math import * | |
| from time import sleep | |
| #==============================start of minkowski============================== | |
| def minkowski(data_training,data_test,k,r): | |
| count0=0#count label 0 | |
| count1=0#count label 1 | |
| actual=None#variabel label aktual |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv | |
| import numpy | |
| import math | |
| from Tkinter import * | |
| from time import sleep | |
| from random import randint | |
| #global variables | |
| k=0 | |
| k_input=None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import socket | |
| import sys | |
| import time | |
| from threading import Thread | |
| from time import sleep | |
| class bcolors: | |
| HEADER = '\033[95m' | |
| OKBLUE = '\033[94m' | |
| OKGREEN = '\033[92m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import socket | |
| import sys | |
| import time | |
| from fileRetriever import * | |
| # Inisialisasi Create a TCP/IP socket | |
| client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| #Koneksi | |
| server_address = ('localhost', 10001) | |
| print >>sys.stderr, 'connecting to %s port %s' % server_address |