Giter VIP home page Giter VIP logo

Comments (6)

shenzhimo2 avatar shenzhimo2 commented on May 22, 2024 1

Hi @shim1998,
I guess it's due to checkpoint. You can try to use a new job dir to see if it can resolve your issue.

from vertex-ai-samples.

ivanmkc avatar ivanmkc commented on May 22, 2024

This is the wrong place for this question. Seems like a gcloud command.

from vertex-ai-samples.

shenzhimo2 avatar shenzhimo2 commented on May 22, 2024

Looks like it's a json schema issue. There are some issue in the doc that misleading the you. I will suggest you to use https://storage.googleapis.com/cloud-samples-data/vertex-ai/matching-engine/two-tower/movielens_100k/input_schema.json as an example

from vertex-ai-samples.

andrewferlitsch avatar andrewferlitsch commented on May 22, 2024

If this is a doc issue? Should it be reassigned to a TW?

from vertex-ai-samples.

ivanmkc avatar ivanmkc commented on May 22, 2024

Let's see if it solves @shim1998 's problem or not.

from vertex-ai-samples.

shim1998 avatar shim1998 commented on May 22, 2024

Hello, thank you for clarifying this to me!
I have changed the input schema to the sample you provided, and I have tried to include a Categorical feature.
My input schema looks like this:

{
   "query":{
      "movie_genre":{
         "feature_type":"Categorical",
         "config":{
            "vocab": [ "action", "comedy", "drama"]
         }
      }
   },
   "candidate":{
      "ratings":{
         "feature_type":"Numeric"
      }
   }
}

And my training data's sample row looks like this:

{
    "query":
    {
        "movie_genre": ["action"]
    },
    "candidate":
    {
        "ratings": [7.3, 6.0, 8.1]
    }
}

I am encountering this error statement.

"ValueError: Shapes (103, 64) and (91955, 64) are incompatible

I have used the list of various sizes and I am still getting this issue.
In the documentation it is written as:

Categorical : A list of strings, representing a categorical feature. The strings must be a subset of a vocabulary list specified in the input schema.

This is what I have followed in my dataset.
Can I get some clarification on this?

from vertex-ai-samples.

Related Issues (20)

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.