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
# Sample code for building a multi-layer perceptron | |
# that predicts the brightness of a light bulb based | |
# on the month, weekday, hour and minute. | |
import numpy as np | |
from keras.models import Sequential | |
from keras.layers.core import Dense, Activation | |
from keras.utils import np_utils | |
from sklearn import preprocessing |
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 gym | |
import tensorflow as tf | |
import os | |
import datetime | |
import stable_baselines | |
from stable_baselines.common.policies import MlpPolicy | |
from stable_baselines.bench import Monitor | |
from stable_baselines.common.vec_env.dummy_vec_env import DummyVecEnv |