I am struggling to use BigQuery's ML features. Basically, I write the following query and the it fails with this message:
Syntax error: Unexpected string literal 'finance-ml-jdb.FOREX.EURGBP' at [17:3]
CREATE MODEL `finance-ml-jdb:FOREX.EURGBP_Model`
OPTIONS( model_type = 'linear_reg',
input_label_cols = bidlow,
ls_init_learn_rate = .15,
l1_reg = 1,
max_iterations = 5
) AS
SELECT
bidopen,
bidhigh,
bidlow,
askopen,
askclose,
asklow,
tickqty
FROM
'finance-ml-jdb.FOREX.EURGBP'
Order By
CAST(date AS DATETIME) DESC
I suspect I've got something wrong with the use of '' or `` when specifying finance-ml-jdb.FOREX.EURGBP but I'm not sure exactly what I need to do to fix it.
Any help would be much appreciated,
Thanks,
Josh