Skip to content

Instantly share code, notes, and snippets.

View MauroCE's full-sized avatar
:octocat:

Mauro Camara Escudero MauroCE

:octocat:
View GitHub Profile
# Import relevant modules
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from keras.layers import Dense, LSTM
from keras.models import Sequential
# Decide some settings
batch_size = 100
@MauroCE
MauroCE / MLP in TF with Cosine Similarity
Last active April 3, 2019 17:13
Multi Layer Perceptron with Tensor Flow for regression/time series prediction using cosine similarity
import tensorflow as tf
import pandas as pd
from sklearn.model_selection import train_test_split
from math import sqrt
class tfMLPRegressor():
'''
Class Implementing a MLP in TF for time series prediction.
'''
def __init__(self, X, y):
import tensorflow as tf
import pandas as pd
from sklearn.model_selection import train_test_split
from math import sqrt
class tfMLPRegressor():
'''
Class Implementing a MLP in TF for time series prediction.
'''
def __init__(self, X, y):