Replies: 5 comments
-
So I've ran into two posts that briefly cover this: aws/amazon-sagemaker-examples#294 by @djarpin and https://stackoverflow.com/questions/8193563/predicting-values-with-k-means-clustering-algorithm Both are pretty miserable, it would look like one would have to manually compare new inputs and calculate the centroid cluster. Okay, lets say that that is the only way to deploy this, then how do we know what other members are within each of those centroids? For example my ND array is K=75000 and n_features = 5000, 75000x5000 and vectorize an input then calculate that it sits in K5500 cluster, how would I then know what other training examples sit in there? Would I have to then reparse my entire training set to see where each variable sits, create a table that holds those values and compare back to that talble when making predictions? Boy T_T |
Beta Was this translation helpful? Give feedback.
-
We have the same question here as well. We're looking forward to hearing soon how we can deploy a SageMaker-trained model onto our local machines. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi, thank you for using SageMaker. |
Beta Was this translation helpful? Give feedback.
-
@mhaboali did you find a way to do this? Looking for the same thing myself. beginning to wonder if this is at all possible? |
Beta Was this translation helpful? Give feedback.
-
Actually, I'd not continued on that approach but the comments under this issue might be useful for this purpose here Thanks! |
Beta Was this translation helpful? Give feedback.
-
Please fill out the form below.
System Information
Describe the problem
Hey there, after trying to get this running for awhile now I'm here.
Basically I have trained Kmeans models on Sagemaker (Great!) However I now want to deploy them locally.
Now I have the standard Kmeans artefacts output, a model.gz file that I:
Download from my S3:
Extract:
os.system('tar -zxvf model.tar.gz')
Now I want to just take the extracted items (model_algo-1, state_ac4243fa-9838-41d2-b8d0-29601c73fdc3) and load them into a Kmeans object so I can actually infer with it locally.
I understand the primary of serving these models is through sagemaker but it doesn't seem much to ask that I can deploy it locally as a part of a much larger object?
Any help would be great, currently I've just gotten the following:
In addition
What exactly is this state_ac4243fa-9838-41d2-b8d0-29601c73fdc3 file? Seems to me like it's a checkpoint of somekind?
Beta Was this translation helpful? Give feedback.
All reactions