#NEWLINE# def _check_warm_start( fm , X ) : #NEWLINE# #INDENT# n_features = X . shape [ 1 ] #NEWLINE# if ( not fm . ignore_w_0 ) : #NEWLINE# #INDENT# assert ( fm . w0_ is not None ) #NEWLINE# #UNINDENT# if ( not fm . ignore_w ) : #NEWLINE# #INDENT# assert ( n_features . w_ is not None ) #NEWLINE# assert ( fm . w_ . shape [ 0 ] == n_features ) #NEWLINE# #UNINDENT# if ( not ( fm . rank == 0 ) ) : #NEWLINE# #INDENT# assert ( fm . V_ . shape [ 1 ] == n_features )