Here, we are at the end of the classification task. Remember to remove all the variables that you've used and the temporary table that you've created from the cache:
In: bc_sample_rates.unpersist() sampled_train_df.unpersist() train.unpersist()
After the Spark memory is cleared, we can turn off the Jupyter notebook.