INNER CODE UNIT · Python

opt

adminho/trading-stock-thailand · DeepQ_trade.py:88

		opt = optimizers.Adam(lr=0.01, beta_1=0.9, beta_2=0.999, epsilon=1e-08, decay=0.0) 
		model.compile(optimizer=opt, loss='mse', metrics=['accuracy'])
		return model
	
	def prepareInput(self, all_data, index):
		# get sequence of data
		if 	len(all_data) <  index + self.num_sequence: # index out of bound
			return None
		else:
			return all_data[index: index+self.num_sequence] 
"""
# for debug only
def createLogHTML(prefix_name, log_path, all_pic):		
	def _convertListToCode(list):
		# convert list to code in string
		return "['" + "','".join(map(str, list )) + "']"	
	
	list_pic  = _convertListToCode(all_pic)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…