def _handleJAVAParameters(options):
 if ('inferenceType' not in options):
  prediction = options.get('prediction', {InferenceType.TemporalNextStep: {'optimize': True}})
  inferenceType = None
  for (infType, value) in prediction.iteritems():
   if value['optimize']:
    inferenceType = infType
    break
  if (inferenceType == 'temporal'):
   inferenceType = InferenceType.TemporalNextStep
  if (inferenceType != InferenceType.TemporalNextStep):
   raise _ExpGeneratorException(('Unsupported inference type %s' % inferenceType))
  options['inferenceType'] = inferenceType
 if ('predictionField' in options):
  if ('inferenceArgs' not in options):
   options['inferenceArgs'] = {'predictedField': options['predictionField']}
  elif ('predictedField' not in options['inferenceArgs']):
   options['inferenceArgs']['predictedField'] = options['predictionField']

def _handleJAVAParameters ( options ) : if ( 'inferenceType' not in options ) : prediction = options . get ( 'prediction' , { InferenceType . TemporalNextStep : { 'optimize' : True } } ) inferenceType = None for ( infType , value ) in prediction . iteritems ( ) : if value [ 'optimize' ] : inferenceType = infType break if ( inferenceType == 'temporal' ) : inferenceType = InferenceType . TemporalNextStep if ( inferenceType != InferenceType . TemporalNextStep ) : raise _ExpGeneratorException ( ( 'Unsupported inference type %s' % inferenceType ) ) options [ 'inferenceType' ] = inferenceType if ( 'predictionField' in options ) : if ( 'inferenceArgs' not in options ) : options [ 'inferenceArgs' ] = { 'predictedField' : options [ 'predictionField' ] } elif ( 'predictedField' not in options [ 'inferenceArgs' ] ) : options [ 'inferenceArgs' ] [ 'predictedField' ] = options [ 'predictionField' ]
handle legacy options .