This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import torch | |
| import torch.optim as optim | |
| import torchvision | |
| import torchvision.transforms as transforms | |
| from pytorch_models import Layer10CNN, WideResNet | |
| import numpy as np | |
| import datetime | |
| import time | |
| import pickle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| import tensorflow.python.keras as keras | |
| import tensorflow.python.keras.layers as layers | |
| import tensorflow.python.keras.backend as K | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| import datetime | |
| import time | |
| import pickle | |
| import os | |
| import numpy as np |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| import tensorflow.python.keras as keras | |
| import tensorflow.python.keras.layers as layers | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| import datetime | |
| import time | |
| import pickle | |
| import os | |
| def conv_bn_relu(input, ch, reps): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras import layers | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.preprocessing.image import ImageDataGenerator | |
| from tensorflow.keras.callbacks import Callback, History, LearningRateScheduler | |
| from tensorflow.keras.optimizers import SGD | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| from sklearn.metrics import confusion_matrix | |
| from tensorflow.keras.datasets import cifar10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras import layers | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.preprocessing.image import ImageDataGenerator | |
| from tensorflow.keras.callbacks import History, LearningRateScheduler | |
| from tensorflow.keras.optimizers import SGD | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| import tensorflow.keras.backend as K | |
| from keras.datasets import cifar10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras import layers | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.callbacks import History, LearningRateScheduler | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| from tensorflow.keras.optimizers import SGD | |
| import tensorflow.keras.backend as K | |
| from keras.regularizers import l2 | |
| import numpy as np |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras import layers | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.callbacks import History, LearningRateScheduler | |
| from tensorflow.keras.preprocessing.image import ImageDataGenerator | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| from tensorflow.keras.optimizers import SGD | |
| import tensorflow.keras.backend as K | |
| from keras.regularizers import l2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras import layers | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.callbacks import Callback, History, LearningRateScheduler | |
| import tensorflow.keras.backend as K | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| from train1000 import cifar10 | |
| import numpy as np | |
| from sklearn.metrics.pairwise import cosine_similarity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras import layers | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.callbacks import Callback, History, LearningRateScheduler | |
| import tensorflow.keras.backend as K | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| from train1000 import cifar10 | |
| import numpy as np | |
| from sklearn.metrics import accuracy_score, euclidean_distances |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| from tensorflow.keras import layers | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.callbacks import Callback, History | |
| import tensorflow.keras.backend as K | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| from train1000 import cifar10 | |
| import numpy as np | |
| import os, json, tarfile |