class NexosisApi::FeatureImportance
Class to hold the parse results of a request for Feature Importance scores @since 2.4.0
Attributes
scores[R]
A paged array of scores where each element of the array is a two item array of the form [col_name, score] @return NexosisApi::PagedArray
Public Class Methods
new(session_hash)
click to toggle source
Calls superclass method
# File lib/nexosis_api/feature_importance.rb, line 5 def initialize(session_hash) @scores = NexosisApi::PagedArray.new(session_hash, session_hash.fetch(:featureImportance) { |k| session_hash.fetch(k.to_s) }.to_a) super(session_hash.reject { |k, _v| k.to_s.casecmp('featureimportance').zero? }) end