Skip to content

Instantly share code, notes, and snippets.

@brookisme
brookisme / confusion.py
Last active November 19, 2020 01:49
PyTorch and Numpy Confusion Matrix, Precision, Recall
#
# CONFIG
#
BETA=2
RETURN_CMATRIX=True
INVALID_ZERO_DIVISON=False
VALID_ZERO_DIVISON=1.0
import os
import yaml
import json
from graphqlclient import GraphQLClient
#
# CONSTANTS
#
LBOX_PATH=os.path.dirname(os.path.realpath(__file__))
CONFIG_PATH="{}/lbox.config.yaml".format(LBOX_PATH)
CREATE_DS_ERROR="lbox.api.create_dataset: connecting to projects not yet implemented"
@brookisme
brookisme / VectorToRaster-Dev.ipynb
Last active January 31, 2019 20:59
VectorToRaster-DEV
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brookisme
brookisme / CropAOIs.DEV.ipynb
Created January 17, 2019 01:23
Crop Isolated AOIs in geotiff
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, this is too big to display.
Sorry, this is too big to display.
Sorry, this is too big to display.
Sorry, this is too big to display.
Sorry, this is too big to display.