Closed msacs09 closed 3 years ago
@0golovatyi when you get a chance can you please look into this ?
@msacs09 can you verify the function works before it's deployed?
Is there a typo at this line: X=np.colu,n_stack([_arg1,_arg2,_arg3])
@nmannheimer Thank you. continue to get error after fixing the typos... corrected my code above.. any idea on what exactly these error message is telling
~\Anaconda3\lib\site-packages\tabpy_client\rest_client.py in query(self, name, *args, **kwargs)
149 raise ValueError('Mixing of keyword arguments and positional arguments '
150 'when querying an endpoint is not supported.')
ResponseError: (500) Error querying GLS {'uri': 'KMeansPlusPlus', 'error': "AttributeError : 'TypeError' object has no attribute 'message'", 'type': 'QueryFailed'}
@msacs09 I think there's an issue with how you're invoking KMeans(). According to the sklearn docs, the argument should be n_clusters not n_cluster. (https://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html)
You also have a typo here: kmeans_y=km.fit_predict(X_train_nrom) The table should be X_train_norm
When I fixed these issues, I was able to run your code without any issues. As a first step when deploying a function to TabPy, I'd suggest testing the function inside your IDE before deploying it. That way you can debug any issues before having to deal with the network errors, ie the 500 you're seeing.
@nmannheimer Thank you for your time. Excellent support
deploys without any issues
Calling the endpoint results issue