shared/lab1
folder to your home directory (e.g. cp -r ~/shared/lab1 ~
).Ctrl + Shift + L
to open a "New Launcher".coral api
and numpy
%timeit
magic command to measure the execution time of a command in a Python Notebook.time()
function to measure the time elapsed.cpu_add = a + b
lab1/notebooks
folder and open NaiveBayes.ipynb. The administrator of the lab has already installed any necessary bitstreams publicly so that all of the teams can have access to the same accelerator for running the scikit-learn examples. You can verify that by issuing an inaccel bitstream list
command.inaccel bitstream list
command will reveal any installed Logistic Regression bitstreams. Logistic Regression (LR) training takes several hyperparameters which can affect the accuracy of the learned model. There is no "best" configuration for all datasets. To get the optimal accuracy, we need to tune these hyperparameters based on our data.