Skip to content

Instantly share code, notes, and snippets.

View cnzero's full-sized avatar

cnzero cnzero

View GitHub Profile
@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):