tuneandtrainInt function

Tune and Train by tuning method Int