Beispiel #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
Beispiel #2
0
 def get_not_labeled(cls):
     return cls.to_df(db.find(Queries.no_label,
                              Projections.mechanical_turk))
Beispiel #3
0
 def count_withlabels(cls):
     return db.find(exists("labels")).count()
Beispiel #4
0
 def get_not_labeled(cls):
     return cls.to_df(db.find(Queries.no_label, Projections.mechanical_turk))
Beispiel #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
Beispiel #6
0
 def count_withlabels(cls):
     return db.find(exists("labels")).count()