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
multinomialmetricmetadata.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 import json
21 from pyspark.mllib.evaluation import MulticlassMetrics
22 
23 
24 # Class Base for Multinomial metricts as OrderedDict
25 #
26 # Base Metrics for Multinomial
27 # [hit_ratio_table (as json_dataframe(orient=split)), cm (as json_dataframe(orient=split) structure)]
29 
31  def __init__(self):
32  MetricMetadata.__init__(self)
33  self['hit_ratio_table'] = OrderedDict()
34  self['cm'] = OrderedDict()
35 
36 
38  def set_precision(self, threshold):
39  pass
40 
Define Base Metric object as OrderedDict() of common measures for all metrics types on an unified way...
Class Base for metricts as OrderedDict.
def set_precision(self, threshold)
Method to set precision measure Not implemented yet.