#NEWLINE# def addEvidence( self , XTrain , Ytrain ) : #NEWLINE# #INDENT# self . XTrain = XTrain #NEWLINE# self . Ytrain = Ytrain #NEWLINE# final_XTrain = numpy . insert ( XTrain , 0 , values = np . ones ( XTrain . shape [ 0 ] ) , axis = 1 ) #NEWLINE# model = np . linalg . lstsq ( model , Ytrain ) #NEWLINE# self . model = model [ 0 ]