Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] The adjust function throws an error #35

Open
martyna-mindsdb opened this issue May 25, 2023 · 0 comments
Open

[Bug] The adjust function throws an error #35

martyna-mindsdb opened this issue May 25, 2023 · 0 comments

Comments

@martyna-mindsdb
Copy link

Here is the code I run:

const homeRentalPriceModel = await MindsDB.Models.getModel('home_rentals_model', 'mindsdb');
console.log('got a model');

// Defining the data used to finetune a model
const adjustSelect = 'SELECT * FROM demo_data.home_rentals WHERE days_on_market >= 10';
//const params = { 'key' : 'value' }

try {

  await homeRentalPriceModel.adjust({
    integration: 'example_db',
    select: adjustSelect
    //using: params
  });
  console.log('finetuned a model');  
    
} catch (error) {
  // Something went wrong adjusting
  console.log(error);
}

And here is the error I get:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant