class NexosisApi::AnomalyScores
class to hold the parsed results of an anomalyScores request @since 2.1.0
Attributes
data[R]
The anomalies found while building your model. @return [NexosisApi::PagedArray] per observation feature scores of the form {“target_col”: “0.3882”, “col_1” : “0.828”, “target_col:actual” : “0.402”}
percent_anomalies[R]
The percent of observations found to be anomalous in the training data set
Public Class Methods
new(result_hash)
click to toggle source
Calls superclass method
# File lib/nexosis_api/anomaly_scores.rb, line 6 def initialize(result_hash) @data = NexosisApi::PagedArray.new(result_hash, result_hash['data']) @percent_anomalies = result_hash['metrics']['percentAnomalies'] unless result_hash['metrics'].nil? super(result_hash.reject { |k, _v| k.to_s == 'data' || k.to_s == 'metrics' }) end