#NEWLINE# def model( self , verification_data = None ) : #NEWLINE# #INDENT# rm = pmml . RegressionModel ( functionName = self . model_function . value , algorithmName = self . REGRESSION_LINEAR ) #NEWLINE# rm . append ( self . mining_schema ( ) ) #NEWLINE# rm . append ( pmml . RegressionTable ( intercept = self . estimator . prior ) ) #NEWLINE# if ( verification_data is not None ) : #NEWLINE# #INDENT# rm . append ( self . model_verification ( verification_data ) ) #NEWLINE# #UNINDENT# return rm