Skip to content

Instantly share code, notes, and snippets.

View Hoeze's full-sized avatar

Florian R. Hölzlwimmer Hoeze

  • Technical University of Munich
  • Munich
View GitHub Profile
@Hoeze
Hoeze / bluetoothctl.py
Last active February 21, 2018 18:37 — forked from koji/bluetoothctl.py
Bluetoothctl wrapper in Python
# ReachView code is placed under the GPL license.
# Written by Egor Fedorov ([email protected])
# Copyright (c) 2015, Emlid Limited
# All rights reserved.
# If you are interested in using ReachView code as a part of a
# closed source project, please contact Emlid Limited ([email protected]).
# This file is part of ReachView.
@Hoeze
Hoeze / letor_metrics.py
Created September 9, 2019 11:55 — forked from mblondel/letor_metrics.py
Learning to rank metrics.
# (C) Mathieu Blondel, November 2013
# License: BSD 3 clause
import numpy as np
def ranking_precision_score(y_true, y_score, k=10):
"""Precision at rank k
Parameters