Code Monkey home page Code Monkey logo

ai-platform-text-classifier-shap's Issues

KeyError: 'tags'

When executing below code throw some errors, Please help me

tags_split = [tags.split(',') for tags in data['tags'].values]
print(tags_split)

tag_encoder = MultiLabelBinarizer()
tags_encoded = tag_encoder.fit_transform(tags_split)
num_tags = len(tags_encoded[0])
print(data['text'].values[0])
print(tag_encoder.classes_)
print(tags_encoded[0])

Unable to deploy model on AI platform

Hi @sararob,

I'm using tensorflow==1.13.1
When I try to create the model using exact steps as you in colab notebook, I'm getting the error:

ERROR: (gcloud.beta.ai-platform.versions.create) FAILED_PRECONDITION: Field: prediction_class Error: Exactly one of "prediction_class" and "framework" may be provided. In order to use a custom prediction class, "framework" should be left unspecified.

  • '@type': type.googleapis.com/google.rpc.BadRequest
    fieldViolations:
    • description: Exactly one of "prediction_class" and "framework" may be provided.
      In order to use a custom prediction class, "framework" should be left unspecified.
      field: prediction_class

As the above ERROR suggests: In order to use a custom prediction class, "framework" should be left unspecified.
I've removed the field: --framework='TENSORFLOW' \

but now I'm getting the below error:

ERROR: (gcloud.beta.ai-platform.versions.create) Create Version failed. Bad model detected with error: "Failed to load model: User-provided package so_predict-0.1.tar.gz failed to install: Command '['python-default', '-m', 'pip', 'install', '--target=/tmp/custom_lib', '--no-cache-dir', '-b', '/tmp/pip_builds', '/tmp/custom_code/so_predict-0.1.tar.gz']' returned non-zero exit status 1 (Error code: 0)"

Also, I tried using the same model locally and it's working fine.
Really appreciate your help.

Dataset is not avai

The download link
!gsutil cp 'gs://cloudml-demo-lcm/SO_ml_tags_avocado_188k_v2.csv' ./

is returning "ServiceException: 401 Anonymous caller does not have storage.objects.get access to cloudml-demo-lcm/SO_ml_tags_avocado_188k_v2.csv."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.