lib/ultracart_api/models/experiment.rb in ultracart_api-4.0.145 vs lib/ultracart_api/models/experiment.rb in ultracart_api-4.0.146
- old
+ new
@@ -58,10 +58,13 @@
attr_accessor :openai_total_iterations
# Type of optimization
attr_accessor :optimization_type
+ # Estimated sessions needed to achieve P95
+ attr_accessor :p95_sessions_needed
+
# Statistics p-value for the experiment
attr_accessor :p_value
# Total number of sessions in the experiment
attr_accessor :session_count
@@ -122,10 +125,11 @@
:'openai_current_iteration' => :'openai_current_iteration',
:'openai_element_type' => :'openai_element_type',
:'openai_model' => :'openai_model',
:'openai_total_iterations' => :'openai_total_iterations',
:'optimization_type' => :'optimization_type',
+ :'p95_sessions_needed' => :'p95_sessions_needed',
:'p_value' => :'p_value',
:'session_count' => :'session_count',
:'start_dts' => :'start_dts',
:'status' => :'status',
:'storefront_experiment_oid' => :'storefront_experiment_oid',
@@ -156,10 +160,11 @@
:'openai_current_iteration' => :'Integer',
:'openai_element_type' => :'String',
:'openai_model' => :'String',
:'openai_total_iterations' => :'Integer',
:'optimization_type' => :'String',
+ :'p95_sessions_needed' => :'Integer',
:'p_value' => :'Float',
:'session_count' => :'Integer',
:'start_dts' => :'String',
:'status' => :'String',
:'storefront_experiment_oid' => :'Integer',
@@ -248,10 +253,14 @@
if attributes.key?(:'optimization_type')
self.optimization_type = attributes[:'optimization_type']
end
+ if attributes.key?(:'p95_sessions_needed')
+ self.p95_sessions_needed = attributes[:'p95_sessions_needed']
+ end
+
if attributes.key?(:'p_value')
self.p_value = attributes[:'p_value']
end
if attributes.key?(:'session_count')
@@ -340,10 +349,11 @@
openai_current_iteration == o.openai_current_iteration &&
openai_element_type == o.openai_element_type &&
openai_model == o.openai_model &&
openai_total_iterations == o.openai_total_iterations &&
optimization_type == o.optimization_type &&
+ p95_sessions_needed == o.p95_sessions_needed &&
p_value == o.p_value &&
session_count == o.session_count &&
start_dts == o.start_dts &&
status == o.status &&
storefront_experiment_oid == o.storefront_experiment_oid &&
@@ -359,10 +369,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [container_id, duration_days, end_dts, equal_weighting, experiment_type, id, name, notes, objective, objective_parameter, openai_current_iteration, openai_element_type, openai_model, openai_total_iterations, optimization_type, p_value, session_count, start_dts, status, storefront_experiment_oid, storefront_oid, uri, variations].hash
+ [container_id, duration_days, end_dts, equal_weighting, experiment_type, id, name, notes, objective, objective_parameter, openai_current_iteration, openai_element_type, openai_model, openai_total_iterations, optimization_type, p95_sessions_needed, p_value, session_count, start_dts, status, storefront_experiment_oid, storefront_oid, uri, variations].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself