-- This is your Cortex Project.…
- User
-- This is your Cortex Project.
-- SETUP
use role "MPG-SG-SN-GT-GTA AAS TSS MLOPS"; use warehouse US_NONPROD_COMPUTE_WH; use database DEMO; use schema DS_DEMO;
-- Inspect the first 10 rows of your training data. This is the data we'll -- use to create your model. select * from OPPORTUNITIES_SELECTED_950 limit 10;
-- Inspect the first 10 rows of your prediction data. This is the data the model -- will use to generate predictions. select * from OPPORTUNITIES_SELECTED_950_EXCLUDING_MPG_WON limit 10;
-- CREATE PREDICTIONS
-- Create your model. CREATE OR REPLACE SNOWFLAKE.ML.CLASSIFICATION my_model( INPUT_DATA => SYSTEM$REFERENCE('TABLE', 'OPPORTUNITIES_SELECTED_950'), TARGET_COLNAME => 'mpg_won', CONFIG_OBJECT => { 'ON_ERROR': 'SKIP' } );
-- Inspect your logs to ensure training completed successfully. CALL my_model!SHOW_TRAINING_LOGS();
This is my piece of code and I ma getting the error as - { "Error": [ "Target column
MPG_WONis not present in the data." ], "Info": [], "Warning": [] }Although in the dataset mpg_won is written in lower case and the same is written in my code, but when I am running the training logs I am getting this error. Can you please resolve my error.
- Assistant