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…

CNN’s Glossary

CNN’s Glossary CNNs: Convolutional neural network. That is, a network which has at least one convolutional layer. A typical CNN also includes other types of layers, such as pooling layers and dense layers. Convolution: The process of applying a kernel (filter) to an image Kernel / filter: A matrix which is smaller than the input, used to transform…

Defining a CNN Network architecture

Convolutional Neural networks will make use of the following types of layers: Convolutional Layers Maxpooling layers Fully connected (linear) layers To define a network in PyTorch you create a class: class Net(nn.Module) Define the layers on the init function def __init__(self, n_classes): super(Net,self).__init__() # 1 input channel (grayscale image), 32 outputs or feature maps, 5×5 conv. kernel…

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…