Skip to content

Instantly share code, notes, and snippets.

import talos
from keras.models import Sequential
from keras.layers import Dense
def minimal():
x, y = talos.templates.datasets.iris()
p = {'activation':['relu', 'elu'],
'optimizer': ['Nadam', 'Adam'],
@GaneshGS
GaneshGS / convert_dataframe_to_dataset.py
Created December 29, 2019 23:28 — forked from ericness/convert_dataframe_to_dataset.py
Convert pandas DataFrame into TensorFlow Dataset
import numpy as np
import pandas as pd
import tensorflow as tf
tf.enable_eager_execution()
training_df: pd.DataFrame = pd.DataFrame(
data={
'feature1': np.random.rand(10),
'feature2': np.random.rand(10),