Skip to content

Instantly share code, notes, and snippets.

View Benecoder's full-sized avatar
💭
Rather given to jocosity

Benecoder

💭
Rather given to jocosity
View GitHub Profile
@Benecoder
Benecoder / Exoplanets_keras.py
Created June 18, 2020 14:27
Training a basic neural net on multiple GPUs. Training data taken from https://www.kaggle.com/keplersmachines/kepler-labelled-time-series-data.
import tensorflow as tf
import numpy as np
from tensorflow import keras
from tensorflow.keras import layers
train_data = np.genfromtxt('exoTrain.csv',skip_header=1,delimiter=',')
in_data = train_data[:,1:]