Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Crowdsourcing data analysis. (#3958)
Browse files Browse the repository at this point in the history
* minor cleanup

* minor cleanup

* accpt filter

* pr comments
  • Loading branch information
mojtaba-komeili authored Aug 19, 2021
1 parent 833b873 commit a95fd98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parlai/crowdsourcing/utils/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_results_path_base(self) -> str:
f'{self.__class__.__name__}__{now.strftime("%Y%m%d_%H%M%S")}',
)

def unit_acceptable(self, unit_data: Dict[str, Any]) -> bool:
def is_unit_acceptable(self, unit_data: Dict[str, Any]) -> bool:
"""
Helps filtering units that are compiled. Override for use.
Expand Down Expand Up @@ -210,7 +210,7 @@ def get_units_data(self, task_units: List[Unit]) -> List[Dict[str, Any]]:
task_data = []
for unit in task_units:
unit_data = self.get_data_from_unit(unit)
if unit_data and self.unit_acceptable(unit_data):
if unit_data and self.is_unit_acceptable(unit_data):
task_data.append(unit_data)

return task_data

0 comments on commit a95fd98

Please sign in to comment.