Scenario: The Serpent Society, a azure video
dp-100-data-scientist-assoc video for scenario: The Serpent Society, a well-established and highly successful sector coalition, was founded by Seth Voelker.
Full Certification Question
Scenario: The Serpent Society, a well-established and highly successful sector coalition, was founded by Seth Voelker. Seth has sought your expertise to assist with their Microsoft Azure implementation. Project Details: The team is working with a Python NumPy array containing six data points, defined as: python data = [ 10 , 20 , 30 , 40 , 50 , 60 ] Requirement: Generate the following output using the k-fold algorithm implemented in Python’s Scikit-learn machine learning library: train : [ 10 40 50 60 ], test : [ 20 30 ] train : [ 20 30 40 60 ], test : [ 10 50 ] train : [ 10 20 30 50 ], test : [ 40 60 ] Issue: Seth instructed the team to implement cross-validation to achieve this output. An intern took on the task but was unsure how to complete parts of the code and placed placeholders [A], [B], and [C] in the code. Incomplete Code: python from numpy import array from sklearn . model_selection import [ A ] data = array ([ 10 , 20 , 30 , 40 , 50 , 60 ]) KFold = KFold ( n_splits =[ B ], shuffle = True , random_state = 1 ) for train , test in KFold . split ([ C ]): print ( 'train: %s, test: %s' % ( data [ train ], data [ test ])) Question: Which of the following values should replace [A], [B], and [C] to complete the code correctly?