s c o r e f l o w \ d a t a \ v a l i d a t i o n . p y : 6 6 : 1 0 1 :   E 5 0 1   L i n e   t o o   l o n g   ( 1 0 2   >   1 0 0 ) 
 
       | 
 
 6 4   |                   i f   m i s s i n g   >   m a x _ m i s s i n g _ r a t e : 
 
 6 5   |                           r e p o r t . w a r n i n g s . a p p e n d ( 
 
 6 6   |                                   f " C o l u m n   ' { c o l } '   h a s   { m i s s i n g : . 1 % }   m i s s i n g   v a l u e s   ( t h r e s h o l d :   { m a x _ m i s s i n g _ r a t e : . 0 % } ) " 
 
       |                                                                                                                                                                                                           ^ ^   E 5 0 1 
 
 6 7   |                           ) 
 
       | 
 
 
 
 s c o r e f l o w \ e v a l u a t i o n \ m e t r i c s . p y : 5 8 : 1 0 1 :   E 5 0 1   L i n e   t o o   l o n g   ( 1 1 5   >   1 0 0 ) 
 
       | 
 
 5 8   |   d e f   c a l c u l a t e _ l i f t ( y _ t r u e :   n p . n d a r r a y   |   p d . S e r i e s ,   y _ p r o b :   n p . n d a r r a y   |   p d . S e r i e s ,   q u a n t i l e :   f l o a t   =   0 . 1 )   - >   f l o a t : 
 
       |                                                                                                                                                                                                           ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^   E 5 0 1 
 
 5 9   |           " " " C a l c u l a t e   L i f t   a t   a   g i v e n   q u a n t i l e . 
 
       | 
 
 
 
 s c o r e f l o w \ e v a l u a t i o n \ m e t r i c s . p y : 9 9 : 1 0 1 :   E 5 0 1   L i n e   t o o   l o n g   ( 1 1 2   >   1 0 0 ) 
 
         | 
 
   9 9   |   d e f   c a l c u l a t e _ p s i ( e x p e c t e d :   n p . n d a r r a y   |   p d . S e r i e s ,   a c t u a l :   n p . n d a r r a y   |   p d . S e r i e s ,   b u c k e t s :   i n t   =   1 0 )   - >   f l o a t : 
 
         |                                                                                                                                                                                                           ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^   E 5 0 1 
 
 1 0 0   |           " " " C a l c u l a t e   t h e   P o p u l a t i o n   S t a b i l i t y   I n d e x   ( P S I ) . 
 
         | 
 
 
 
 s c o r e f l o w \ m o d e l s \ t r a i n e r . p y : 1 6 0 : 1 0 1 :   E 5 0 1   L i n e   t o o   l o n g   ( 1 0 6   >   1 0 0 ) 
 
         | 
 
 1 5 8   |                           } ) 
 
 1 5 9   | 
 
 1 6 0   |                   r e t u r n   p d . D a t a F r a m e ( r e s u l t s ) . s o r t _ v a l u e s ( f " m e a n _ { m e t r i c } " ,   a s c e n d i n g = F a l s e ) . r e s e t _ i n d e x ( d r o p = T r u e ) 
 
         |                                                                                                                                                                                                           ^ ^ ^ ^ ^ ^   E 5 0 1 
 
 1 6 1   | 
 
 1 6 2   |           d e f   s a v e _ a r t i f a c t s ( s e l f ,   a r t i f a c t s :   l i s t [ M o d e l A r t i f a c t ] ,   o u t p u t _ d i r :   s t r   |   P a t h )   - >   l i s t [ P a t h ] : 
 
         | 
 
 
 
 F o u n d   4   e r r o r s . 
 
 