Preview:
Copy
-- Train set
create or replace view v_iris_train as
select * from iris
sample(75)
seed(42);

-- Test set
create or replace view v_iris_test as
select * from iris 
minus 
select * from v_iris_train;
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter