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