Spaces:
Runtime error
Runtime error
adding rayan prompt
Browse files
utils.py
CHANGED
|
@@ -115,9 +115,9 @@ def get_files_from_aws(bucket, prefix):
|
|
| 115 |
|
| 116 |
def get_optimized_prediction(modellocation, model_filename, bucket_name, selected_variable, selected_industry,
|
| 117 |
char_cnt_uploaded, url_cnt_uploaded, industry_code_dict): #preference, industry_code_dict):
|
| 118 |
-
training_dataset = import_data("emailcampaigntrainingdata", '
|
| 119 |
-
X_test = import_data("emailcampaigntrainingdata", '
|
| 120 |
-
y_test = import_data("emailcampaigntrainingdata", '
|
| 121 |
|
| 122 |
# load model from S3
|
| 123 |
key = modellocation + model_filename
|
|
|
|
| 115 |
|
| 116 |
def get_optimized_prediction(modellocation, model_filename, bucket_name, selected_variable, selected_industry,
|
| 117 |
char_cnt_uploaded, url_cnt_uploaded, industry_code_dict): #preference, industry_code_dict):
|
| 118 |
+
training_dataset = import_data("emailcampaigntrainingdata", 'modelCC/training.csv')
|
| 119 |
+
X_test = import_data("emailcampaigntrainingdata", 'modelCC/Xtest.csv')
|
| 120 |
+
y_test = import_data("emailcampaigntrainingdata", 'modelCC/ytest.csv')
|
| 121 |
|
| 122 |
# load model from S3
|
| 123 |
key = modellocation + model_filename
|