This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] quantifying faces... | |
[INFO] processing image 1/218 | |
[INFO] processing image 2/218 | |
[INFO] processing image 3/218 | |
[INFO] processing image 4/218 | |
Killed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.7 | |
RUN pip install numpy | |
COPY . /face_recognition_system |