Skip to content

Prediction API => "Model name is empty." #333

@davidemiceli

Description

@davidemiceli

Sorry a question, I have:

var google = require('googleapis');
var prediction = google.prediction('v1.6');

var train =
'...';

var authClient = new google.auth.JWT(
    '5578575756-balblabla@developer.gserviceaccount.com',
  // use the PEM file we generated from the downloaded key
    "g_privatekey.pem",
    // Contents of private_key.pem if you want to load the pem file yourself
    // (do not use the path parameter above if using this param)
    // Scopes can be specified either as an array or as a single, space-delimited string
    null,
    ['https://www.googleapis.com/auth/prediction']
    // User to impersonate (leave empty if no impersonation needed)
    );

authClient.authorize(function(err, tokens) {
  if (err) {
    console.log(err);
    return;
  } else {
    console.log(tokens);
    prediction.trainedmodels.insert({
        auth: authClient,
        project: 'projectAppTest',
        id: '152fdh621r2ref1262',
        resource: train}, function(err, result) {
      console.log('Result: ' + (err ? err.message : result));
    });
  }
});

But I have as result log message: "Model name is empty", why? It's missing some parameters?

Thanks for a response...

Metadata

Metadata

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions