Comments (5)
Hi Brit,
Tableau passes the objects as Python lists. Does it work when you delete the [ ] around testing_data object in your predictSpam function?
Thanks,
Bora
from tabpy.
Hi Brit,
Can you make sure your TabPy server and IPython workbook you're using have the same version of Python? The piece of code that is triggered here takes different number of arguments in Python 2.x vs 3.x. That is my first guess on why this might be happening. If that's not the issue, I will dig deeper.
Thanks,
Bora
from tabpy.
That was part of the issue - thank you!
When it comes to passing data from Tableau to the function it doesn't work and I'm wondering if it has to do with data types. The use case is simple - pass text via a parameter in Tableau to the model and return 0 or 1 (cast as a string).
In my function, I originally returned a numpy array while in Tableau I was using SCRIPT_STR. I thought perhaps that since it could take multiple strings and return a list of results that I could simply return 1 since I'm passing one argument in Tableau. I tried so resolve that and tested it in my notebook to ensure the data I was returning to Tableau was a string.
In Tableau, my calculation is:
The parameter:
The error it returns:
Is there something I am missing with how the data is passed in the string parameter in Tableau? Would it not be read as a string by the function? Or, is there a different way I need to deploy my code? I think another reason why it may not work is because I'm only deploying the function but it calls something earlier in my notebook. I was trying to save a trained model versus needing to retrain each time.
I've verified that TabPy is running and the function endpoint exist. Any recommendations?
Workbook: https://github.com/GirlMeetsData/data_analysis/blob/master/SpamPredictor.twbx
Update - Dug up this error: ERROR:tabpy_client.custom_query_object:Exception hit when running custom query, error: 'list' object has no attribute 'lower'
from tabpy.
Yes!!! Bora, thanks for your patience 👍
from tabpy.
I am glad it worked.
from tabpy.
Related Issues (20)
- An error occurred while communicating with the Analytics Extension data source ‘Analytics Extension’ HOT 1
- TabPy on Heroku Quickstart runs on port 443 HOT 3
- Simplify Environment Setup with a package.json file
- Clarify community contributions
- Fail to install TabPy due to the deprecation of sklearn HOT 2
- TabPy offline installation HOT 2
- Remove future lib: https://nvd.nist.gov/vuln/detail/CVE-2022-40899
- Erorr when run TabPy server on Ubuntu HOT 2
- Can we use tabpy function even if TABPY_EVALUATE_ENABLE is set to false HOT 3
- Heroku model deployments: os.path.isfile(path_to_pickle) returns true, but client.deploy(...) returns FileNotFoundError HOT 2
- Input form from https://www.tableau.com/blog/building-advanced-analytics-applications-tabpy-64916
- Disable support for TLS 1.1 and 1.0
- Tabpy server awaits for the user to hit Enter on the tabpy server Console for the Tableau connection to establish/finish HOT 1
- System error: Unknown Error when setting up request to TabPy. null
- Issue: PyArrow Installation Error in Visual Studio Developer Command Prompt for TabPy
- Tableau Prep - Unwanted Date Change in Python script HOT 4
- TabPy初期設定時のユーザーネーム/パスワードの設定方法について
- Hardcoded `0.0.0.0` and lack of passing `address` to Tornado
- No able to open Tabpy from cmd
- Potential Information Leakage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tabpy.