Hints

Good Granite Questions

Details

How to install seaborn in Python in Jupyter Notebook?

What are the colourmaps in heatmap I create in a Jupyter Notebook?

Hint #1

Click to reveal Hint #1
  • Maybe installing some missing libraries with !pip

  • Some of the parameters in the code could be wrong…​

Hint #2

Click to reveal Hint #1
  • train_test_split has something wrong…​ maybe changing some range in the parameters?

  • plt.show() is used to visualize the confusion matrix

  • In the Jupyter Notebook, you have the possibility to use Elyra pipelines…​

  • And then from the Data Science Pipelines UI you can setup pipeline schedule.

Hint #3 (Complete solution)

Click to reveal Hint #3
  • !pip install seaborn

  • Adjust the test_size to 0.3 from train_test_split in "Train the Model" section as the 30% of the data is used for testing

  • Substitute cmap="Blue" with cmap="Blues"

    confusion matrix
  • From the Jupyter Notebook, in Launcher, click on Pipeline Editor, and drag and drop the stars-classification.ipynb file

  • While you are on Pipeline Editor, click on the Notebook and open up the properties

  • Add Stars.csv as a file dependency.

  • Run the pipeline from Elyra

    spain elyra
  • Open the OpenShift AI dashboard, go to Data Science Pipelines and setup schedule for 24 hours