This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri May 25 00:18:04 2018 | |
@author: Gurcan | |
""" | |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri May 25 00:18:04 2018 | |
@author: Gurcan | |
""" | |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
This file contains 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 numpy import genfromtxt | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from sklearn import datasets, svm | |
from sklearn.ensemble import GradientBoostingClassifier | |
from sklearn import tree | |
from sklearn.ensemble import RandomForestClassifier | |
from sklearn.metrics import confusion_matrix | |
from sklearn.metrics import accuracy_score |
This file contains 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import cv2 | |
import numpy as np | |
from sklearn.naive_bayes import GaussianNB | |
from sklearn.neighbors import KNeighborsClassifier | |
from sklearn.neural_network import MLPClassifier | |
shapeData = list() | |
label = [4,3,2,2,3,3,4,1,2,1,1,1,1,4,4,1,3,1,2,1,1,3,3,4] |
This file contains 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
# instruction set for ARM V8 processor | |
instructionSet =[ | |
["B", "000001mmmmmmmmmmmmmmmmmmmmmmmmmm"], | |
["BR", "100001mmmmmmmmmmmmmmmmmmmmmmmmmm"], | |
["EQ", "01000100mmmmmmmmmmmmmmmmmmmnnnnn"], | |
["NE", "01110100mmmmmmmmmmmmmmmmmmmnnnnn"], | |
["GE", "01100100mmmmmmmmmmmmmmmmmmmnnnnn"], | |
["GT", "01010100mmmmmmmmmmmmmmmmmmmnnnnn"], | |
["LE", "01001100mmmmmmmmmmmmmmmmmmmnnnnn"], | |
["LT", "11000100mmmmmmmmmmmmmmmmmmmnnnnn"], |
This file contains 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 re | |
import os | |
from instructionSet import instructionSet | |
# program counter | |
pc = 100 | |
# jump list | |
colonList = list() |
This file contains 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 re | |
from instructionSet import instructionSet | |
# program counter | |
pc = 100 | |
# jump list | |
colonList = list() | |
# var list |
This file contains 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
; Initially PC is set to 100 | |
; Data section is right after the code section | |
.text 100 | |
.global _main | |
_main: | |
ADD R1, R0, #10 ; init i | |
LDR R1, [R0, VAR_i] ; store i | |
ADDI R20, R0, #2 | |
FOR_0: | |
LDR R1, [R0, VAR_i] |
This file contains 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
# instruction set for ARM V8 processor | |
instructionSet =[ | |
["B", "000001mmmmmmmmmmmmmmmmmmmmmmmmmm"], | |
["BR", "100001mmmmmmmmmmmmmmmmmmmmmmmmmm"], | |
["EQ", "01000100mmmmmmmmmmmmmmmmmmm00000"], | |
["NE", "01110100mmmmmmmmmmmmmmmmmmm00000"], | |
["GE", "01100100mmmmmmmmmmmmmmmmmmm00000"], | |
["GT", "01010100mmmmmmmmmmmmmmmmmmm00000"], | |
["LE", "01001100mmmmmmmmmmmmmmmmmmm00000"], | |
["LT", "11000100mmmmmmmmmmmmmmmmmmm00000"], |
This file contains 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 re | |
# program counter | |
pc = 100 | |
# jump list | |
colonList = list() | |
# param list | |
param = list() |
NewerOlder