Skip to content

Instantly share code, notes, and snippets.

View albahnsen's full-sized avatar

Alejandro Correa Bahnsen albahnsen

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@albahnsen
albahnsen / test_calibration_FScore.py
Last active August 29, 2015 14:13
Analysis of probability calibration with BMR
__author__ = 'al'
import numpy as np
import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn.cross_validation import train_test_split
from costcla.datasets import load_bankmarketing
from costcla.metrics import savings_score
from costcla.sampling import undersampling