This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Database\Console\WipeCommand as BaseWipeCommand; | |
class WipeCommand extends BaseWipeCommand | |
{ | |
/** | |
* {@inheritdoc} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.metrics import precision_recall_curve, auc, average_precision_score, roc_auc_score | |
import matplotlib.pyplot as plt | |
from inspect import signature | |
def generate_curve(y_true, y_pred): | |
precision, recall, _ = precision_recall_curve(y_true, y_pred) | |
average_precision = average_precision_score(y_true, y_pred) | |
roc_auc = roc_auc_score(y_true, y_pred) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
import numpy as np | |
class Progbar(object): | |
def __init__(self, target, width=30, verbose=1, interval=0.01): | |
''' | |
@param target: total number of steps expected | |
@param interval: minimum visual progress update interval (in seconds) |