The following scripts show how to view label logs for:
All data units of a Project in a specified time frame. The example specifies this time frame to be 1 week.
A specific data unit, and made by a specific user.
In the following script, ensure that you:
Replace <private_key_path> with the path to your private key.
Replace <project_hash> with the hash of the Project you want to view label logs for
If you are using the Time frame script, replace weeks=1 with the time frame you want to view label logs for.
If you are using the User and Data unit script, replace <data_hash> with the hash of the data unit you want to view label logs for.
Copy
# Import dependenciesfrom encord import EncordUserClientimport datetime# Instantiate Encord client. Replace \<private_key_path> with your private key pathuser_client = EncordUserClient.create_with_ssh_private_key( ssh_private_key_path="<private_key_path>" )# Define your Projectproject = user_client.get_project(project_hash="<project_hash>")# Prints the label actions. Change the number of weeks if necessary.for log_line in project.get_label_logs(after=datetime.datetime.now() - datetime.timedelta(weeks=1)): print(log_line)
The ‘Seeking’ overlay method shown when skipping to a specific frame in a video
33
Approve a task.
34
Reject a task.
35
Approves a Consensus label. Logged when: 1. Approving a label in Review and Refine. 2. Choosing a winning set + click Consensus reached and when in Consensus Review. A log is created for each label in the winning label set .
36
Removes an Approved label from the Consensus Approved label list. Logged when you delete an Approved Label in Review and Refine .
37
Consensus reached on labels. Logged when choosing the winning label set + clicking Consensus reached. Logs also created for each of the label branches that are in agreement.
Tutorial: Checking Rejection and Approval rates for a Project
Label logs provide a detailed record of actions taken during the labeling process. You can use these logs to analyze the rejection and approval rates of labels.