@@ -41,7 +41,7 @@ def find(cls, id: int):
4141 FROM pgml.projects
4242 WHERE id ={ q (id )}
4343 """ ,1 )
44- if ( len (result )== 0 ) :
44+ if len (result )== 0 :
4545return None
4646
4747project = Project ()
@@ -71,7 +71,7 @@ def find_by_name(cls, name: str):
7171 FROM pgml.projects
7272 WHERE name ={ q (name )}
7373 """ ,1 )
74- if ( len (result )== 0 ) :
74+ if len (result )== 0 :
7575return None
7676
7777project = Project ()
@@ -203,10 +203,10 @@ def data(self):
203203y .append (y_ )
204204
205205# Split into training and test sets
206- if ( self .test_sampling == 'random' ) :
206+ if self .test_sampling == 'random' :
207207return train_test_split (X ,y ,test_size = self .test_size ,random_state = 0 )
208208else :
209- if ( self .test_sampling == 'first' ) :
209+ if self .test_sampling == 'first' :
210210X .reverse ()
211211y .reverse ()
212212if isinstance (split ,float ):
@@ -273,7 +273,7 @@ def find_deployed(cls, project_id: int):
273273 ORDER by deployments.created_at DESC
274274 LIMIT 1
275275 """ )
276- if ( len (result )== 0 ) :
276+ if len (result )== 0 :
277277return None
278278
279279model = Model ()