Added get_action method in annbase
added adaptive learning_rate when one of the layers is linear, this avoid big derivative values