Skip to content

Instantly share code, notes, and snippets.

@shivamsnaik
shivamsnaik / drugs_and_alcohol.md
Created January 14, 2023 21:20 — forked from ShkurtiA/drugs_and_alcohol.md
Fahrschule, driving license germany, berlin

Drugs and Alcohol

How is the intoxicating substance in hashish broken down by the body?

  • Unevenly over an indeterminate period

In general, how long does it take before an alcohol level of 1.0 per mille (100mg/100ml) is cleared from the blood stream?

  • 5 hours
  • 10 hours
  • 1 hour
@shivamsnaik
shivamsnaik / Evaluator.py
Last active October 8, 2023 03:24
Pure COCO-library-based Method to calculate metrics such as Precision, Recall, and F1-Score with outputs in MarkDown tables
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
from pycocotools.cocoeval import Params
import numpy as np
import logging
def evaluate_metrics(cocoEval, params = None, display_summary = False):
# Display the iouThresholds for which the evaluation took place
if params:
cocoEval.params = params