def test():
	dbcli = getCliInstance()
	# dbcli.insertDomain('jaysonhwang.com')
	# dbcli.insertRuleset('test','jaysonhwang.com')
	print dbcli.robotsrulesetOfDomain('www.zol.com')
	print dbcli.robotsrulesetOfDomain('jayson.com')
	dbcli.showAll()
	dbcli.close()
def _cost_gp_withGradients(self,x):
        """
        Predicts the time cost and its gradient of evaluating the function at x.
        """
        m, _, dmdx, _= self.cost_model.predict_withGradients(x)
        return np.exp(m), np.exp(m)*dmdx