Skip to content

Instantly share code, notes, and snippets.

View mfekadu's full-sized avatar
📖
Studying

Michael Fekadu mfekadu

📖
Studying
View GitHub Profile
@mfekadu
mfekadu / app.py
Last active February 4, 2021 23:01 — forked from DmitryBe/app.py
SQLAlchemy quick start for MySQL
# http://bytefish.de/blog/first_steps_with_sqlalchemy/
# https://docs.sqlalchemy.org/en/13/
# https://www.sqlalchemy.org/library.html
# ^ if 1.3 is not current release
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import create_engine
from datetime import datetime, timedelta
from sqlalchemy import Table, Column, Integer, String, DateTime, ForeignKey
from sqlalchemy.orm import relationship, backref
import numpy as np
# define the neural network architecture
# Input Data
a_0 = [1, 2]
inputs = a_0
#Layer 1
weights_1 = [[-2.0, 1.5],
[ 1.5, -1.0],