class Ai4cr::ErrorStats

Included Modules

Defined in:

ai4cr/error_stats.cr

Constant Summary

DEFAULT_HISTORY_SIZE = 2
INITIAL_SCORE = Float64::MAX ** (1.0 / 16)

Must init @score, so set it big enough but not too big (so ErrorStats works w/ to/from JSON)

Constructors

Instance Method Summary

Constructor Detail

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

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

[View source]

Instance Method Detail

def distance : Float64 #

[View source]
def distance=(value : Float64) #

[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]