public SearchResult search ( Instances data ) throws Exception { SearchResult result ; SearchResult best ; try { log ( "\n" + getClass ( ) . getName ( ) + "\n" + getClass ( ) . getName ( ) . replaceAll ( "." , "=" ) + "\n" + "Options: " + Utils . joinOptions ( getOptions ( ) ) + "\n" ) ; log ( "\n---> check" ) ; check ( data ) ; log ( "\n---> preSearch" ) ; preSearch ( data ) ; log ( "\n---> doSearch" ) ; best = doSearch ( data ) ; log ( "\n---> postSearch" ) ; result = postSearch ( data , best ) ; } catch ( Exception e ) { throw e ; } finally { cleanUpSearch ( ) ; } return result ; }
Performs the search and returns the best setup .