module MachineLearningWorkbench::Monkey::NArrayApproximatable
Public Instance Methods
approximates?(other, epsilon=1e-5)
click to toggle source
Verifies if `self` and `other` are withing `epsilon` of each other. @param other [NArray] @param epsilon [NArray] @return [Boolean]
# File lib/machine_learning_workbench/monkey.rb, line 253 def approximates? other, epsilon=1e-5 ((self - other).abs < epsilon).all? end