class Ai4cr::ErrorStats

Included Modules

Defined in:

ai4cr/error_stats.cr

Constant Summary

DISTANCE_DEFAULT = Math.sqrt(Math.sqrt(Float64::MAX))
HISTORY_SIZE_DEFAULT = 2
SCORE_DEFAULT = DISTANCE_DEFAULT

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(history_size = HISTORY_SIZE_DEFAULT) #

[View source]

Instance Method Detail

def distance : Float64 #

[View source]
def distance=(value) #

[View source]
def hist_correct_plot : Array(String) #

[View source]
def hist_output_str_matches : Array(Array(Int32)) #

[View source]
def history : Array(Float64) #

[View source]
def history_size : Int32 #

[View source]
def plot_error_distance_history(min = 0.0, max = 1.0, precision = 2.to_i8, in_bw = false, prefixed = false, reversed = false) #

[View source]
def score : Float64 #

[View source]
def update_history_correct_plot(which_correct_plot = "(tbd)") #

[View source]
def update_output_str_matches(output_str_matches = 0) #

[View source]