parameters: (valn_files)
return_statement: return ((pred > 0.7) == labelsv).nonzero()[0]
docstring: Validates ml against valn_files, a list of log file names.
  
      Returns indices of correct predictions.
docstring_summary: Validates ml against valn_files, a list of log file names.
docstring_tokens: Validates ml against valn_files a list of log file names .
function: def validate(valn_files):
      """Validates ml against valn_files, a list of log file names.
  
      Returns indices of correct predictions.
      """
      locsv, valsv, labelsv = rfutils.read_data(valn_files, poscount, locidx)
      pred = ml.predict([locsv, valsv])[:, 0]
      return ((pred > 0.7) == labelsv).nonzero()[0]
function_tokens: def validate ( valn_files ) : locsv , valsv , labelsv = rfutils . read_data ( valn_files , poscount , locidx ) pred = ml . predict ( [ locsv , valsv ] ) [ : , 0 ] return ( ( pred > 0.7 ) == labelsv ) . nonzero ( ) [ 0 ]