Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1521 Discussions

Not defined error in XG_Boost > Bagging_RF notebook

ashna_upadhyay
Employee
372 Views

Hi,

 

I am trying to run a command from Intel sample python notebook and facing an error, as shown in the screenshot below. Please let me know how to resolve this error.

Let me know if you have any questions.

Issue8.PNG

 

Thanks,

Ashna

 

0 Kudos
1 Solution
JyothisV_Intel
Moderator
351 Views

Hi,

 

Good day to you.

 

Thanks for posting in Intel Communities.

 

The notebook that you are referring to is an exercise notebook. You are expected to understand the concepts and fill out the "xxx" or "x" with the required module, function, or variable names. We tried completing the notebook and there were no errors.

 

For example, in the screenshot that you provided, replacing the "xxx" with the module name "StratifiedShuffleSplit" will yield the correct output (Refer screenshot):

 

strat_shuff_split = StratifiedShuffleSplit(n_splits=1, test_size=1000, random_state=42)

 

 

If this resolves your issue, make sure to accept this as a solution. This would help 

others with similar issues.

 

Regards,

Jyothis V James

 

View solution in original post

0 Kudos
2 Replies
JyothisV_Intel
Moderator
352 Views

Hi,

 

Good day to you.

 

Thanks for posting in Intel Communities.

 

The notebook that you are referring to is an exercise notebook. You are expected to understand the concepts and fill out the "xxx" or "x" with the required module, function, or variable names. We tried completing the notebook and there were no errors.

 

For example, in the screenshot that you provided, replacing the "xxx" with the module name "StratifiedShuffleSplit" will yield the correct output (Refer screenshot):

 

strat_shuff_split = StratifiedShuffleSplit(n_splits=1, test_size=1000, random_state=42)

 

 

If this resolves your issue, make sure to accept this as a solution. This would help 

others with similar issues.

 

Regards,

Jyothis V James

 

0 Kudos
JyothisV_Intel
Moderator
331 Views

Hi,


Good day to you.


Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Regards,

Jyothis V James


0 Kudos
Reply