| DayF core 1.2.1.2 DayF (Decision at your Fingertips) is an AutoML freeware development framework that let developers works with Machine Learning models without any idea of AI, simply taking a csv dataset and the objective column

binomialmetricmetadata.py
1
4
5 '''
6 Copyright (C) e2its - All Rights Reserved
7 * Unauthorized copying of this file, via any medium is strictly prohibited
8 * Proprietary and confidential
9 *
10 * This file is part of gDayF project.
11 *
12 * Written by Jose L. Sanchez <e2its.es@gmail.com>, 2016-2019
13 '''
14
15 from collections import OrderedDict
16 from gdayf.metrics.metricmetadata import MetricMetadata
17 from pandas import DataFrame
18 import numpy as np
19 import time
20 from pyspark.mllib.evaluation import MulticlassMetrics
21 import json
22
23
24
31 class BinomialMetricMetadata(MetricMetadata):
32
34 def __init__(self):
35 MetricMetadata.__init__(self)
36 self['AUC'] = None
37 self['gains_lift_table'] = OrderedDict()
38 self['Gini'] = None
39 self['mean_per_class_error'] = None
40 self['logloss'] = None
41 self['max_criteria_and_metric_scores'] = OrderedDict
42 self['cm'] = OrderedDict()
43 self['cm']['min_per_class_accuracy'] = None
44 self['cm']['absolute_mcc'] = None
45 self['cm']['precision'] = None
46 self['cm']['accuracy'] = None
47 self['cm']['f0point5'] = None
48 self['cm']['f2'] = None
49 self['cm']['f1'] = None
50
51
53 def set_precision(self, tolerance):
54 pass
55
gdayf.metrics.metricmetadata
Define Base Metric object as OrderedDict() of common measures for all metrics types on an unified way...
Definition: metricmetadata.py:1
gdayf.metrics.metricmetadata.MetricMetadata
Class Base for metricts as OrderedDict.
Definition: metricmetadata.py:21
gdayf.metrics.binomialmetricmetadata.BinomialMetricMetadata.__init__
def __init__(self)
Method constructor.
Definition: binomialmetricmetadata.py:34
gdayf.metrics.binomialmetricmetadata.BinomialMetricMetadata
Class Base for Binomial metricts as OrderedDict.
Definition: binomialmetricmetadata.py:31
gdayf.metrics.binomialmetricmetadata.BinomialMetricMetadata.set_precision
def set_precision(self, tolerance)
Method to set precision measure Not implemented yet.
Definition: binomialmetricmetadata.py:53