C# Class UserSimulation.Utility

Exibir arquivo Open project: plasma-umass/DataDebug

Public Methods

Method Description
BothNumbers ( string value1, string value2 ) : bool
CalculateNormalizedError ( string>.System.Collections.Generic.Dictionary correct_outputs, string>.System.Collections.Generic.Dictionary partially_corrected_outputs, double>.System.Collections.Generic.Dictionary max_errors ) : double>.System.Collections.Generic.Dictionary
CalculateTotalError ( string>.System.Collections.Generic.Dictionary correct_outputs, string>.System.Collections.Generic.Dictionary incorrect_outputs ) : double
ErrorDBToCellDict ( ErrorDB errors ) : string>.System.Collections.Generic.Dictionary
GenImportantErrors ( AST output_nodes, string>.System.Collections.Generic.Dictionary inputs, int k, string>.System.Collections.Generic.Dictionary correct_outputs, Microsoft.Office.Interop.Excel app, Microsoft.Office.Interop.Excel wb, Classification c, DAG dag ) : string>.System.Collections.Generic.Dictionary
GetFalseNegatives ( List true_positives, List false_positives, string>.System.Collections.Generic.Dictionary errors ) : HashSet
InjectValues ( Microsoft.Office.Interop.Excel app, Microsoft.Office.Interop.Excel wb, string>.System.Collections.Generic.Dictionary values ) : void
IsNumber ( string value ) : bool
MeanErrorMagnitude ( string>.System.Collections.Generic.Dictionary partially_corrected_outputs, string>.System.Collections.Generic.Dictionary original_outputs ) : double
NumericalMagnitudeChange ( double error, double correct ) : double
RelativeCategoricalError ( string original_value, string partially_corrected_value ) : double
RelativeNumericError ( double correct_value, double partially_corrected_value, double max_error ) : double
SaveInputs ( DAG dag ) : string>.System.Collections.Generic.Dictionary
SaveOutputs ( AST formula_nodes, DAG dag ) : string>.System.Collections.Generic.Dictionary
StringMagnitudeChange ( string error, string correct ) : double
TotalRelativeError ( double>.System.Collections.Generic.Dictionary error ) : double
UpdatePerFunctionMaxError ( string>.System.Collections.Generic.Dictionary correct_outputs, string>.System.Collections.Generic.Dictionary incorrect_outputs, double>.System.Collections.Generic.Dictionary max_errors ) : void

Method Details

BothNumbers() public static method

public static BothNumbers ( string value1, string value2 ) : bool
value1 string
value2 string
return bool

CalculateNormalizedError() public static method

public static CalculateNormalizedError ( string>.System.Collections.Generic.Dictionary correct_outputs, string>.System.Collections.Generic.Dictionary partially_corrected_outputs, double>.System.Collections.Generic.Dictionary max_errors ) : double>.System.Collections.Generic.Dictionary
correct_outputs string>.System.Collections.Generic.Dictionary
partially_corrected_outputs string>.System.Collections.Generic.Dictionary
max_errors double>.System.Collections.Generic.Dictionary
return double>.System.Collections.Generic.Dictionary

CalculateTotalError() public static method

public static CalculateTotalError ( string>.System.Collections.Generic.Dictionary correct_outputs, string>.System.Collections.Generic.Dictionary incorrect_outputs ) : double
correct_outputs string>.System.Collections.Generic.Dictionary
incorrect_outputs string>.System.Collections.Generic.Dictionary
return double

ErrorDBToCellDict() public static method

public static ErrorDBToCellDict ( ErrorDB errors ) : string>.System.Collections.Generic.Dictionary
errors ErrorDB
return string>.System.Collections.Generic.Dictionary

GenImportantErrors() public static method

public static GenImportantErrors ( AST output_nodes, string>.System.Collections.Generic.Dictionary inputs, int k, string>.System.Collections.Generic.Dictionary correct_outputs, Microsoft.Office.Interop.Excel app, Microsoft.Office.Interop.Excel wb, Classification c, DAG dag ) : string>.System.Collections.Generic.Dictionary
output_nodes AST
inputs string>.System.Collections.Generic.Dictionary
k int
correct_outputs string>.System.Collections.Generic.Dictionary
app Microsoft.Office.Interop.Excel
wb Microsoft.Office.Interop.Excel
c Classification
dag DataDebugMethods.DAG
return string>.System.Collections.Generic.Dictionary

GetFalseNegatives() public static method

public static GetFalseNegatives ( List true_positives, List false_positives, string>.System.Collections.Generic.Dictionary errors ) : HashSet
true_positives List
false_positives List
errors string>.System.Collections.Generic.Dictionary
return HashSet

InjectValues() public static method

public static InjectValues ( Microsoft.Office.Interop.Excel app, Microsoft.Office.Interop.Excel wb, string>.System.Collections.Generic.Dictionary values ) : void
app Microsoft.Office.Interop.Excel
wb Microsoft.Office.Interop.Excel
values string>.System.Collections.Generic.Dictionary
return void

IsNumber() public static method

public static IsNumber ( string value ) : bool
value string
return bool

MeanErrorMagnitude() public static method

public static MeanErrorMagnitude ( string>.System.Collections.Generic.Dictionary partially_corrected_outputs, string>.System.Collections.Generic.Dictionary original_outputs ) : double
partially_corrected_outputs string>.System.Collections.Generic.Dictionary
original_outputs string>.System.Collections.Generic.Dictionary
return double

NumericalMagnitudeChange() public static method

public static NumericalMagnitudeChange ( double error, double correct ) : double
error double
correct double
return double

RelativeCategoricalError() public static method

public static RelativeCategoricalError ( string original_value, string partially_corrected_value ) : double
original_value string
partially_corrected_value string
return double

RelativeNumericError() public static method

public static RelativeNumericError ( double correct_value, double partially_corrected_value, double max_error ) : double
correct_value double
partially_corrected_value double
max_error double
return double

SaveInputs() public static method

public static SaveInputs ( DAG dag ) : string>.System.Collections.Generic.Dictionary
dag DataDebugMethods.DAG
return string>.System.Collections.Generic.Dictionary

SaveOutputs() public static method

public static SaveOutputs ( AST formula_nodes, DAG dag ) : string>.System.Collections.Generic.Dictionary
formula_nodes AST
dag DataDebugMethods.DAG
return string>.System.Collections.Generic.Dictionary

StringMagnitudeChange() public static method

public static StringMagnitudeChange ( string error, string correct ) : double
error string
correct string
return double

TotalRelativeError() public static method

public static TotalRelativeError ( double>.System.Collections.Generic.Dictionary error ) : double
error double>.System.Collections.Generic.Dictionary
return double

UpdatePerFunctionMaxError() public static method

public static UpdatePerFunctionMaxError ( string>.System.Collections.Generic.Dictionary correct_outputs, string>.System.Collections.Generic.Dictionary incorrect_outputs, double>.System.Collections.Generic.Dictionary max_errors ) : void
correct_outputs string>.System.Collections.Generic.Dictionary
incorrect_outputs string>.System.Collections.Generic.Dictionary
max_errors double>.System.Collections.Generic.Dictionary
return void