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 / xarray_boolean_indexing_v2.py
Last active February 19, 2024 13:38
xarray boolean indexing v2
from typing import List, Dict, Tuple
import xarray as xr
import numpy as np
import dask.array
# import pandas as pd
# def core_dim_locs_from_multiindex(multi_index, coords: Dict[str, pd.Index], new_dim_name, core_dims=None) -> List[
# Tuple[str, xr.DataArray]]:
@Hoeze
Hoeze / test_xr_boolean.ipynb
Last active April 17, 2021 13:49
Boolean indexing of xarray Dataset and DataArrays over multiple dimensions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Hoeze
Hoeze / ray_dask_persist.ipynb
Created February 20, 2021 17:26
dask on ray memory test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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
@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.