Class: Google::Apis::BigqueryV2::PrincipalComponentInfo
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::PrincipalComponentInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb
Overview
Principal component infos, used only for eigen decomposition based models, e.g. , PCA. Ordered by explained_variance in the descending order.
Instance Attribute Summary collapse
-
#cumulative_explained_variance_ratio ⇒ Float
The explained_variance is pre-ordered in the descending order to compute the cumulative explained variance ratio.
-
#explained_variance ⇒ Float
Explained variance by this principal component, which is simply the eigenvalue.
-
#explained_variance_ratio ⇒ Float
Explained_variance over the total explained variance.
-
#principal_component_id ⇒ Fixnum
Id of the principal component.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PrincipalComponentInfo
constructor
A new instance of PrincipalComponentInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PrincipalComponentInfo
Returns a new instance of PrincipalComponentInfo.
7136 7137 7138 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7136 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cumulative_explained_variance_ratio ⇒ Float
The explained_variance is pre-ordered in the descending order to compute the
cumulative explained variance ratio.
Corresponds to the JSON property cumulativeExplainedVarianceRatio
7119 7120 7121 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7119 def cumulative_explained_variance_ratio @cumulative_explained_variance_ratio end |
#explained_variance ⇒ Float
Explained variance by this principal component, which is simply the eigenvalue.
Corresponds to the JSON property explainedVariance
7124 7125 7126 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7124 def explained_variance @explained_variance end |
#explained_variance_ratio ⇒ Float
Explained_variance over the total explained variance.
Corresponds to the JSON property explainedVarianceRatio
7129 7130 7131 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7129 def explained_variance_ratio @explained_variance_ratio end |
#principal_component_id ⇒ Fixnum
Id of the principal component.
Corresponds to the JSON property principalComponentId
7134 7135 7136 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7134 def principal_component_id @principal_component_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7141 7142 7143 7144 7145 7146 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7141 def update!(**args) @cumulative_explained_variance_ratio = args[:cumulative_explained_variance_ratio] if args.key?(:cumulative_explained_variance_ratio) @explained_variance = args[:explained_variance] if args.key?(:explained_variance) @explained_variance_ratio = args[:explained_variance_ratio] if args.key?(:explained_variance_ratio) @principal_component_id = args[:principal_component_id] if args.key?(:principal_component_id) end |