Пример #1
0
 def __init__(self, put):
     self.args = put
     self.moses = moses()
     input_data = [[0, 0, 0], [0, 1, 0], [1, 0, 0], [1, 1, 1]]
     self.output = self.moses.run(input=input_data,
                                  args=self.args,
                                  Scheme=True)
Пример #2
0
ve_Test_result = list(csv.reader(open('data/finalTest_Ve_Out.csv')))
train_data_virginica = list(csv.reader(open('data/Iris-virginica_training.csv')))
val_data_virginica = list(csv.reader(open('data/finalVal.csv')))
vi_Test_result = list(csv.reader(open('data/finalTest_Vi_Out.csv')))


val_data2 = val_data_versicolor
val_data = val_data_setosa
val_data3 = val_data_virginica

test_S_ve_vi = list(csv.reader(open('data/finalTest.csv')))



#-------------------------------
moses = moses()	
today = datetime.date.today()
#-------------------------------
#getting Combos
output = moses.run(input=train_data_setosa,args="-W1 -u CLASS -m1000000 --result-count=20", python=True)
output2 = moses.run(input=train_data_versicolor,args="-W1 -u CLASS  -m1000000 --result-count=20", python=True)
output3 = moses.run(input=train_data_virginica,args="-W1 -u CLASS  -m1000000 --result-count=20", python=True)


'''
======================================================
 Validation Testing                                 ||
======================================================
'''
newData  = [ [ None for y in range( 21) ] for x in range( 20) ]
newData2  = [ [ None for y in range( 21) ] for x in range( 20) ]
Пример #3
0
 def setUp(self):
     self.moses = moses()
Пример #4
0
	def __init__(self, put):
		self.args = put
		self.moses=moses()
		input_data=[[0,0,0],[0,1,0],[1,0,0],[1,1,1]]
		self.output=self.moses.run(input=input_data,args=self.args,Scheme=True)