← Machine Learning Academy

Machine Learning Academy · 2 / 5

Define the training rows

Select only the columns the model needs and make the training cap explicit.

YOUR TASK

Make this happen

3 steps
  1. Add queries/training.sql selecting quantity and priority from jobs, excluding missing quantity and limiting to 1000 rows. Attach through dataQuerySQL.

  2. Keep the working capabilities from the previous lesson and connect the new pieces to the same solution.

  3. Check the complete solution, then inspect any unmet requirements.

This step starts with the earlier solution and one new challenge. Each lesson keeps its own draft.

Read the starter files

main.cococo

ml_model_document "main" {
  format = "1"
  name = "job-quantity"
  backend = "xgboost"
  spec = {
    tabular = ml_model_tabular.quantity
  }
}

model.cococo

ml_model_tabular "quantity" {
  task = "REGRESSION"
  targetColumn = "quantity"
  featureColumns = [ml_model_feature.priority]
}

features.cococo

ml_model_feature "priority" {
  column = "priority"
}

queries/training.sql

SELECT quantity, priority
FROM jobs
-- TODO: exclude rows without a target and limit the training cohort.
Supplied supporting files

Reference: machine-learning · authoring