Configure a Jupyter Notebook Server

  Configure the server On the server you first create the config with: jupyter notebook –generate-config Then open the file that was created and change these 2 settings: c.NotebookApp.allow_origin = ‘*’ #allow all origins c.NotebookApp.ip = ‘0.0.0.0’ # listen on all IPs Save the file. Set a password to protect the server with: jupyter notebook…

Jupyter Notebook Extensions

To install the packages required with conda use the following commands: conda install -c conda-forge jupyter_contrib_nbextensions conda install -c conda-forge jupyter_nbextensions_configurator conda install -c conda-forge jupyterthemes Then run jupyter notebook Open the Extensions configurations panel http://localhost:8888/nbextensions Enable the extensions and enjoy them! Some extensions to autoformat code require autopep8 and yapf conda install -c conda-forge yapf…

Generate requirements.txt file

It is a good practice to have all the application dependencies listed in a file called requirements.txt so when we need to run the app we don’t need with all the missing requirements errors and we can easily install them with pip with one line of code. Generating the requirements.txt file We will need to…

Scikit Learn

Logistic Regression Is used for classification problems, outputs probabilities if > 0.5 the data is labeled 1 else it is labeled 0. Produces a linear decision boundary. from sklearn.linear_model import LogisticRegression from sklearn.model_selection import train_test_split logreg = LogisticRegression() X_train, X_text, y_train, y_test = train_test_split(X,y,test_size=0.2,random_state=42) logreg.fit(X_train,y_train) y_pred= logreg.predict(X_test) ROC Curve Stands for Receiver Operating Characteristics curve…

Fast.AI

  Fast.AI Update Feb-2019 Deep learning V3 Kernels Lesson 1 Pets Lesson 2 Download Lesson 2 SGD Lesson 3 Camvid-tiramisu Lesson 3 Camvid Lesson 3 Head-Pose Lesson 3 Planet Lesson 3 Tabular Lesson 4 Collab Lesson 4 Tabular Lesson 5 SGD-MNIST Lesson 6 Pets-more Rossmann data clean Lesson 6 Rossmann Lesson 7 Human-numbers [Lesson 7…

Conda

I’ve gone through a lot of trouble setting up my enviroments, most of the times the problem is that it wont show up on my Jupyter Notebooks as Kernels so I cannot access them so here is a quick couple of commands to run to create an enviroment and make it show up as a…

Feather

Feather What is Feather Feather is a fast, lightweight, and easy-to-use binary file format for storing data frames. It has a few specific design goals: Lightweight, minimal API: make pushing data frames in and out of memory as simple as possible Language agnostic: Feather files are the same whether written by Python or R code.…