Skip to content

Instantly share code, notes, and snippets.

@VictorSaenger
Last active October 11, 2019 20:04
Show Gist options
  • Select an option

  • Save VictorSaenger/ae55702011187a011aa54760ff3ad5a8 to your computer and use it in GitHub Desktop.

Select an option

Save VictorSaenger/ae55702011187a011aa54760ff3ad5a8 to your computer and use it in GitHub Desktop.
# Regular modules for data science and visualization:
import numpy as np
import pandas
import seaborn as sns
import matplotlib.pyplot as plt
# Keras (2.2.4) and tensorflow (1.13).
import tensorflow as tf
import tensorflow_hub as hub
import tf_sentencepiece
from keras.regularizers import l1, l2
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras import backend
from keras import optimizers
#sklearn and imblearn modules:
from sklearn.model_selection import cross_val_predict
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import StratifiedShuffleSplit
from imblearn.over_sampling import SMOTE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment