shaped 2.0.1__py3-none-any.whl → 2.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- shaped/__init__.py +54 -4
- shaped/autogen/__init__.py +541 -66
- shaped/autogen/api/__init__.py +4 -3
- shaped/autogen/api/engine_api.py +1467 -0
- shaped/autogen/api/{dataset_api.py → query_api.py} +219 -194
- shaped/autogen/api/table_api.py +1494 -0
- shaped/autogen/api/{model_management_api.py → view_api.py} +179 -181
- shaped/autogen/api_client.py +15 -8
- shaped/autogen/configuration.py +20 -9
- shaped/autogen/exceptions.py +19 -2
- shaped/autogen/models/__init__.py +254 -52
- shaped/autogen/models/ai_enrichment_view_config.py +123 -0
- shaped/autogen/models/{path.py → algorithm.py} +19 -19
- shaped/autogen/models/amplitude_table_config.py +106 -0
- shaped/autogen/models/ascending.py +136 -0
- shaped/autogen/models/attn_dropout_prob.py +136 -0
- shaped/autogen/models/attribute_journey.py +124 -0
- shaped/autogen/models/attribute_value.py +178 -0
- shaped/autogen/models/autoscaling_config.py +95 -0
- shaped/autogen/models/aws_pinpoint_table_config.py +108 -0
- shaped/autogen/models/batch_size.py +136 -0
- shaped/autogen/models/batch_size1.py +136 -0
- shaped/autogen/models/batch_size2.py +136 -0
- shaped/autogen/models/big_query_table_config.py +147 -0
- shaped/autogen/models/bm25.py +136 -0
- shaped/autogen/models/boosted_reorder_step.py +125 -0
- shaped/autogen/models/canary_rollout.py +99 -0
- shaped/autogen/models/candidate_attributes_retrieve_step.py +126 -0
- shaped/autogen/models/candidate_ids_retrieve_step.py +113 -0
- shaped/autogen/models/candidate_retrieval_strategy.py +41 -0
- shaped/autogen/models/clickhouse_table_config.py +146 -0
- shaped/autogen/models/column_order_retrieve_step.py +123 -0
- shaped/autogen/models/column_ordering.py +91 -0
- shaped/autogen/models/create_table_response.py +87 -0
- shaped/autogen/models/create_view_response.py +87 -0
- shaped/autogen/models/custom_table_config.py +135 -0
- shaped/autogen/models/data_compute_config.py +89 -0
- shaped/autogen/models/data_config.py +145 -0
- shaped/autogen/models/data_config_interaction_table.py +146 -0
- shaped/autogen/models/data_split_config.py +88 -0
- shaped/autogen/models/data_split_strategy.py +37 -0
- shaped/autogen/models/data_tier.py +37 -0
- shaped/autogen/models/default.py +246 -0
- shaped/autogen/models/delete_engine_response.py +87 -0
- shaped/autogen/models/delete_table_response.py +87 -0
- shaped/autogen/models/delete_view_response.py +87 -0
- shaped/autogen/models/deployment_config.py +123 -0
- shaped/autogen/models/distance_function.py +38 -0
- shaped/autogen/models/diversity_reorder_step.py +137 -0
- shaped/autogen/models/dropout_rate.py +136 -0
- shaped/autogen/models/dynamo_db_table_config.py +160 -0
- shaped/autogen/models/dynamo_db_table_config_scan_kwargs_value.py +138 -0
- shaped/autogen/models/embedder_batch_size.py +136 -0
- shaped/autogen/models/embedding_config.py +93 -0
- shaped/autogen/models/embedding_dim.py +136 -0
- shaped/autogen/models/embedding_dims.py +136 -0
- shaped/autogen/models/embedding_size.py +136 -0
- shaped/autogen/models/encoder.py +140 -0
- shaped/autogen/models/encoding_pooling_strategy.py +38 -0
- shaped/autogen/models/engine.py +109 -0
- shaped/autogen/models/engine_config_v2.py +152 -0
- shaped/autogen/models/engine_details_response.py +120 -0
- shaped/autogen/models/engine_schema.py +113 -0
- shaped/autogen/models/engine_schema_user_inner.py +134 -0
- shaped/autogen/models/entity_config.py +109 -0
- shaped/autogen/models/entity_journey.py +152 -0
- shaped/autogen/models/entity_type.py +38 -0
- shaped/autogen/models/evaluation_config.py +92 -0
- shaped/autogen/models/exploration_reorder_step.py +125 -0
- shaped/autogen/models/expression_filter_step.py +106 -0
- shaped/autogen/models/factors.py +136 -0
- shaped/autogen/models/factors1.py +136 -0
- shaped/autogen/models/feature.py +90 -0
- shaped/autogen/models/feature_type.py +60 -0
- shaped/autogen/models/file_table_config.py +112 -0
- shaped/autogen/models/filter_config.py +99 -0
- shaped/autogen/models/filter_dataset.py +140 -0
- shaped/autogen/models/filter_index_type.py +36 -0
- shaped/autogen/models/filter_retrieve_step.py +113 -0
- shaped/autogen/models/global_filter.py +102 -0
- shaped/autogen/models/hidden_dropout_prob.py +136 -0
- shaped/autogen/models/hidden_size.py +136 -0
- shaped/autogen/models/hidden_size1.py +136 -0
- shaped/autogen/models/http_problem_response.py +115 -0
- shaped/autogen/models/http_validation_error.py +2 -2
- shaped/autogen/models/hugging_face_encoder.py +113 -0
- shaped/autogen/models/iceberg_table_config.py +154 -0
- shaped/autogen/models/index_config.py +101 -0
- shaped/autogen/models/inner_size.py +136 -0
- shaped/autogen/models/inner_size1.py +136 -0
- shaped/autogen/models/interaction_config.py +122 -0
- shaped/autogen/models/interaction_pooling_encoder.py +104 -0
- shaped/autogen/models/interaction_round_robin_encoder.py +104 -0
- shaped/autogen/models/item_attribute_pooling_encoder.py +124 -0
- shaped/autogen/models/journey.py +140 -0
- shaped/autogen/models/kafka_table_config.py +129 -0
- shaped/autogen/models/kinesis_table_config.py +140 -0
- shaped/autogen/models/kinesis_table_config_column_schema_value.py +136 -0
- shaped/autogen/models/label.py +90 -0
- shaped/autogen/models/label_type.py +37 -0
- shaped/autogen/models/laplace_smoothing.py +136 -0
- shaped/autogen/models/latency_scaling_policy.py +112 -0
- shaped/autogen/models/learning_rate.py +136 -0
- shaped/autogen/models/learning_rate1.py +136 -0
- shaped/autogen/models/learning_rate2.py +136 -0
- shaped/autogen/models/learning_rate3.py +136 -0
- shaped/autogen/models/lexical_search_mode.py +99 -0
- shaped/autogen/models/list_engines_response.py +95 -0
- shaped/autogen/models/list_tables_response.py +95 -0
- shaped/autogen/models/list_views_response.py +95 -0
- shaped/autogen/models/loss_types.py +37 -0
- shaped/autogen/models/lr.py +136 -0
- shaped/autogen/models/lr1.py +136 -0
- shaped/autogen/models/lr2.py +136 -0
- shaped/autogen/models/max_depth.py +136 -0
- shaped/autogen/models/max_leaves.py +136 -0
- shaped/autogen/models/max_seq_length.py +136 -0
- shaped/autogen/models/max_seq_length1.py +136 -0
- shaped/autogen/models/max_seq_length2.py +136 -0
- shaped/autogen/models/mode.py +134 -0
- shaped/autogen/models/mode1.py +134 -0
- shaped/autogen/models/mode2.py +136 -0
- shaped/autogen/models/mongo_db_table_config.py +147 -0
- shaped/autogen/models/mssql_table_config.py +155 -0
- shaped/autogen/models/{my_sql_dataset_config.py → my_sql_table_config.py} +45 -28
- shaped/autogen/models/n_epochs.py +136 -0
- shaped/autogen/models/n_epochs1.py +136 -0
- shaped/autogen/models/n_epochs2.py +136 -0
- shaped/autogen/models/n_estimators.py +136 -0
- shaped/autogen/models/n_heads.py +136 -0
- shaped/autogen/models/n_layers.py +136 -0
- shaped/autogen/models/neg_per_positive.py +136 -0
- shaped/autogen/models/negative_samples_count.py +136 -0
- shaped/autogen/models/ngram_tokenizer.py +103 -0
- shaped/autogen/models/no_op_config.py +117 -0
- shaped/autogen/models/num_blocks.py +136 -0
- shaped/autogen/models/num_heads.py +136 -0
- shaped/autogen/models/num_leaves.py +136 -0
- shaped/autogen/models/objective.py +40 -0
- shaped/autogen/models/objective1.py +134 -0
- shaped/autogen/models/online_store_config.py +89 -0
- shaped/autogen/models/pagination_config.py +87 -0
- shaped/autogen/models/parameter_definition.py +96 -0
- shaped/autogen/models/parameters_value.py +240 -0
- shaped/autogen/models/passthrough_score.py +104 -0
- shaped/autogen/models/personal_filter.py +104 -0
- shaped/autogen/models/pipeline_stage_explanation.py +118 -0
- shaped/autogen/models/policy.py +134 -0
- shaped/autogen/models/pool_fn.py +134 -0
- shaped/autogen/models/pooling_function.py +37 -0
- shaped/autogen/models/{postgres_dataset_config.py → postgres_table_config.py} +66 -28
- shaped/autogen/models/posthog_table_config.py +133 -0
- shaped/autogen/models/prebuilt_filter_step.py +113 -0
- shaped/autogen/models/precomputed_item_embedding.py +99 -0
- shaped/autogen/models/precomputed_user_embedding.py +99 -0
- shaped/autogen/models/query.py +136 -0
- shaped/autogen/models/query1.py +136 -0
- shaped/autogen/models/query_any_of.py +140 -0
- shaped/autogen/models/query_definition.py +106 -0
- shaped/autogen/models/query_encoder.py +194 -0
- shaped/autogen/models/query_explanation.py +197 -0
- shaped/autogen/models/query_request.py +121 -0
- shaped/autogen/models/query_result.py +113 -0
- shaped/autogen/models/query_table_config.py +99 -0
- shaped/autogen/models/rank_item_attribute_values_query_config.py +122 -0
- shaped/autogen/models/rank_query_config.py +167 -0
- shaped/autogen/models/rank_query_config_filter_inner.py +149 -0
- shaped/autogen/models/rank_query_config_reorder_inner.py +149 -0
- shaped/autogen/models/rank_query_config_retrieve_inner.py +196 -0
- shaped/autogen/models/recreate_rollout.py +97 -0
- shaped/autogen/models/{redshift_dataset_config.py → redshift_table_config.py} +48 -25
- shaped/autogen/models/reference_table_config.py +113 -0
- shaped/autogen/models/regularization.py +136 -0
- shaped/autogen/models/request.py +378 -0
- shaped/autogen/models/request1.py +140 -0
- shaped/autogen/models/requests_per_second_scaling_policy.py +112 -0
- shaped/autogen/models/response_get_view_details_views_view_name_get.py +134 -0
- shaped/autogen/models/result.py +145 -0
- shaped/autogen/models/result_embeddings_value.py +127 -0
- shaped/autogen/models/retriever.py +196 -0
- shaped/autogen/models/retriever1.py +196 -0
- shaped/autogen/models/rollout_config.py +91 -0
- shaped/autogen/models/rudderstack_table_config.py +106 -0
- shaped/autogen/models/sampling_strategy.py +36 -0
- shaped/autogen/models/saved_query_info_response.py +89 -0
- shaped/autogen/models/saved_query_list_response.py +87 -0
- shaped/autogen/models/saved_query_request.py +115 -0
- shaped/autogen/models/schema_config.py +117 -0
- shaped/autogen/models/score.py +134 -0
- shaped/autogen/models/score_ensemble.py +140 -0
- shaped/autogen/models/score_ensemble_policy_config.py +141 -0
- shaped/autogen/models/score_ensemble_policy_config_policies_inner.py +422 -0
- shaped/autogen/models/search_config.py +105 -0
- shaped/autogen/models/segment_table_config.py +106 -0
- shaped/autogen/models/sequence_length.py +136 -0
- shaped/autogen/models/server_config.py +87 -0
- shaped/autogen/models/setup_engine_response.py +87 -0
- shaped/autogen/models/shaped_internal_recsys_policies_als_model_policy_als_model_policy_config.py +148 -0
- shaped/autogen/models/shaped_internal_recsys_policies_beeformer_model_policy_beeformer_model_policy_beeformer_model_policy_config.py +154 -0
- shaped/autogen/models/shaped_internal_recsys_policies_bert_model_policy_bert_model_policy_bert_model_policy_config.py +209 -0
- shaped/autogen/models/shaped_internal_recsys_policies_chronological_model_policy_chronological_model_policy_config.py +137 -0
- shaped/autogen/models/shaped_internal_recsys_policies_elsa_model_policy_elsa_model_policy_elsa_model_policy_config.py +139 -0
- shaped/autogen/models/shaped_internal_recsys_policies_gsasrec_model_policy_gsasrec_model_policy_gsas_rec_model_policy_config.py +205 -0
- shaped/autogen/models/shaped_internal_recsys_policies_item2vec_model_policy_item2_vec_model_policy_config.py +140 -0
- shaped/autogen/models/shaped_internal_recsys_policies_item_content_similarity_model_policy_item_content_similarity_model_policy_config.py +152 -0
- shaped/autogen/models/shaped_internal_recsys_policies_lightgbm_model_policy_lightgbm_model_policy_light_gbm_model_policy_config.py +239 -0
- shaped/autogen/models/shaped_internal_recsys_policies_ngram_model_policy_ngram_model_policy_config.py +119 -0
- shaped/autogen/models/shaped_internal_recsys_policies_popular_model_policy_popular_model_policy_config.py +137 -0
- shaped/autogen/models/shaped_internal_recsys_policies_random_model_policy_random_model_policy_config.py +104 -0
- shaped/autogen/models/shaped_internal_recsys_policies_recently_popular_policy_recently_popular_policy_config.py +130 -0
- shaped/autogen/models/shaped_internal_recsys_policies_rising_popular_policy_rising_popular_policy_config.py +123 -0
- shaped/autogen/models/shaped_internal_recsys_policies_sasrec_model_policy_sasrec_model_policy_sas_rec_model_policy_config.py +224 -0
- shaped/autogen/models/shaped_internal_recsys_policies_svd_model_policy_svd_model_policy_config.py +119 -0
- shaped/autogen/models/shaped_internal_recsys_policies_two_tower_model_policy_two_tower_model_policy_two_tower_model_policy_config.py +159 -0
- shaped/autogen/models/shaped_internal_recsys_policies_user_item_content_similarity_model_policy_user_item_content_similarity_model_policy_config.py +131 -0
- shaped/autogen/models/shaped_internal_recsys_policies_widedeep_model_policy_wide_deep_model_policy_config.py +131 -0
- shaped/autogen/models/shaped_internal_recsys_policies_xgboost_model_policy_xg_boost_model_policy_config.py +149 -0
- shaped/autogen/models/shopify_table_config.py +156 -0
- shaped/autogen/models/similarity_retrieve_step.py +121 -0
- shaped/autogen/models/{snowflake_dataset_config.py → snowflake_table_config.py} +47 -18
- shaped/autogen/models/sql_transform_type.py +37 -0
- shaped/autogen/models/sql_view_config.py +111 -0
- shaped/autogen/models/stemmer_tokenizer.py +105 -0
- shaped/autogen/models/step_explanation.py +137 -0
- shaped/autogen/models/strategy.py +134 -0
- shaped/autogen/models/table.py +102 -0
- shaped/autogen/models/table_deployment_type.py +38 -0
- shaped/autogen/models/table_insert_arguments.py +87 -0
- shaped/autogen/models/table_insert_response.py +87 -0
- shaped/autogen/models/text_encoding.py +136 -0
- shaped/autogen/models/text_search_retrieve_step.py +121 -0
- shaped/autogen/models/time_frequency.py +136 -0
- shaped/autogen/models/time_window.py +136 -0
- shaped/autogen/models/time_window_in_days.py +142 -0
- shaped/autogen/models/tokenizer.py +149 -0
- shaped/autogen/models/trained_model_encoder.py +99 -0
- shaped/autogen/models/training_compute_config.py +99 -0
- shaped/autogen/models/training_config.py +121 -0
- shaped/autogen/models/training_config_models_inner.py +308 -0
- shaped/autogen/models/training_strategy.py +37 -0
- shaped/autogen/models/trending_mode.py +37 -0
- shaped/autogen/models/truncate_filter_step.py +106 -0
- shaped/autogen/models/tunable_bool.py +97 -0
- shaped/autogen/models/tunable_float.py +118 -0
- shaped/autogen/models/tunable_int.py +118 -0
- shaped/autogen/models/tunable_int_categorical.py +99 -0
- shaped/autogen/models/tunable_string.py +99 -0
- shaped/autogen/models/tuning_config.py +89 -0
- shaped/autogen/models/type.py +134 -0
- shaped/autogen/models/update_table_response.py +87 -0
- shaped/autogen/models/update_view_response.py +87 -0
- shaped/autogen/models/user_attribute_pooling_encoder.py +124 -0
- shaped/autogen/models/val_split.py +136 -0
- shaped/autogen/models/validation_error.py +13 -3
- shaped/autogen/models/validation_error_loc_inner.py +138 -0
- shaped/autogen/models/value_type.py +7 -5
- shaped/autogen/models/vector_search_mode.py +99 -0
- shaped/autogen/models/view.py +104 -0
- shaped/autogen/models/view_details_ai.py +140 -0
- shaped/autogen/models/view_details_ai_schema_value.py +153 -0
- shaped/autogen/models/view_details_sql.py +140 -0
- shaped/autogen/models/view_status.py +41 -0
- shaped/autogen/models/weight_decay.py +136 -0
- shaped/autogen/models/whitespace_tokenizer.py +97 -0
- shaped/autogen/models/window_size.py +136 -0
- shaped/autogen/rest.py +8 -2
- shaped/cli/shaped_cli.py +12 -7
- shaped/client.py +587 -174
- shaped/config_builders.py +695 -0
- shaped/query_builder.py +774 -0
- {shaped-2.0.1.dist-info → shaped-2.0.2.dist-info}/METADATA +140 -5
- shaped-2.0.2.dist-info/RECORD +278 -0
- shaped-2.0.2.dist-info/entry_points.txt +2 -0
- shaped/autogen/api/model_inference_api.py +0 -2825
- shaped/autogen/models/amplitude_dataset_config.py +0 -96
- shaped/autogen/models/aws_pinpoint_dataset_config.py +0 -96
- shaped/autogen/models/big_query_dataset_config.py +0 -114
- shaped/autogen/models/complement_items_request.py +0 -99
- shaped/autogen/models/complement_items_response.py +0 -89
- shaped/autogen/models/connectors_inner.py +0 -134
- shaped/autogen/models/create_dataset_arguments.py +0 -263
- shaped/autogen/models/create_embedding_response.py +0 -87
- shaped/autogen/models/create_item_embedding_request.py +0 -89
- shaped/autogen/models/create_model_arguments.py +0 -107
- shaped/autogen/models/create_model_response.py +0 -87
- shaped/autogen/models/create_user_embedding_request.py +0 -89
- shaped/autogen/models/custom_dataset_config.py +0 -115
- shaped/autogen/models/dataset_config.py +0 -101
- shaped/autogen/models/dataset_schema_type.py +0 -47
- shaped/autogen/models/datasets_inner.py +0 -91
- shaped/autogen/models/delete_model_response.py +0 -87
- shaped/autogen/models/fetch_config.py +0 -95
- shaped/autogen/models/file_config.py +0 -105
- shaped/autogen/models/file_source_config.py +0 -89
- shaped/autogen/models/inference_config.py +0 -101
- shaped/autogen/models/insert_model_response.py +0 -87
- shaped/autogen/models/interaction.py +0 -87
- shaped/autogen/models/list_datasets_response.py +0 -95
- shaped/autogen/models/list_models_response.py +0 -95
- shaped/autogen/models/model_config.py +0 -99
- shaped/autogen/models/model_response.py +0 -95
- shaped/autogen/models/mongo_db_dataset_config.py +0 -119
- shaped/autogen/models/post_rank_request.py +0 -117
- shaped/autogen/models/rank_attribute_response.py +0 -89
- shaped/autogen/models/rank_grid_attribute_request.py +0 -91
- shaped/autogen/models/rank_grid_attribute_request1.py +0 -93
- shaped/autogen/models/rank_grid_attribute_response.py +0 -91
- shaped/autogen/models/rank_response.py +0 -91
- shaped/autogen/models/retrieve_request.py +0 -101
- shaped/autogen/models/retrieve_response.py +0 -91
- shaped/autogen/models/retriever_top_k_override.py +0 -97
- shaped/autogen/models/rudder_stack_dataset_config.py +0 -96
- shaped/autogen/models/segment_dataset_config.py +0 -96
- shaped/autogen/models/similar_item_request.py +0 -101
- shaped/autogen/models/similar_response.py +0 -89
- shaped/autogen/models/similar_users_request.py +0 -99
- shaped/autogen/models/successful_response.py +0 -87
- shaped/autogen/models/view_model_response.py +0 -99
- shaped-2.0.1.dist-info/RECORD +0 -73
- shaped-2.0.1.dist-info/entry_points.txt +0 -2
- {shaped-2.0.1.dist-info → shaped-2.0.2.dist-info}/WHEEL +0 -0
- {shaped-2.0.1.dist-info → shaped-2.0.2.dist-info}/top_level.txt +0 -0
- {shaped-2.0.1.dist-info → shaped-2.0.2.dist-info}/zip-safe +0 -0
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Shaped API
|
|
5
|
-
|
|
6
|
-
Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. Shaped's API is composed of 3 components: 1. **Dataset** - used to provision and manage 'Shaped Datasets', which are persisted data views of external data. Shaped Datasets can be created from any of our 'Shaped connectors' (e.g. S3, Segment, Snowflake, etc.) and support both batch ingestion (up to a 15min delay) and stream ingestion (up to a 30 second delay) depending on the specific connector used. Shaped datasets can also be created from local files, which is particularly useful for getting started with a snapshot of data. 2. **Model Management** - used to provision and manage 'Shaped Models', which represent a system of data pipelines, training and serving infrastructure for your ranking use-case. 3. **Model Inference** - a high performance API that's used to make user-understanding requests or ranking inferences to your 'Shaped Models'. For example, the 'rank' endpoint can be used to determine for a given user id query, what is the content that is most engaging to that user. The recommended workflow to interact with the Shaped API is as follows: 1. First create 'Shaped Datasets' to sync over data that your Shaped understanding models will need. The models at the minimum need interaction data to understand behavior of your users, so start with that and add your item and user catalog data later. 2. Then create 'Shaped Models' that use your created 'Shaped Datasets' as input. Your Shaped Model will will start streaming, processing and training from your connected data immediately. After a few hours your model will have tuned all parameters based on your data and will deploy an active model. 3. You can now use the 'Model Inference' endpoints to make real-time inferences to your model based on your use-case.
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 1.0.1
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from __future__ import annotations
|
|
16
|
-
import pprint
|
|
17
|
-
import re # noqa: F401
|
|
18
|
-
import json
|
|
19
|
-
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from typing import Optional, Set
|
|
23
|
-
from typing_extensions import Self
|
|
24
|
-
|
|
25
|
-
class ViewModelResponse(BaseModel):
|
|
26
|
-
"""
|
|
27
|
-
ViewModelResponse
|
|
28
|
-
""" # noqa: E501
|
|
29
|
-
model_name: Optional[StrictStr] = None
|
|
30
|
-
model_uri: Optional[StrictStr] = None
|
|
31
|
-
fetch: Optional[StrictStr] = None
|
|
32
|
-
var_schema: Optional[StrictStr] = Field(default=None, alias="schema")
|
|
33
|
-
created_at: Optional[StrictStr] = None
|
|
34
|
-
trained_at: Optional[StrictStr] = None
|
|
35
|
-
status: Optional[StrictStr] = Field(default=None, description="Status takes the following values depending on which stage of the model creation pipeline it's at: 1. SCHEDULING -- your model is awaiting resources to be provisioned and used to fetch, train, and deploy your model. 2. FETCHING -- your historic data is being fetched. 3. TUNING -- your recommendation system configuration and models are being optimized for your dataset. 4. TRAINING -- your model is being trained on your historic dataset. 5. DEPLOYING -- your model is being deployed to your custom real-time endpoint. 6. ACTIVE -- your model is active and ready for rank requests. 7. ERROR -- there was an error at some point when creating your model. ")
|
|
36
|
-
__properties: ClassVar[List[str]] = ["model_name", "model_uri", "fetch", "schema", "created_at", "trained_at", "status"]
|
|
37
|
-
|
|
38
|
-
model_config = ConfigDict(
|
|
39
|
-
populate_by_name=True,
|
|
40
|
-
validate_assignment=True,
|
|
41
|
-
protected_namespaces=(),
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
def to_str(self) -> str:
|
|
46
|
-
"""Returns the string representation of the model using alias"""
|
|
47
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
48
|
-
|
|
49
|
-
def to_json(self) -> str:
|
|
50
|
-
"""Returns the JSON representation of the model using alias"""
|
|
51
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
52
|
-
return json.dumps(self.to_dict())
|
|
53
|
-
|
|
54
|
-
@classmethod
|
|
55
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
56
|
-
"""Create an instance of ViewModelResponse from a JSON string"""
|
|
57
|
-
return cls.from_dict(json.loads(json_str))
|
|
58
|
-
|
|
59
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
60
|
-
"""Return the dictionary representation of the model using alias.
|
|
61
|
-
|
|
62
|
-
This has the following differences from calling pydantic's
|
|
63
|
-
`self.model_dump(by_alias=True)`:
|
|
64
|
-
|
|
65
|
-
* `None` is only added to the output dict for nullable fields that
|
|
66
|
-
were set at model initialization. Other fields with value `None`
|
|
67
|
-
are ignored.
|
|
68
|
-
"""
|
|
69
|
-
excluded_fields: Set[str] = set([
|
|
70
|
-
])
|
|
71
|
-
|
|
72
|
-
_dict = self.model_dump(
|
|
73
|
-
by_alias=True,
|
|
74
|
-
exclude=excluded_fields,
|
|
75
|
-
exclude_none=True,
|
|
76
|
-
)
|
|
77
|
-
return _dict
|
|
78
|
-
|
|
79
|
-
@classmethod
|
|
80
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
81
|
-
"""Create an instance of ViewModelResponse from a dict"""
|
|
82
|
-
if obj is None:
|
|
83
|
-
return None
|
|
84
|
-
|
|
85
|
-
if not isinstance(obj, dict):
|
|
86
|
-
return cls.model_validate(obj)
|
|
87
|
-
|
|
88
|
-
_obj = cls.model_validate({
|
|
89
|
-
"model_name": obj.get("model_name"),
|
|
90
|
-
"model_uri": obj.get("model_uri"),
|
|
91
|
-
"fetch": obj.get("fetch"),
|
|
92
|
-
"schema": obj.get("schema"),
|
|
93
|
-
"created_at": obj.get("created_at"),
|
|
94
|
-
"trained_at": obj.get("trained_at"),
|
|
95
|
-
"status": obj.get("status")
|
|
96
|
-
})
|
|
97
|
-
return _obj
|
|
98
|
-
|
|
99
|
-
|
shaped-2.0.1.dist-info/RECORD
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
shaped/__init__.py,sha256=ikq1AG3uapaJAzN7dx3V4WLl6Hx95vQTr_d8fO8ebJ4,184
|
|
2
|
-
shaped/client.py,sha256=4poRVpvupQEm3RjdQJ2zuwIkFwTZziXY0sln-v9mQck,8372
|
|
3
|
-
shaped/autogen/__init__.py,sha256=wKYfoKohE39ud3mAORGhwGT9Ouq9A-VoN2N2lVvM1TA,6859
|
|
4
|
-
shaped/autogen/api_client.py,sha256=JC6ZcpvzPYK1krMeIdH-sXBkR2XsFM0HCO5YbmFylB4,29368
|
|
5
|
-
shaped/autogen/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
6
|
-
shaped/autogen/configuration.py,sha256=rTPXrCmxc1gn375s6gxaeR5-DzKUZ31bJnplg77PmSE,19513
|
|
7
|
-
shaped/autogen/exceptions.py,sha256=5muki093ghdifnr96i9wLiRBACuzCRIcken82pKvbXM,7873
|
|
8
|
-
shaped/autogen/rest.py,sha256=ycxoXj-E1oIl1x4xuogvQJViYYrDaUgcxSNXZ6UlTik,11313
|
|
9
|
-
shaped/autogen/api/__init__.py,sha256=ljAq90mlHSU5qdMLEZpf4uLd5SyLR8DcllMgDsZLFo0,242
|
|
10
|
-
shaped/autogen/api/dataset_api.py,sha256=RkOwlddbLtop1Zhdm4agP4Eic5nRVes-INylNRftQ3Q,49143
|
|
11
|
-
shaped/autogen/api/model_inference_api.py,sha256=JBIFALi-eR1_U4Bt_jjJf_4Mu3Mx6_CKYs3uYi1naRU,130921
|
|
12
|
-
shaped/autogen/api/model_management_api.py,sha256=1qRUUFCbcle1KtGH6OzhmsbK6Fk36zzAZ_CiTPHn0l4,60849
|
|
13
|
-
shaped/autogen/models/__init__.py,sha256=wEJt1anUDMx3Q3NnW_f-eCXee_nPrWWw8h8y1ab-IFw,6121
|
|
14
|
-
shaped/autogen/models/amplitude_dataset_config.py,sha256=wsH4E2dATObPZHPnbLK9QQT5pyqmAp0cjqDCHHKhios,4770
|
|
15
|
-
shaped/autogen/models/aws_pinpoint_dataset_config.py,sha256=bhCN4SezUSQ66ofuib_k7o51QNLwpTb-45HK7ubAm10,4852
|
|
16
|
-
shaped/autogen/models/big_query_dataset_config.py,sha256=xNfaQOvWjDQe-tlH7bBSNvsKlYiuo0589noZ-4dPGU8,5711
|
|
17
|
-
shaped/autogen/models/complement_items_request.py,sha256=KJLw_ztHn8smrgrgB7iinHAULG7KtjULPk6bvUVv9gY,5289
|
|
18
|
-
shaped/autogen/models/complement_items_response.py,sha256=eg3f9wtW94ErrPWt3L_yQkCQi4qDkZXWDl4IHnaHTuI,4530
|
|
19
|
-
shaped/autogen/models/connectors_inner.py,sha256=tsiFiE21KUz3mUqASR1OQyIwyGQC8G5KsxA6pBK9J6w,6750
|
|
20
|
-
shaped/autogen/models/create_dataset_arguments.py,sha256=-yKKVi_vUMJJcilbU4BxDFN5Z0pWnJDch87b6FEvyyQ,15473
|
|
21
|
-
shaped/autogen/models/create_embedding_response.py,sha256=2SiEooeVQq342thw-iap1dlW0wtUdi3OcxSGHDllvLk,4485
|
|
22
|
-
shaped/autogen/models/create_item_embedding_request.py,sha256=if10EuiWUoE0RORd6ni4ou3lnOV1XAlBgqx5Xxrmbic,4566
|
|
23
|
-
shaped/autogen/models/create_model_arguments.py,sha256=9IvLu5K75w6DO9lizNoeJVZi44ajP2BVeo0lHx5QOY0,5626
|
|
24
|
-
shaped/autogen/models/create_model_response.py,sha256=vi8bUhKlbGGXvv-JxTZ9xMzxO26_acRw9lLkHDZNEEQ,4413
|
|
25
|
-
shaped/autogen/models/create_user_embedding_request.py,sha256=jmv43RlAgY_4V2mvWUF74PolAo5FmTslH-jKpjlBMQE,4566
|
|
26
|
-
shaped/autogen/models/custom_dataset_config.py,sha256=st8Fs4sio4lPV35ot_gW99mdarQdnJSjKSxy8t1J3kQ,6190
|
|
27
|
-
shaped/autogen/models/dataset_config.py,sha256=bU53kmk19wMstvWTWb8T04qIXEdkkTolinlQDWKKhCQ,5021
|
|
28
|
-
shaped/autogen/models/dataset_schema_type.py,sha256=H_TL0Rl7X_sX53fMEp3SPlSic9yLY8wNVUeFu9gr5DE,3046
|
|
29
|
-
shaped/autogen/models/datasets_inner.py,sha256=GMnnrbMDBpo5_As9-gjlOsAP3fQGApTfhe6JMNJTQSs,4628
|
|
30
|
-
shaped/autogen/models/delete_model_response.py,sha256=X23iIe_LSq2kKkHuLcFgmBhizBoFWaDGOLFHX3xRUKs,4432
|
|
31
|
-
shaped/autogen/models/fetch_config.py,sha256=p5tLHOmxAgY7iQ0O3Uwsd-ABmJZ7fS60oz-gAGUBINw,6032
|
|
32
|
-
shaped/autogen/models/file_config.py,sha256=Xd3dVYLUjVxqnEugQsnrPEzhLO-ygbZBIVMr1idkjHg,5163
|
|
33
|
-
shaped/autogen/models/file_source_config.py,sha256=pbKudXQqyx8DG_GTFGHnCTOJ3EedZLCQq7gzhxIr9cQ,4559
|
|
34
|
-
shaped/autogen/models/http_validation_error.py,sha256=gQLYz56RE9XsXHl25Hus142IENnZn5kpDMp8DRXyxyA,4905
|
|
35
|
-
shaped/autogen/models/inference_config.py,sha256=TL0RUsyV112PCZYA71b-FjMFyS54xwce2LrhA0KwuYg,7148
|
|
36
|
-
shaped/autogen/models/insert_model_response.py,sha256=5_Y_ZeXmlwVPUvwVuZfbGhZqS24Aw63dvhT519i_nGI,4432
|
|
37
|
-
shaped/autogen/models/interaction.py,sha256=YuHXFfejjkAnYogyjJZHWZ0nrmg3yHsbN7EC43U4T6E,4373
|
|
38
|
-
shaped/autogen/models/list_datasets_response.py,sha256=ogXMA72jgaHLSBgQuuWTsbFcbGeS2v5GzhdqnclTBT4,4898
|
|
39
|
-
shaped/autogen/models/list_models_response.py,sha256=lLDGfP2T7Vh9sqeq6bNGc1kB--B1vNQ62sXSuqAVfBI,4866
|
|
40
|
-
shaped/autogen/models/model_config.py,sha256=2iDd3ZOEVoK5vcCnEwNJoruEDN-5ojBCtNWTuNLimz0,5915
|
|
41
|
-
shaped/autogen/models/model_response.py,sha256=J9iKVIUlYIalXPa7Hti76NRbMlTfecOJCchT1dxSKH0,5428
|
|
42
|
-
shaped/autogen/models/mongo_db_dataset_config.py,sha256=yNjuT5CBZAtc-Gc0RtCvcUtEcWihd9h-7qzrZiniWOg,6012
|
|
43
|
-
shaped/autogen/models/my_sql_dataset_config.py,sha256=63ODzapQguEyVmE6LPIGljpYfRnm9aOZMSxJmVdb8K8,8797
|
|
44
|
-
shaped/autogen/models/path.py,sha256=dyMZsvg5oekbRNWTLHWzCGo4pE2yNwaCH-zS05_tExk,6741
|
|
45
|
-
shaped/autogen/models/post_rank_request.py,sha256=oaJh8y-nZpNGbGkA7lvZtjBzwbnp04zqzxAlTS_fBQc,8014
|
|
46
|
-
shaped/autogen/models/postgres_dataset_config.py,sha256=loTx56lxMCuirIgIQF41EnGOB70Jw14CnfIeZTj7nw4,8815
|
|
47
|
-
shaped/autogen/models/rank_attribute_response.py,sha256=ZRhyj3bwo16Ul78LSGPtKuJ-2xPyw8JsauzbrkFpHzk,4561
|
|
48
|
-
shaped/autogen/models/rank_grid_attribute_request.py,sha256=84vVMGO8Td2j8qRfDz1l8gb3QM1a-1yY9UNmjA6pZ9A,4732
|
|
49
|
-
shaped/autogen/models/rank_grid_attribute_request1.py,sha256=Jc5RxDw-LBQ-vFX6iUPgGoXzHs8pehAJfMuHLS2Ng8A,4920
|
|
50
|
-
shaped/autogen/models/rank_grid_attribute_response.py,sha256=1GsgjCBZuBLn6H3P64HIz_wtp_fH7xMnBjUdXebAzz8,4745
|
|
51
|
-
shaped/autogen/models/rank_response.py,sha256=ttP-e5744WVpA30FYHosoyNF5ytqOUoYvi4coc9tsLk,4616
|
|
52
|
-
shaped/autogen/models/redshift_dataset_config.py,sha256=PB8w0ecT2vbfEvWGLOjX7lQexJGocf8d_4apPUa86Yo,6743
|
|
53
|
-
shaped/autogen/models/retrieve_request.py,sha256=Llrk-9gAZS6u1q8NRv8MiRiOsAJi9QhT46Rj8hzomqQ,6066
|
|
54
|
-
shaped/autogen/models/retrieve_response.py,sha256=AsnkhIZp8rfPoH0u7imbOZ7FfK-yMGxBS368s8TJhM4,4649
|
|
55
|
-
shaped/autogen/models/retriever_top_k_override.py,sha256=PQ3dLXp2Pq_l3NooKWMqA3IPpduvyyp5W_YVom3FTm8,6190
|
|
56
|
-
shaped/autogen/models/rudder_stack_dataset_config.py,sha256=z3fUCHf7sPAh5yUCz8_GDNVN1LHazu3VsLvDt5EFHwM,4782
|
|
57
|
-
shaped/autogen/models/segment_dataset_config.py,sha256=1OPaweyV4Pd2KGpWByAAl_yaPR-PN8R_cg_teft1XLQ,4758
|
|
58
|
-
shaped/autogen/models/similar_item_request.py,sha256=pPnq9EqIpQ56KiKqdqOHCFvLwyDrtboH0r75KNbvfog,5963
|
|
59
|
-
shaped/autogen/models/similar_response.py,sha256=kk8tY1oJgnuehLD4orddtAnnb5zewtVXst9NPEoFjiQ,4498
|
|
60
|
-
shaped/autogen/models/similar_users_request.py,sha256=xbtRy90CcS2U8_rBOE8GMfOFDfUCgc5VDMIJmn5WXOg,5798
|
|
61
|
-
shaped/autogen/models/snowflake_dataset_config.py,sha256=Io0IKwcE69pzJrbONXPWdMYkfjw6J8dBT1h9iKN_NRk,6974
|
|
62
|
-
shaped/autogen/models/successful_response.py,sha256=sQ3oVhrvJUQ9ApgDd4jsr7eZfZvu-goghD8xZCeDFzk,4428
|
|
63
|
-
shaped/autogen/models/validation_error.py,sha256=kVstUJ1nwQ6Y9kssgDBpeoKGFScWegporYC6klUoMe0,4438
|
|
64
|
-
shaped/autogen/models/value_type.py,sha256=uxlGNPto3CK17jHKDRvAl3BqNCPkHlxfRBPdofi_qdM,2917
|
|
65
|
-
shaped/autogen/models/view_model_response.py,sha256=4xzesZSHMcPCZHsevo5Bt_3P9jBNiEbd_PFTWQ5Q9KU,5757
|
|
66
|
-
shaped/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
|
-
shaped/cli/shaped_cli.py,sha256=DzBbnRlk2XWkCq8eGGUVRatm6ntVHclfsrNHYEYxdyA,20562
|
|
68
|
-
shaped-2.0.1.dist-info/METADATA,sha256=18cuVVV8yij7jEKsD7xshfuMOAkcydMxg24FLXwnVAg,4433
|
|
69
|
-
shaped-2.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
70
|
-
shaped-2.0.1.dist-info/entry_points.txt,sha256=4xoVmnNTKtmzjGNX5ezp9MCWLgi7880TtfqFByN1u5U,53
|
|
71
|
-
shaped-2.0.1.dist-info/top_level.txt,sha256=w-lDaoadQVYpze9N9gZyK9qngb7fZCJ-KCdHLGvt0SU,7
|
|
72
|
-
shaped-2.0.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
73
|
-
shaped-2.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|