Example #1
0
 def get_as_dataframe(cls,
                      find=Queries.X,
                      projection=Projections.all,
                      explode=True):
     df = cls.to_df(db.find(find, projection))
     if explode:
         return ready_made_exploder.fit_transform(df)
     else:
         return df
Example #2
0
 def get_not_labeled(cls):
     return cls.to_df(db.find(Queries.no_label,
                              Projections.mechanical_turk))
Example #3
0
 def count_withlabels(cls):
     return db.find(exists("labels")).count()
Example #4
0
 def get_not_labeled(cls):
     return cls.to_df(db.find(Queries.no_label, Projections.mechanical_turk))
Example #5
0
 def get_as_dataframe(cls, find=Queries.X, projection=Projections.all, explode=True):
     df = cls.to_df(db.find(find, projection))
     if explode:
         return ready_made_exploder.fit_transform(df)
     else:
         return df
Example #6
0
 def count_withlabels(cls):
     return db.find(exists("labels")).count()