Skip to content

Instantly share code, notes, and snippets.

View theSekyi's full-sized avatar

Emmanuel Sekyi theSekyi

View GitHub Profile
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
from sklearn.tree import DecisionTreeClassifier
from sklearn.tree import export_graphviz #plot tree
df = pd.read_csv('winequality-red.csv')
Someone asked for password reset for email {{ email }}.Follow the
link below:
{{ protocol }}: //{{ domain }}{% url "password_reset_confirm" uidb64=uid
token=token %}
Your username, in case you've forgotten: {{ user.get_username }}
System check identified no issues (0 silenced).
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
May 13, 2019 - 11:41:38
Django version 2.2.1, using settings 'ohemaa.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
/node_modules/jest-haste-map/node_modules/fsevents/node_modules/node-pre-gyp/lib/unpublish.js
Module not found: Can't resolve 'aws-sdk' in '/Users/socrates/Projects/roadtoreact/hackernews/node_modules/jest-haste-map/node_modules/fsevents/node_modules/node-pre-gyp/lib'
FROM python:3.6-slim-stretch
RUN apt-get -y update
RUN apt-get install -y --fix-missing \
build-essential \
cmake \
gfortran \
git \
wget \
curl \
name_of_person = input('What is your name? ')
while os.path.isdir(f"datasets/{name_of_person}"):
print(f'{name_of_person} already exists. Please enter another name')
name_of_person = input('What is your name? ')
else:
os.makedirs(f"datasets/{name_of_person}")
name_of_person = input('What is your name? ')
if os.path.isdir(f"datasets/{name_of_person}"):
print(f'{name_of_person} already exists. Please enter another name')
name_of_person = input('What is your name')
else:
os.makedirs(f"datasets/{name_of_person}")
from imutils.video import VideoStream
import numpy as np
import imutils
import time
import cv2
import os
# load model from disk
print('Loading model..')
net = cv2.dnn.readNetFromCaffe('model_weights/deploy.prototxt.txt',
[INFO] quantifying faces...
[INFO] processing image 1/218
[INFO] processing image 2/218
[INFO] processing image 3/218
[INFO] processing image 4/218
Killed
FROM python:3.7
RUN pip install numpy
COPY . /face_recognition_system