Pentium10
Pentium10

Reputation: 207830

How to increase minimum interation in BigQuery ML

I've tried out ML functions and only 2 iterations are made, I've started reading how to set more iterations but only max iterations are configurable.

Is there a way to be able to have mininum iterations?
Btw is there an augmenting feature that lets you to generate training data?

Also what numbers should we try for l1_reg and l2_reg to improve an accuracy of 56%.

Upvotes: 0

Views: 1107

Answers (3)

lilillle
lilillle

Reputation: 11

The reason the training stopped is probably because the model is not converging and the training/evaluation loss is increasing after iteration.

JiaXun Wu's answer will allow the training continues even if the model is not converging.

You can also check if you have fill in null values yourself. I haven't found documentation regarding how null values are handled by BQML, but for my models, it failed to converge using default null value fill in method.

Upvotes: 1

Jiaxun Wu
Jiaxun Wu

Reputation: 166

Another option is to set early_stop to false, so that BQML will run max_iterations iterations (default is 20).

Upvotes: 1

Amir Hormati
Amir Hormati

Reputation: 339

To increase the number of iterations:

1- You need to set the number of iterations using max_iterations (the default is 10 so you don't need to change this for now).

2- Set min_rel_progress to a number that is less than the loss improvements between two consecutive iterations. You can set that to 0.0001.

Without seeing your data and use case it is hard for me to say what should l1_reg and l2_reg be and in general why you are getting low accuracy. My general guess is that you do not have good training data or good features.

Upvotes: 3

Related Questions