def _parse_sparkml_simple_model(spark, scope, model, global_inputs, output_dict):
    '''
    This function handles all non-pipeline models.

    :param scope: Scope object
    :param model: A spark-ml Transformer/Evaluator (e.g., OneHotEncoder and LogisticRegression)
    :param global_inputs: A list of variables
    :param output_dict: An accumulated list of output_original_name->(ref_count, variable)
    :return: A list of output variables which will be passed to next stage
    '''
    this_operator = scope.declare_local_operator(get_sparkml_operator_name(type(model)), model)
    this_operator.raw_params = {'SparkSession': spark}
    raw_input_names = get_input_names(model)
    this_operator.inputs = [_get_variable_for_input(scope, x, global_inputs, output_dict) for x in raw_input_names]
    raw_output_names = get_output_names(model)
    for output_name in raw_output_names:
        variable = scope.declare_local_variable(output_name, FloatTensorType())
        this_operator.outputs.append(variable)
        output_dict[variable.raw_name] = [0, variable]
def _parse_sparkml_simple_model ( spark , scope , model , global_inputs , output_dict ) : this_operator = scope . declare_local_operator ( get_sparkml_operator_name ( type ( model ) ) , model ) this_operator . raw_params = { 'SparkSession' : spark } raw_input_names = get_input_names ( model ) this_operator . inputs = [ _get_variable_for_input ( scope , x , global_inputs , output_dict ) for x in raw_input_names ] raw_output_names = get_output_names ( model ) for output_name in raw_output_names : variable = scope . declare_local_variable ( output_name , FloatTensorType ( ) ) this_operator . outputs . append ( variable ) output_dict [ variable . raw_name ] = [ 0 , variable ]
This function handles all non-pipeline models.

    :param scope: Scope object
    :param model: A spark-ml Transformer/Evaluator (e.g., OneHotEncoder and LogisticRegression)
    :param global_inputs: A list of variables
    :param output_dict: An accumulated list of output_original_name->(ref_count, variable)
    :return: A list of output variables which will be passed to next stage